Re:Rust-analyzer – an IDE backend for Rust
by empath75 on Monday April 27, 2020 @09:49AM
(#22995776)
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.
[ Parent
| on HN ]
I 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!
Could 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.
Re:Rust-analyzer – an IDE backend for Rust
by hamaluik on Monday April 27, 2020 @10:17AM
(#22996017)
I 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.
Re:Rust-analyzer – an IDE backend for Rust
by aecorredor on Monday April 27, 2020 @05:52PM
(#23000546)
I'm currently going through 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.
Many plugins, in various languages, only work when your editor "workspace" is your actual project root.
Re:Rust-analyzer – an IDE backend for Rust
by miltonlaxer on Monday April 27, 2020 @12:43PM
(#22997463)
For WSL2
* Uninstall RLS
* Install Rust-Analyzer
* Reload Workspace
* Click prompt to install rust-analyzer-server
* Start Coding