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

toolchain 'nightly-x86_64-unknown-linux-gnu' does not contain component 'rls' #502

Closed
Doaxan opened this issue Sep 29, 2017 · 16 comments
Closed

Comments

@Doaxan
Copy link

Doaxan commented Sep 29, 2017

After regular rustup update

I get this:

$  rls
error: toolchain 'nightly-x86_64-unknown-linux-gnu' does not have the binary `rls`
$  rustup component add rls
error: toolchain 'nightly-x86_64-unknown-linux-gnu' does not contain component 'rls' for target 'x86_64-unknown-linux-gnu'

nightly-x86_64-unknown-linux-gnu installed - rustc 1.22.0-nightly (3c96d40d3 2017-09-28)

@MatusT
Copy link

MatusT commented Sep 29, 2017

I have almost exactly the same error but with msvc:

error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls' for target 'x86_64-pc-windows-msvc

@protomors
Copy link

protomors commented Sep 29, 2017

Component "rls" was recently renamed to "rls-preview". Probably this is the reason for your problem. I just reinstalled rust completely and added "rls-preview" component. Now everything works.

Probably reinstalling rust was not necessary and simply adding "rls-preview" to updated toolchain should work.

@Flashs
Copy link

Flashs commented Sep 29, 2017

Had the same issue and using rls-preview fixed this for me too.

@nrc
Copy link
Member

nrc commented Sep 29, 2017

Yes, the rls component is renamed to rls-preview, however, the binary should still be called rls. You can change the name as a configuration option in VSCode (rust-client.rls-name). I'll make the new name the default, ASAP.

@leshow
Copy link

leshow commented Oct 1, 2017

I had this issue too. I do have a binary called rls, but the vscode extension must look for component rls instead of rls-preview

@zanjs
Copy link

zanjs commented Oct 2, 2017

rustup component add rls --toolchain nightly
error: toolchain 'nightly-x86_64-apple-darwin' does not contain component 'rls' for target 'x86_64-apple-darwin'

Change as follows

rustup component add rls-preview --toolchain nightly

jankeromnes added a commit to JanitorTechnology/dockerfiles that referenced this issue Oct 4, 2017
@nrc
Copy link
Member

nrc commented Oct 5, 2017

Is this with the latest VSCode extension? If you have v0.3.0, this should be addressed.

@vvanders
Copy link

vvanders commented Oct 8, 2017

Seeing same here:

rustup component add rls-preview --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls-preview' for target 'x86_64-pc-windows-msvc'

@Xanewok
Copy link
Member

Xanewok commented Oct 8, 2017 via email

@vvanders
Copy link

vvanders commented Oct 8, 2017

Okay wierd, that fixed it but "rustup self update" didn't.

One thing I was was the old rls getting removed, maybe that's what's happening.

@Xanewok
Copy link
Member

Xanewok commented Oct 13, 2017

VSCode extension 0.3.1 also detects the new rls-preview component and it should be available to all the toolchains now, so I'm gonna close it.

@surferjeff
Copy link

Still seeing the issue on Windows:

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> rustup self update
info: checking for self-updates
PS C:\WINDOWS\system32> rustup update nightly
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2017-12-05, rust version 1.24.0-nightly (8503b3ff8 2017-12-04)
info: downloading component 'rustc'
 32.7 MiB /  32.7 MiB (100 %)  13.6 MiB/s ETA:   0 s
info: downloading component 'rust-std'
 50.2 MiB /  50.2 MiB (100 %)  11.7 MiB/s ETA:   0 s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'

  nightly-x86_64-pc-windows-msvc installed - (timeout reading rustc version)

PS C:\WINDOWS\system32> rustup update nightly
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'

  nightly-x86_64-pc-windows-msvc unchanged - rustc 1.24.0-nightly (8503b3ff8 2017-12-04)

PS C:\WINDOWS\system32> rustup component add rls-preview --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls-preview' for target 'x86_64-pc-windows
-msvc'
PS C:\WINDOWS\system32> rustup component add rls --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls' for target 'x86_64-pc-windows-msvc'
PS C:\WINDOWS\system32> get-command rust
get-command : The term 'rust' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-command rust
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (rust:String) [Get-Command], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand

PS C:\WINDOWS\system32> get-command rustc

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     rustc.exe                                          0.0.0.0    C:\Users\jeff\.cargo\bin\rustc.exe


PS C:\WINDOWS\system32> get-command rustup

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     rustup.exe                                         0.0.0.0    C:\Users\jeff\.cargo\bin\rustup.exe


PS C:\WINDOWS\system32> rustup component add rust-analysis --toolchain nightly
info: downloading component 'rust-analysis'
info: installing component 'rust-analysis'
PS C:\WINDOWS\system32> rustup component add rust-src --toolchain nightly
info: downloading component 'rust-src'
info: installing component 'rust-src'
PS C:\WINDOWS\system32> rustup component add rls-preview --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls-preview' for target 'x86_64-pc-windows
-msvc'
PS C:\WINDOWS\system32> rustup component add rls-preview --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls-preview' for target 'x86_64-pc-windows-msvc'
PS C:\WINDOWS\system32> rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2017-11-23, rust version 1.22.1 (05e2e1c41 2017-11-22)
info: downloading component 'rustc'
 30.7 MiB /  30.7 MiB (100 %)  13.9 MiB/s ETA:   0 s
info: downloading component 'rust-std'
 42.9 MiB /  42.9 MiB (100 %)  14.0 MiB/s ETA:   0 s
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: checking for self-updates

     stable-x86_64-pc-windows-msvc updated - rustc 1.22.1 (05e2e1c41 2017-11-22)
  nightly-x86_64-pc-windows-msvc unchanged - rustc 1.24.0-nightly (8503b3ff8 2017-12-04)

PS C:\WINDOWS\system32> rustup component add rls-preview --toolchain nightly
error: toolchain 'nightly-x86_64-pc-windows-msvc' does not contain component 'rls-preview' for target 'x86_64-pc-windows-msvc'
PS C:\WINDOWS\system32>

@golf1052
Copy link

golf1052 commented Dec 5, 2017

@surferjeff This comment worked for me.

These are the commands I ran

rustup update beta
rustup component add rls-preview --toolchain beta
rustup component add rust-analysis --toolchain beta
rustup component add rust-src --toolchain beta

Then in VSCode I set "rust-client.channel": "beta" in my settings.

@ultramancool
Copy link

ultramancool commented Dec 5, 2017

@surferjeff Looks like some recent nightlies haven't included rls for some reason.

https://www.reddit.com/r/rust/comments/7hkxez/how_to_check_rls_is_present_before_updating/

@golf1052 is suggesting using the beta... which may work for some, but will not necessarily contain the latest features.

@jasonwilliams
Copy link
Member

jasonwilliams commented Dec 5, 2017

This has stopped working for me the past week, i'm guessing its related to what you said @ultramancool I will try beta for now and see if that works

@PeterBorisenko
Copy link

What teh...

C:\Users\User>rust-gdb
error: 'rust-gdb.exe' is not installed for the toolchain 'stable-x86_64-pc-windows-msvc'
To install, run `rustup component add gdb-preview --toolchain stable-x86_64-pc-windows-msvc`

C:\Users\User>rustup component add gdb-preview --toolchain stable-x86_64-pc-windows-msvc
error: toolchain 'stable-x86_64-pc-windows-msvc' does not contain component 'gdb-preview' for target 'x86_64-pc-windows-msvc'

Guys seriously
We dont need tools for fighting with tools itself but for make things.
Where I can find the list af ACTUAL COMPONENTS NAME ?

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