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

error: component 'rls' for target 'x86_64-apple-darwin' is unavailable for download #1242

Closed
karasjoh000 opened this issue Jan 20, 2019 · 6 comments

Comments

@karasjoh000
Copy link

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?

@h-michael
Copy link
Contributor

h-michael commented Jan 20, 2019

@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/
rust-lang/rust#57771

@alexheretic
Copy link
Member

alexheretic commented Jan 20, 2019

This is a semi-regular occurrence on the nightly channel see #641 (comment).

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.

@alexheretic
Copy link
Member

alexheretic commented Jan 20, 2019

We've just added more info to the readme https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly

@NightMachinery
Copy link

I think this info should be added to rustup itself. It should just print the workaround command.

@hecool108
Copy link

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.

@enzoampil
Copy link

@hecool108 thanks - worked for me

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

6 participants