-
Notifications
You must be signed in to change notification settings - Fork 164
couldn't start client Rust Language Server #622
Comments
Nevermind, I quit code and restarted it and it's now working. |
I had the same error with |
I had the same issue. And vscode kept telling me "rls building". After I set up the "rust-client.channel" and "rust-client.rustupPath" manually, both problems are solved. |
Add this line to I am using macOS catalina, but I think it should work at most of UNIX-like OS. |
I had this error, and @parrotdance thanks for your solution, it works! A little bit weird it's not working out of the box, though... |
@parrotdance Thanks! For others on the struggle bus, I found that you have to restart/reload VSCode for the setting to kick in. |
@jerrygreen |
If this is a problem with macOS then it's probably down to the weird way that macOS handles $PATH. Specifically, the value that gets loaded for an app launched from dock or spotlight is not the same as the value that gets loaded for a terminal session. Under normal (default) install conditions, VSCode on macOS will not be able to find |
I am on Windows 10 (May 2020 release 2004) and I am experiencing the same issue. |
Everything works fine for me after add this:
to my config, i´m using Ubuntu 20 with WSL2 on windows 10 |
Same on Fedora 31. I installed rust from package manager, so I have no rustup in the system. |
i've solved it setting this in the local |
Too bad this isn't working out of the box 😢 |
Thanks. This worked for me. |
If you use {
// Rust configure
"rust-client.channel": "stable", // Channel
"rust-client.rlsPath": "/opt/homebrew/opt/rust-analyzer/bin/rust-analyzer", // Language server
"rust-client.disableRustup": true,
// "rust-client.rustupPath": "$HOME/.cargo/bin/rustup",
} |
@0x1af2aec8f957 to use rust-analyzer, please use the rust-analyzer extension right now. The VSCode-Rust extension doesn't work very well with RA at the moment. |
I guess in addition to the answers above you can also just run the below as sudo (assuming here you're on a Mac):
|
You probably shouldn't run rustup with sudo, since it sets up per-user toolchains, so you'll get one installed for root. |
I met this issue with Windows today. Before yesterday, it worked quite well. After I manual add path of |
Hi,
I just installed the 0.61 plugin and am running into the "couldn't start client rust language server" error. I have put the "rust-client.channel": "stable" into my settings.json and can run rustup from terminal spawned inside vsc. Please see the attached screenshot. Any idea on how to resolve this?

The text was updated successfully, but these errors were encountered: