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

Confusing error when attempting to install rust-docs component #1251

Closed
silverjam opened this issue Sep 14, 2017 · 3 comments
Closed

Confusing error when attempting to install rust-docs component #1251

silverjam opened this issue Sep 14, 2017 · 3 comments

Comments

@silverjam
Copy link
Contributor

Ran the command curl https://sh.rustup.rs -sSf | sh to install rustup, then rustup component add rust-src which worked, then rustup component add rust-docs which fails with the following error:

error: component 'rust-docs' for target 'x86_64-apple-darwin' is required for toolchain 'stable-x86_64-apple-darwin' and cannot be re-added

Which is not google-able and doesn't seem (to me) to provide any clues on how to resolve the issue... any hints?

@Diggsey
Copy link
Contributor

Diggsey commented Sep 14, 2017

It means the documentation is already installed (it's a required component).

@silverjam
Copy link
Contributor Author

Ok, would suggest re-wording the error... was following instructions here: http://asquera.de/blog/2017-03-03/setting-up-a-rust-devenv/ -- which seems to assume that it's not a required component.

@silverjam
Copy link
Contributor Author

Suggest error: component 'rust-docs' is already added for target 'x86_64-apple-darwin' because it is required for toolchain 'stable-x86_64-apple-darwin' and cannot be re-added, type blah blah to see the component

bors added a commit that referenced this issue Sep 21, 2017
…rror, r=alexcrichton

Improve clarity of "adding req. component" error

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

No branches or pull requests

2 participants