Skip to content

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

Open
@yangwenmai

Description

@yangwenmai

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions