-
Notifications
You must be signed in to change notification settings - Fork 911
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
appears to do nothing
#1125
Comments
In this case rustup was satisfied with just successfully launching
|
$ time rustup doc
real 0m0.308s
user 0m0.290s
sys 0m0.017s Exit code is 0. According to strace, it executed Maybe EDIT: using this patch for my own needs. |
In my case it tried to open |
I used |
I was also having this problem on Mac OS X, version 10.13.2. I executed
as suggested by @Natim, and then I executed again
and a browser tab automatically opened, in my case, on Chrome, with the offline documentation. |
@Diggsey Maybe you are looking for |
In my case, it was because I don't have Passing back an error message would be much more helpful than the current behaviour of failing silently. |
tl;dr: @britishben set For me, So this does nothing and returns exit code 0: $ xdg-open "/home/xftroxgpx/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc/rust/html/index.html" </dev/null 2>&1 >/dev/null ; echo "exit code:$?"
exit code:0 But this works and runs
Workaround: set the ;// before:
$ rustup doc
!! executing: xdg-open "/home/xftroxgpx/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc/rust/html/index.html"
;// after
$ export BROWSER=chro2
$ rustup doc
!! executing: chro2 "/home/xftroxgpx/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc/rust/html/index.html" If the I'm personally still using a patch to mitigate this instead. (even though |
@xftroxgpx I had the exact same problem and it was quite interesting to see what went wrong. The question is, why does
So it seems that as soon as you install another browser, there is a chance that the entry is updated in an unintended way. The cache file is updated by
I'd love to know what really happened here. But since we all love elinks and have it installed for a reason, we can just put this:
into |
The mime handlers ought to include information on how to deal with terminal vs. not terminal. I wonder why they don't. |
my
|
Do you have the Otherwise this might be another |
yes, i have it installed. |
I believe I've figured out what can cause the browser not to open: @japrogramer could you share what distro, desktop environment, and web browser combination is not working for you so I can try to reproduce the issue? |
@Seeker14491 I am using arch Linux, sway wm and Firefox. |
I've opened Seeker14491/opener#4 to track this bug. |
Thank you. I was going crazy trying to figure out why on only one of my machines when I ran Sure enough:
|
up, |
@Erudyx could you respond to Seeker14491/opener#4 (comment)? Also, I'd like to know what's your distro and browser so I can try to reproduce this. |
According to this comment, this issue has been resolved since opener version is now 0.5? |
1.25 is now out |
#1046 (comment)
The text was updated successfully, but these errors were encountered: