4 ms·
Is there a tutorial for how to get this working in vscode? I installed the extension, but it doesn't seem to be doing anything. I tend to have a workspace wit
by empath75 7y ago
Is there a tutorial for how to get this working in vscode? I installed the extension, but it doesn't seem to be doing anything. I tend to have a workspace with a bunch of folders in it, and it seems like rust analyzer only works with a single rust folder in your workspace and nothing else? At least it's throwing a lot of errors indicating that.
- hamaluik 7y agoI had to uninstall RLS in VSCode, install the "default" profile for my toolchain (nightly), and then when I opened a folder with a `Cargo.toml` file, in the bottom right it prompted to install the rust-analyzer server, which I did. Then it started checking everything and I was off to the races.
- Argorak 7y agoCould you please file a bug at github.com/rust-analyzer/rust-analyzer, describing your current situation and an outline of your project structure. Installing and running should be as easy as activating the plugin, or at least the error message should be clear.
- weiming 7y agoI also had trouble getting VSCode workspaces to work (i.e. multiple project roots.) Also at times, when adding a new crate dependency to Cargo.toml or installing a rust-analyzer update, it seems necessary to reopen the VSCode project (not restart VSCode itself) to get it to work again. This said RA has been indispensable over the last few months, thank you to the authors!
- _bxg1 7y agoMany plugins, in various languages, only work when your editor "workspace" is your actual project root.
- miltonlaxer 7y agoFor WSL2 * Uninstall RLS * Install Rust-Analyzer * Reload Workspace * Click prompt to install rust-analyzer-server * Start Coding
- aecorredor 7y agoI'm currently going through https://github.com/LukeMathWalker/build-your-own-jira-with-rust https://github.com/LukeMathWalker/build-your-own-jira-with-r... and had been using RLS. I just switched to the VSCode rust-analyzer plugin, I've followed the instructions, the installation finished w/o errors, but it's only working in the main.rs file.