New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Projects
None yet
4 participants
@booyaa

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-nursery/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

This comment has been minimized.

Show comment
Hide comment
@nrc

nrc Oct 30, 2017

Collaborator

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

Collaborator

nrc commented Oct 30, 2017

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

@camsteffen

This comment has been minimized.

Show comment
Hide comment
@camsteffen

camsteffen Nov 5, 2017

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

camsteffen commented Nov 5, 2017

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

@camsteffen

This comment has been minimized.

Show comment
Hide comment
@camsteffen

camsteffen Nov 5, 2017

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

camsteffen commented Nov 5, 2017

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

@eric1221bday

This comment has been minimized.

Show comment
Hide comment
@eric1221bday

eric1221bday Nov 6, 2017

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.

eric1221bday commented Nov 6, 2017

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 join this conversation on GitHub. Already have an account? Sign in to comment