rust-lang / vscode-rust

Rust extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
Other
1.39k stars 167 forks source link

The extension cannot find the rustup in Debian 11 / Crostini #942

Closed goktugerol-dev closed 2 years ago

goktugerol-dev commented 2 years ago

Issues Two warnings


Screenshot 2022-02-13 06 49 18

Screenshot 2022-02-13 22 52 36

When it happens?

Comments: Rust is installed in the machine, the extension simply cannot find it. In the extension settings I manually indicated the path of the files but it's still giving the same errors. Screenshot 2022-02-13 22 56 12

(Is the path correct? I saw the Rustup file in that folder.)


Previously had Crouton / Ubuntu in the same machine and it was pretty straightforward to install and use. Changed back to Crostini (Debian 11) and I could never use Rust since then.

I installed from https://rustup.rs just like the notification told me to do. When it didn't work, I deleted by autouninstall command and installed from here https://www.rust-lang.org/ja/tools/install
I'm not quite sure about the difference but seems like it's the same file... Anyways, none of these two worked for me.

lnicola commented 2 years ago

(Is the path correct? I saw the Rustup file in that folder.)

No, the path to rustup is ~/.cargo/bin/rustup, not ~/.cargo/env. I don't know if expansion is done, so you can also try typing that in full (/home/cyber9unk/.cargo/bin/rustup).

Unrelated, but if you haven't, you might want to give the rust-analyzer extension a try, see #927.

goktugerol-dev commented 2 years ago

Thanks! Now it works.