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

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

Closed
ged3v opened this issue Feb 13, 2022 · 2 comments
Closed

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

ged3v opened this issue Feb 13, 2022 · 2 comments

Comments

@ged3v
Copy link

ged3v commented Feb 13, 2022

Issues
Two warnings

  • Couldn't start client Rust Language Server
  • Rustup not available. Install from https://rustup.rs

Screenshot 2022-02-13 06 49 18

Screenshot 2022-02-13 22 52 36

When it happens?

  • When opening a rust project.

Expected Action

  • To not get these error messages and start coding normally..

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
Copy link
Member

lnicola commented Feb 14, 2022

(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.

@ged3v
Copy link
Author

ged3v commented Feb 14, 2022

Thanks! Now it works.

@ged3v ged3v closed this as completed Feb 14, 2022
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

2 participants