-
Notifications
You must be signed in to change notification settings - Fork 164
rustup not available (linux + zsh) #675
Comments
Is ZSH your default shell? There's a chance we resolve the path using |
Yep, ZSH is my default shell. It looks like ZSH, Bash, and |
I've been getting this quite a lot recently, can't remember exactly what I did to fix it but nothing is working this morning. If I run The console outputs:
I've no idea what's going on, I can't use any of the tooling suddenly. I've already tried:
|
Ran into this too, and highlighting: from macOS Catalina onwards, the default shell is zsh. This has a chance to hit lots of new people.
and Happy to provide more debug information / help with this, just let me know how 🙂 |
My guess is that interactive shells are reading |
I ran into this today and want to jot down some info about part of this issue. My default shell is
I found the following function, which checks for Rustup and logs and rethrows this error. By default, function defaultShell(): string {
// determine default shell
}
const { stdout } = await withWsl(config.useWSL).exec(
`${config.path} toolchain list`,
{ shell: defaultShell() }
); The implementation of default shell could be from an npm package (like default-shell), or something custom to this project, depending on what's preferred. I have not tried to fix this locally and test yet, but I wanted to comment with this info before I forget to. 😄
That would also be my guess too, because even if this extension used the default shell when executing these commands but didn't load the proper |
I had this exact problem using fish shell. I fixed it by specifying path for rustup in the config.
Reloaded, and after that I was prompted to install RLS and everything went smoothly. UPDATE |
Same problem on Mac where zsh is now the default shell. |
@drozzy did you ever find a fix for it? |
for anyone that just upgraded to catalina and is getting the error run ----EDIT---- |
add this line in |
Not sure if this is related to issue reported originally, noting here as search for similar OS X Catalina issue brought me to this thread. For OSX Catalina, if after install you see an error like:
Make sure you read all the install steps for zsh. After checking for export paths and other steps noted, I had overlooked:
Reading is a super power. Added. Fixed. |
Just adding on my experience: I'm using MacOS Catalina and zsh, and like others, I was getting the popups saying
The Rust Language Server output said:
In my case, I had just installed rustup and I could successfully run |
For people who use VSCode Remote, you have to configure rustup path in the Remote profile settings. It works for me.
|
or you can use the rls and rustup from the shell by setting |
I have this issue today, tried to add |
@Geobert which Code extension are you using? |
rust-analyzer 0.4.1198 |
You're in the repository of the old extension (RLS), and |
Oh, I might need to ask on RA's repo then, thanks for your answer! :) |
This is almost certainly related to #577 (now closed) but I'm getting
errors on a clean install of Debian + VSCode + Rust. The fix mentioned in #577, setting
explicitly fixes this issue, but VSCode then can't find
cargo
when I run build tasks. I suspect it's not sourcing some path info correctly; is there a way to check this?Version info
Debian
Debian version: 10 (Buster)
VSCode
Version: 1.38.1
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:30:08.229Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.19.0-6-amd64
Rust/up
Default host: x86_64-unknown-linux-gnu
rustup home: /home/connor/.rustup
stable-x86_64-unknown-linux-gnu (default)
rustc 1.38.0 (625451e37 2019-09-23)
ZSH
zsh 5.7.1 (x86_64-debian-linux-gnu)
The text was updated successfully, but these errors were encountered: