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

Cannot install rls (extension unusable) #1011

Closed
jens1o opened this issue Aug 24, 2018 · 24 comments
Closed

Cannot install rls (extension unusable) #1011

jens1o opened this issue Aug 24, 2018 · 24 comments
Labels

Comments

@jens1o
Copy link
Contributor

jens1o commented Aug 24, 2018

Nightly exclued the block from rls-preview to build rustc without it, and now the extension stopped working?

It is asking me to install the Service.
Then this happens:

image

Log:

[Error - 10:09:40 AM] Starting client failed
Error: Error starting up rls.
	at ClientWorkspace.<anonymous> (C:\Users\Jens\.vscode\extensions\rust-lang.rust-0.4.9\out\src\extension.js:364:23)
	at Generator.throw (<anonymous>)
	at rejected (C:\Users\Jens\.vscode\extensions\rust-lang.rust-0.4.9\out\src\extension.js:14:65)
	at <anonymous>
@nrc
Copy link
Member

nrc commented Aug 24, 2018

Hmm, I think the RLS is missing from today's nightly, but it shouldn't be renamed (and Rustup should not install the nightly update unless you force it to). Do you have the output from when you ran rustup update?

@nrc nrc added the P-high label Aug 24, 2018
@Xanewok
Copy link
Member

Xanewok commented Aug 24, 2018

It's true, nightlies did not ship with RLS today (waiting for rust-lang/rust#53610):

$ rustup update                                    
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'                                                                                  
info: latest update on 2018-08-24, rust version 1.30.0-nightly (63d66494a 2018-08-23)                   
warning: component 'rls-preview' is not available anymore on target 'x86_64-unknown-linux-gnu'                                                                           

@jens1o
Copy link
Contributor Author

jens1o commented Aug 24, 2018

Is there anything I can do?

No, @nrc I didn't have the output of it anymore.

@urschrei
Copy link

Confirming that nightlies got built without rls-preview for some reason. I just updated on x86_64-apple-darwin, and it was removed. Output below:

rustup update
$ rustup update nightly
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: latest update on 2018-08-24, rust version 1.30.0-nightly (63d66494a 2018-08-23)
warning: component 'rls-preview' is not available anymore on target 'x86_64-apple-darwin'
info: downloading component 'rustc'
 58.9 MiB /  58.9 MiB (100 %)   9.9 MiB/s ETA:   0 s                
info: downloading component 'rust-std'
 46.5 MiB /  46.5 MiB (100 %)  11.5 MiB/s ETA:   0 s                
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'clippy-preview'
info: downloading component 'rust-src'
info: downloading component 'rust-analysis'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'clippy-preview'
info: removing component 'rust-src'
info: removing component 'rust-analysis'
info: removing component 'rls-preview'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: installing component 'clippy-preview'
info: installing component 'rust-src'
info: installing component 'rust-analysis'

  nightly-x86_64-apple-darwin updated - rustc 1.30.0-nightly (63d66494a 2018-08-23)

@o01eg
Copy link

o01eg commented Aug 24, 2018

Is it possible to prevent rustup from updating if rls isn't available?

@Xanewok
Copy link
Member

Xanewok commented Aug 24, 2018

It was that way before, not sure why the nightlies were released without RLS.
For now you can use the workaround from #641 (comment)

@sunjay
Copy link
Member

sunjay commented Aug 24, 2018

Also experiencing this. Output from rustup update:

info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2018-08-24, rust version 1.30.0-nightly (63d66494a 2018-08-23)
warning: component 'rls-preview' is not available anymore on target 'x86_64-unknown-linux-gnu'
info: downloading component 'rustc'
 70.5 MiB /  70.5 MiB (100 %)   8.0 MiB/s ETA:   0 s                
info: downloading component 'rust-std'
 51.7 MiB /  51.7 MiB (100 %)   1.4 MiB/s ETA:   0 s                
info: downloading component 'cargo'
  4.5 MiB /   4.5 MiB (100 %)   3.0 MiB/s ETA:   0 s                
info: downloading component 'rust-docs'
  8.3 MiB /   8.3 MiB (100 %)   6.4 MiB/s ETA:   0 s                
info: downloading component 'rust-std' for 'armv7-unknown-linux-gnueabihf'
 49.5 MiB /  49.5 MiB (100 %)   7.8 MiB/s ETA:   0 s                
info: downloading component 'clippy-preview'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
 10.6 MiB /  10.6 MiB (100 %)   8.1 MiB/s ETA:   0 s                
info: downloading component 'rustfmt-preview'
info: downloading component 'rust-analysis'
info: downloading component 'rust-src'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-std' for 'armv7-unknown-linux-gnueabihf'
info: removing component 'clippy-preview'
info: removing component 'rust-std' for 'wasm32-unknown-unknown'
info: removing component 'rustfmt-preview'
info: removing component 'rust-analysis'
info: removing component 'rust-src'
info: removing component 'rls-preview'
info: installing component 'rustc'

The output ends abruptly because I tried to cancel it. It was already too late though so I currently don't have a working RLS.

