Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't start client Rust Language Server

I'm trying to figure out how to use rustc & cargo from my WSL. I use VS Code and Rust (rls) plugin and can compile my code but there is a problem with RLS:

Couldn't start client Rust Language Server

Rustup not available. Install from https://www.rustup.rs/

How i can solve this problem?

like image 297
aitvann Avatar asked Oct 09 '19 21:10

aitvann


1 Answers

Set rust-client.rustupPath in VSCode settings:

{
    "rust-client.rustupPath": "~/.cargo/bin/rustup"
}

If you're using WSL on Windows then make sure you edit Rust extension WSL settings, not user/local settings.

Tutorial:

like image 168
Daniel Kmak Avatar answered Sep 25 '22 15:09

Daniel Kmak