Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Couldn't start client Rust Language Server #700

Open
byteshiva opened this issue Nov 13, 2019 · 5 comments
Open

Couldn't start client Rust Language Server #700

byteshiva opened this issue Nov 13, 2019 · 5 comments

Comments

@byteshiva
Copy link

I'm using rust 1.39.0 and installed it using rust version manager.

Now in vscode, I see the below error. Do I need to specific the rust path since the rust compiler or binary localtion would be different when installed using rust version manager.

Error
Couldn't start client Rust Language Server

@lihz6
Copy link

lihz6 commented Jan 3, 2020

This is somethong to with /bin/sh and the rustup can't be found in the $PATH.

@lihz6
Copy link

lihz6 commented Jan 3, 2020

Command failed: rustup toolchain list /bin/sh: rustup: command not found

@eratio08
Copy link

eratio08 commented Feb 24, 2020

I got the same problem on macOS. I checked which rustup using $ sh, $ bash and $ zsh. Rustup is always found under /Users/user/.cargo/bin/rustup. So it does not seem to be a $PATH problem. rls is also found /Users/user/.cargo/bin/rls.

UPDATE:
I solved this problem by explicitly setting "rust-client.rustupPath": "/Users/user/.cargo/bin/rustup".

@NathanielRN
Copy link

Thanks to @eratio08 's comment, I also fixed this issue by going to ~/Library/Application Support/Code/User/settings.json and explicitly adding "rust-client.rlsPath": "/Users/NathanielRuiz/.cargo/bin/rls".

(You can also do this in Ctrl + Shift + P -> Preferences: Open User Settings)

@moloch--
Copy link

moloch-- commented Apr 7, 2022

I also had to add the ~/.cargo/bin to my path, in addition to specifying the rust-client.rlsPath in the config, with rust v1.59

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants