Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Q1: error-component-rls-is-unavailable-for-download-nightly #1

Open
yangwenmai opened this issue Apr 20, 2019 · 0 comments
Open

Q1: error-component-rls-is-unavailable-for-download-nightly #1

yangwenmai opened this issue Apr 20, 2019 · 0 comments
Labels
question Further information is requested

Comments

@yangwenmai
Copy link
Owner

yangwenmai commented Apr 20, 2019

VSCode 在打开 rs 文件后提示安装 rust-analysis 等,但是报错了

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

解决办法:

https://github.com/rust-lang/rls#error-component-rls-is-unavailable-for-download-nightly

最终解决办法:rust-lang/rls#641 (comment)


For those who made it here looking for a workaround, the most recent toolchain I found which still has rls-preview is nightly-2019-04-19.

$ rustup toolchain install nightly-2019-04-21-x86_64-apple-darwin
$ rustup component add rls-preview --toolchain nightly-2019-04-21-x86_64-apple-darwin

Then in your VSCode user settings:

  "rust-client.channel": "nightly-2019-04-21-x86_64-apple-darwin"
@yangwenmai yangwenmai added the question Further information is requested label Apr 20, 2019
@yangwenmai yangwenmai changed the title error-component-rls-is-unavailable-for-download-nightly 【Q1】error-component-rls-is-unavailable-for-download-nightly Apr 20, 2019
@yangwenmai yangwenmai changed the title 【Q1】error-component-rls-is-unavailable-for-download-nightly Q1: error-component-rls-is-unavailable-for-download-nightly Apr 20, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant