-
Notifications
You must be signed in to change notification settings - Fork 892
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
rustup doc should deal with absent doc instead of silently failing #901
Comments
@toastedcornflakes ah thank you for this issue! I was trying to understand why |
+1 |
It doesn't fail silently here, but it fails: When I do
It is not at all obvious to me how to even install the docs. |
When the user runs `rustup doc` on a toolchain which doesn't have the `rust-docs` component installed, we now report more nicely that the user ought to try and install the component. Fixes rust-lang#901 Signed-off-by: Daniel Silverstone <[email protected]>
I'd appreciate input on whether or not #2116 is sufficient |
#2116 is what I had in mind when I raised this, thanks! |
Thank you. |
On a new install of rustup, running
rustup doc
fails silently if the documentation is not installed: the browser does not open, and there is no error message.Would it be OK to add an error message, or to automatically run
rustup component add rust-docs
?This is tangentially related to #891 — if the doc is installed by default, this issue would be moot.
The text was updated successfully, but these errors were encountered: