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)
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
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.
Had the same issue and using rls-preview fixed this for me too.
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.
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
rustup component add rls --toolchain nightly
error: toolchain 'nightly-x86_64-apple-darwin' does not contain component 'rls' for target 'x86_64-apple-darwin'
rustup component add rls-preview --toolchain nightly
Is this with the latest VSCode extension? If you have v0.3.0, this should be addressed.
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'
Try running rustup update first and see if that helps. I can confirm it
works on Windows with that specific toolchain for me.
On Sun, 8 Oct 2017 at 02:15, Val V notifications@github.com wrote:
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'—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rust-lang-nursery/rls/issues/502#issuecomment-334974158,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC8y3VWq-A3P9ZP8Ra6apb0ZmSN7ygYzks5sqBQ7gaJpZM4Pof1i
.
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.
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.
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>
@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.
@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.
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
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 ?
Most helpful comment
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.