When updating nightly I got:
[ Sat Jan 19 | 09:11 PM | forecast-service ]: rustup update && cargo 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 2019-01-20, rust version 1.33.0-nightly (0c0c58528 2019-01-19)
error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download
info: checking for self-updates
stable-x86_64-apple-darwin unchanged - rustc 1.32.0 (9fda7c223 2019-01-16)
nightly-x86_64-apple-darwin update failed - rustc 1.32.0-nightly (f4a421ee3 2018-12-13)
Updating crates.io index
Updating proc-macro2 v0.4.25 -> v0.4.26
Is nightly broken?
@karasjoh000
Yes, if you want use nightly with rls, you might use 2019-01-19's nightly like this.
rustup toolchain install nightly-2019-01-19
https://mexus.github.io/rustup-components-history/
https://github.com/rust-lang/rust/issues/57771
This is a semi-regular occurrence on the nightly channel see https://github.com/rust-lang/rls/issues/641#issuecomment-446302145.
It's generally ok to use the previous nightly release until clippy/rls compile is fixed, which is what rustup does by default.
I think we should add something to the readme though tbf.
We've just added more info to the readme https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly
I think this info should be added to rustup itself. It should just print the workaround command.
My solution is:
1 check the last available nightly version contains 'rls'
2 rustup toolchain add nightly-2020-05-15 it's 2020-05-15 in my case.
3 rustup default nightly-2020-05-15 this very important step, can't make it work if you skip this.
4 rustup component add rls
After this, rls had been installed on my mac.
If you're like me using vs code rust extension, press shift+cmd+p, run "Rust : start the rust server".
After you see the green triangle on the bottom of vs code, your code completion and hover-docs should work like a pony.
@hecool108 thanks - worked for me
Most helpful comment
We've just added more info to the readme https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly