Rls: RLS seems missing on latest Linux stable

Created on 30 Jan 2019  路  17Comments  路  Source: rust-lang/rls

I'm new to RLS, but following the instructions, I get:

$ rustup component add rls                   
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rls' for target 'x86_64-unknown-linux-gnu'

I've already run rustup update, which tells me I have rustc 1.32.0 (9fda7c223 2019-01-16) installed.

I was hoping to get around bugginess by using the stable channel. Is this a problem with my machine or is it reproducible by others?

I don't believe this is a duplicate of #347 because the README explicitly states rls should be available on stable.

Most helpful comment

$ ls -lA  $HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin
total 52504
-rwxr-xr-x 1 alyssa alyssa 16949112 Jan 29 19:15 cargo
-rwxr-xr-x 1 alyssa alyssa     9288 Jan 29 19:15 rustc
-rwxr-xr-x 1 alyssa alyssa 36793496 Jan 29 19:15 rustdoc
-rwxr-xr-x 1 alyssa alyssa     1062 Jan 29 19:15 rust-gdb
-rwxr-xr-x 1 alyssa alyssa     1702 Jan 29 19:15 rust-lldb
$ cat $HOME/.rustup/update-hashes/stable-x86_64-unknown-linux-gnu
695b120a9b5be45c6811      

Good call on reinstalling stable: it installs and functions now with rustup component add rls. Maybe "reinstall stable" should be added to the debugging doc? Everything I saw there referred to nightly builds.

For reference, I did:

$ rustup uninstall stable
$ rustup install stable

All 17 comments

Uh.., I can add rls to stable-x86_64-unknown-linux-gnu.

$ rustup --version
rustup 1.16.0
stable-x86_64-unknown-linux-gnu (default)
rustc 1.32.0 (9fda7c223 2019-01-16)

$ rustup component add rls

info: downloading component 'rls'
  6.4 MiB /   6.4 MiB (100 %)   2.2 MiB/s ETA:   0 s
info: installing component 'rls'

What version of rustup do you use?

Same as you it seems:

$ rustup --version
rustup 1.16.0 (beab5ac2b 2018-12-06)
$ rustup show
Default host: x86_64-unknown-linux-gnu

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.32.0 (9fda7c223 2019-01-16)

$ rustup component add rls
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rls' for target 'x86_64-unknown-linux-gnu'

@kupiakos
Can you show me this information?

$ ls -la $HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin
$ cat $HOME/.rustup/update-hashes/stable-x86_64-unknown-linux-gnu

And after this, can you try to uninstall stable at once and reinstall install stable and add rls?

$ ls -lA  $HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin
total 52504
-rwxr-xr-x 1 alyssa alyssa 16949112 Jan 29 19:15 cargo
-rwxr-xr-x 1 alyssa alyssa     9288 Jan 29 19:15 rustc
-rwxr-xr-x 1 alyssa alyssa 36793496 Jan 29 19:15 rustdoc
-rwxr-xr-x 1 alyssa alyssa     1062 Jan 29 19:15 rust-gdb
-rwxr-xr-x 1 alyssa alyssa     1702 Jan 29 19:15 rust-lldb
$ cat $HOME/.rustup/update-hashes/stable-x86_64-unknown-linux-gnu
695b120a9b5be45c6811      

Good call on reinstalling stable: it installs and functions now with rustup component add rls. Maybe "reinstall stable" should be added to the debugging doc? Everything I saw there referred to nightly builds.

For reference, I did:

$ rustup uninstall stable
$ rustup install stable

@kupiakos
I think that this is rustup issue, so I submit this issue for rustup later.
But the others may face same problem for a while, so we also add this rls README.md :)

Same issue:
rustc 1.34.0-nightly (c1c3c4e95 2019-01-29)

rustup component add rls-preview 
error: component 'rls' for target 'x86_64-unknown-linux-gnu' is unavailable for download

rustup component add rls
error: component 'rls' for target 'x86_64-unknown-linux-gnu' is unavailable for download

@jadbox Thanks for your report.
Did you install rls by rls-vscode?

@h-michael not sure what you mean exactly, but just ideally I'd like to be able to use the vs-code extension "Rust (rls)" while doing development on nightly (particularly so I can test async/await).

@jadbox I believe this issue was about rls being missing on stable which is unexpected and looks like a rustup issue.

rls missing on the nightly toolchain is unfortunately somewhat expected, see https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly.

I had the same problem, and uninstalling/reinstalling stable fixed it for me.

@alexheretic thanks for the info, I was able to install a working nightly version that had RLS successful built, using this link https://mexus.github.io/rustup-components-history/

The issue with stable is known, so I'll go ahead and close this.

using this link https://mexus.github.io/rustup-components-history/

those are all broken

@chpio this issue was about rls on stable which afaik is addressed.

I assume you're talking about nightly, the latest with rls is nightly-2019-02-08 which has just fallen off the edge of history (on that site).

It looks like the clippy & rls update upstream is taking a little longer than normal see https://github.com/rust-lang/rust/pull/58337.

@chpio this issue was about rls on stable which afaik is addressed.

yeah, the purpose of that post was actually to ask if there is an other list of nightly builds, that goes a little bit further into the past.

@chpio this issue was about rls on stable which afaik is addressed.

I don't think so, I'm using rustup 1.18.3 and I got this issue today, I had to uninstall & install stable again to be able to install rls.
Maybe this issue should be referenced in readme?

uninstalling/reinstalling stable fixed it for me.

Was this page helpful?
0 / 5 - 0 ratings