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

rustup doc produces an unhelpful error dialog #959

Closed
mark-summerfield opened this issue Feb 20, 2017 · 2 comments
Closed

rustup doc produces an unhelpful error dialog #959

mark-summerfield opened this issue Feb 20, 2017 · 2 comments

Comments

@mark-summerfield
Copy link

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

I installed rust using the command in the online manual:

$ curl https://sh.rustup.rs -sSf | sh

This set the path in my .profile file but that doesn't seem to be read even when I open a new console, so I copied the path command into .bashrc and opened a new console:

$ rustc --version
rustc 1.15.1 (021bd29 2017-02-08)

$ rustup doc
This popped up an untitled message box with the following text:

Failed to open "/home/mark/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/index.html".
Error when getting information for file '/home/mark/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html/index.html': No such file or directory.

It would be better if the error message said something like:

The rust documentation isn't installed locally by default.
To read the documentation either go online to doc.rust-lang.org, or install locally by running:
$ rustup component add rust-docs

See https://users.rust-lang.org/t/psa-rust-documentation-is-now-optional-and-opt-in-when-installing-via-rustup/8072

@bmmoore
Copy link

bmmoore commented Mar 1, 2017

This seems like another manifestation of #901. I don't know why some see a silent failure and some get an error dialog. I suspect the message box here isn't coming from rustup itself but from whatever it's asking to open an html file, with some people's default application failing silently (or at least just not reporting it graphically) instead of complaining.

@brson
Copy link
Contributor

brson commented Mar 16, 2017

Thanks for the report @mark-summerfield and @bmmoore !

Looks like a dupe of #901

@brson brson closed this as completed Mar 16, 2017
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

3 participants