Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Could not add rust-analysis by full name #1077

Closed
sophiajt opened this issue Apr 18, 2017 · 4 comments
Closed

Could not add rust-analysis by full name #1077

sophiajt opened this issue Apr 18, 2017 · 4 comments

Comments

@sophiajt
Copy link

rustup component list shows a full name of components (like rust-analysis-i686-pc-windows-msvc, rust-std-aarch64-apple-ios and so on).

But rustup component add rust-analysis-i686-pc-windows-msvc itself does not work:

error: toolchain 'nightly-i686-pc-windows-msvc' does not contain component 'rust-analysis-i686-pc-windows-msvc' for target 'i686-pc-windows-msvc'

However it works with the short name: rustup component add rust-analysis.

Full log:

> rustup show
...
active toolchain
----------------

nightly-i686-pc-windows-msvc (default)
rustc 1.18.0-nightly (7627e3d31 2017-04-16)

> rustup component list
cargo-i686-pc-windows-msvc (default)
rls-i686-pc-windows-msvc
rust-analysis-i686-pc-windows-msvc
rust-docs-i686-pc-windows-msvc (default)
rust-src
rust-std-aarch64-apple-ios
...

> rustup component add rust-analysis-i686-pc-windows-msvc
error: toolchain 'nightly-i686-pc-windows-msvc' does not contain component 'rust-analysis-i686-pc-windows-msvc' for target 'i686-pc-windows-msvc'

(from: rust-lang/rls#262)

@Diggsey
Copy link
Contributor

Diggsey commented Apr 18, 2017

Yeah, this is poor UX, it affects docs too, and possibly libstds. It should be possible to install alternate targets by passing --target xyz to rustup component add rust-analysis

@brson
Copy link
Contributor

brson commented May 12, 2017

Yeah since this affects several commands and lists, needs a bit of a think before deciding what to do.

@pravic
Copy link

pravic commented Sep 2, 2017

error: toolchain 'stable-i686-pc-windows-msvc' does not contain component 'rust-analysis-i686-pc-windows-msvc' for target 'i686-pc-windows-msvc'

Since the target is already known, why not just split the component name? Or if it is combined (full), do not make full name for such commands and leave it as rust-analysis, rust-src and so on.

@kinnison
Copy link
Contributor

I believe this was resolved by #2088

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

No branches or pull requests

5 participants