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

RLS fails to install toolchain 'nightly-X' does not contain component 'rls-preview' #181

Closed
booyaa opened this issue Oct 29, 2017 · 4 comments

Comments

@booyaa
Copy link

booyaa commented Oct 29, 2017

This isn't a bug with the extension as per se, but I suspect people will go to this repo first.

The issue relates to RLS (and components) missing from nightly builds: rust-lang/rls#535

The easiest workaround is to the beta toolchain, to do this on a per project basis, cd to the project and type: rustup override set beta

Alternatively if you want use the beta toolchain as your default: rustup default beta

Then set your rustup channel (rust-client.channel) in your user settings to stop the extension from failing to find RLS e.g. "rust-client.channel": "beta"

If you want to use nightly the last known working version is: 2017-10-24, to set the toolchain you'd do the following:

rustup override set nightly-2017-10-24
rustup component add rls-preview --toolchain nightly-2017-10-24
rustup component add rust-analysis --toolchain nightly-2017-10-24
rustup component add rust-src --toolchain nightly-2017-10-24

For nightly you have to also pin it to the specific release date: "rust-client.channel": "nightly-2017-10-24"

Hope this helps!

@nrc
Copy link
Member

nrc commented Oct 30, 2017

This should be fixed as of today because nightly has rls-preview again \o/

@camsteffen
Copy link

What's the easiest way to find the latest nightly build that includes rls?

@camsteffen
Copy link

Answering my own question. Just look at the build history and see when the last successful build was and use that date. Also, the extra steps for using nightly are not necessary. All you have to do is set "rust-client.channel".

@oceanusxiv
Copy link

To clarify this for others who may have encountered the RLS could not set RUST_SRC_PATH for Racer because it could not read the Rust sysroot. warning in vs code, the current released plugin 0.3.1 still hardcodes to nightly when trying to set the path for racer. This is fixed for HEAD but that's not released yet.

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

4 participants