@dergroncki
Copy link

Same happens to me:

image

@h-michael
Copy link
Contributor

Now, nightly(1.30.0-nightly (39e6ba821 2018-08-25)) build has RLS.
If you run rustup update nightly, you can add RLS.

@sunjay
Copy link
Member

sunjay commented Aug 26, 2018

Yup! Confirmed! I was able to get it to work. The latest version is 39e6ba821 2018-08-25 exactly like you said. :)

You may have to run the following after rustup update in order to get back the right components:

rustup component add --toolchain nightly rls-preview rust-analysis rust-src

@jens1o
Copy link
Contributor Author

jens1o commented Aug 26, 2018

Works for me again, too.

@jens1o jens1o closed this as completed Aug 26, 2018
@sophiajt
Copy link

This appears to have broken again with the latest nightly:

C:\Source\gatherer>rustup update
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: latest update on 2018-08-29, rust version 1.30.0-nightly (7061b2775 2018-08-28)
warning: component 'rls-preview' is not available anymore on target 'x86_64-pc-windows-msvc'

@sophiajt sophiajt reopened this Aug 29, 2018
@razor950
Copy link

It is broken only because rls and a few other tools couldn't be compiled for that nightly.

https://rust-lang-nursery.github.io/rust-toolstate/ <- shows you if everything for that nightly is fine

@sophiajt
Copy link

@razor950 At least as I understand it nightlies shouldn't be available if the RLS isn't included (as mentioned earlier in this thread)

@razor950
Copy link

ah, that would make sense but I've had it happen a few times already so I wasn't sure what the norm was.

Thanks for the clarification and hopefully it does get fixed soon, I'll rollback my nightly for now though.

@bertbeck
Copy link

I'm having the same issue today:
Roberts-MacBook-Pro:src bert$ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: latest update on 2018-09-15, rust version 1.30.0-nightly (2ab3eba30 2018-09-14)
error: component 'rls-preview' for 'x86_64-apple-darwin' is unavailable for download
info: checking for self-updates
stable-x86_64-apple-darwin unchanged - rustc 1.29.0 (aa3ca1994 2018-09-11)
nightly-x86_64-apple-darwin update failed - rustc 1.22.0-nightly (f6d751454 2017-10-17)
$ rustup 'rls-preview' for 'x86_64-apple-darwin' is unavailable for download
error: Found argument 'rls-preview' which wasn't expected, or isn't valid in this context

@GabrielMajeri
Copy link

@bertbeck This will happen occasionally, when Rust upstream changes break RLS.

This is the intended behavior. Instead of silently removing the tools you want, rustup will warn you they aren't available.

Simply try updating again sometime later, after the components get fixed. Use update --force if you want to update and lose RLS/clippy/rustfmt.

@0b01
Copy link

0b01 commented Nov 6, 2018

For those failing rustup update because of rls-preview, run rustup component remove rls-preview then run rustup update.

@AN3223
Copy link

AN3223 commented Jan 5, 2019

For those failing rustup update because of rls-preview, run rustup component remove rls-preview then run rustup update.

Just want to add that removing rls-preview this way fixed my problem with rls being unavailable for download.

@leshow
Copy link

leshow commented Jan 7, 2019

@AN3223 note that this will install the current nightly, but you won't be able to install RLS for nightly again until it's fixed. So you'll have nightly rust without RLS

@siman
Copy link

siman commented Jan 22, 2019

Current solution:

rustup toolchain install nightly-2019-01-15
rustup default nightly-2019-01-15
rustup component add rls-preview rust-analysis rust-src --toolchain nightly-2019-01-15

petschekr added a commit to HackGT/checkin-embedded that referenced this issue Jan 29, 2019
Now requires Rust Nightly. See rust-lang/rls#1011 (comment) for help with RLS using nightly while it's currently broken
petschekr added a commit to HackGT/checkin-embedded that referenced this issue Jan 29, 2019
Now requires Rust Nightly. See rust-lang/rls#1011 (comment) for help with RLS using nightly while it's currently broken
petschekr added a commit to HackGT/checkin-embedded that referenced this issue Jan 29, 2019
Now requires Rust Nightly. See rust-lang/rls#1011 (comment) for help with RLS using nightly while it's currently broken
@henryboisdequin
Copy link

Does anyone know a solution for this in 2021?

@hbriese
Copy link

hbriese commented Jul 20, 2021

  • Find the latest nightly version that rls still builds on using https://rust-lang-nursery.github.io/rust-toolstate/
    It'll be 1 day prior to the "in this state since" date - assuming it's failing.
    At the time of this post that version is nightly-2021-07-05

  • Download the latest version of nightly that rls still builds on, and override your project's rust version

rustup toolchain install nightly-2021-07-05
rustup override set nightly-2021-07-05-x86_64-unknown-linux-gnu
rustup component add rls rust-analysis rust-src

@MingweiSamuel
Copy link
Contributor

MingweiSamuel commented Sep 7, 2021

This page also lists the latest version with rls and other components: https://rust-lang.github.io/rustup-components-history/

(2021-08-17 right now)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests