Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUse ShellExecute to open docs on windows #499
Comments
This comment has been minimized.
This comment has been minimized.
|
Interesting. On Windows 10 ( With my default set to either nightly or stable, What do you have set in "Default Apps by Protocol"? (Settings -> System -> Default Apps -> Choose default apps by protocol) |
This comment has been minimized.
This comment has been minimized.
|
@peschkaj I'd assume this would only happen if you don't have a default browser set? Otherwise that is strange. If you run, for example, |
This comment has been minimized.
This comment has been minimized.
|
I would've assumed that I was being prompted because I didn't have a default browser set, too, but this has been my daily driver system since October of last year, so I'm really confused why this particular action bothered to prompt me. I wonder if you're running into something blocking you on from being on the Insider Preview. |
This comment has been minimized.
This comment has been minimized.
|
I couldn't duplicate this on |
This comment has been minimized.
This comment has been minimized.
luser
commented
May 25, 2016
|
I just hit this, also running a Windows 10 insider build (14342). I wouldn't be surprised if this is a Windows bug. If I open cmd.exe:
|
This comment has been minimized.
This comment has been minimized.
|
@luser Interesting. I've submitted it to the insider hub, lets hope they actually see it. feedback-hub:?contextid=268&feedbackid=b2091da1-3e92-4c8e-bd5c-fadae6f29412&form=1&src=2 Edit: Interestingly, that feedback-hub link also does not work with the |
This comment has been minimized.
This comment has been minimized.
|
There must be a smarter way to open the web browser than running cmd.exe. |
This comment has been minimized.
This comment has been minimized.
luser
commented
Jun 4, 2016
|
I believe |
This comment has been minimized.
This comment has been minimized.
|
Let's re-purpose this issue for the |
Diggsey
added this to Features (inclination: accept)
in Issue Categorisation
May 4, 2017
Diggsey
added
E-easy
enhancement
help wanted
labels
May 5, 2017
Diggsey
changed the title
`rustup doc --book` fails on Windows
Use ShellExecute to open docs on windows
May 5, 2017
This comment has been minimized.
This comment has been minimized.
Eh2406
commented
May 12, 2017
|
I don't see |
This comment has been minimized.
This comment has been minimized.
|
This is no longer an issue in W10 build 15063 AKA Creator's Update. I assume that this isn't specific to insider builds (considering that 15063 was an insider build before general availability). It might still be a good idea to use ShellExecute. We don't necessarily need winapi to use ShellExecute. It's a pretty simple API. We'd just need one extern function, one constant, and make sure that the types of LPCSTR, etc. are correct.
|
This comment has been minimized.
This comment has been minimized.
Eh2406
commented
May 12, 2017
|
That is a great point. This code worked in one of my projects.
oops, did not see your edit. |
mattico commentedMay 25, 2016
•
edited
rustup 0.1.12 (c6e430a 2016-05-12)
Windows 10 x64 Insider Preview build 14342
Running any of the
docsubcommands opens a new command prompt, but does not display the docs. I've tested this from cmd.exe, powershell.exe, and the MSYS2 shell.Let me know if you need any other info to help debug this issue.
Edit:
I've tried running the command as found in https://github.com/rust-lang-nursery/rustup.rs/blob/master/src/rustup-utils/src/raw.rs#L542, which works fine.
cmd /C start https://github.com