Setting up Rust LSP #4737
-
I have followed the instructions layed out here Languages, here rust-analyzer Language Server Binary and here How to install the default language servers. I have placed the binary for the language server in
My
Currently when I My goal is to get the following to work
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
How did you create your rust project? Did you use If that's the case and it still doesn't work you can check/provide the log file for more information (you can use |
Beta Was this translation helpful? Give feedback.
-
Rather than trying to do it manually, all you need to do is run:
As indicated here. |
Beta Was this translation helpful? Give feedback.
-
I still don't know how to get the two things in the path on Windows. |
Beta Was this translation helpful? Give feedback.
-
My C and python can use lsp greatly, but rust lsp is broken.
|
Beta Was this translation helpful? Give feedback.
-
For anyone encountering this problem in 2025, this fixed my lsp integration: rustup self update
rustup self upgrade-data
rustup component rust-analyzer |
Beta Was this translation helpful? Give feedback.
Rather than trying to do it manually, all you need to do is run:
sudo ln -s $(rustup which rust-analyzer ) /usr/local/bin/rust-analyzer
As indicated here.