-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
use ShellExecuteW rather than cmd for edit function on Windows #20571
Conversation
@tkelman, how do I get a Windows binary for this branch from the buildbot? |
win32 or win64? check https://julianightlies.s3.amazonaws.com for 2920464 once https://build.julialang.org/builders/package_win6.2-x86/builds/1277 or https://build.julialang.org/builders/package_win6.2-x64/builds/1339 are done |
Okay, I tried out |
@@ -51,10 +51,7 @@ function edit(path::AbstractString, line::Integer=0) | |||
cmd = line != 0 ? `$command $path:$line` : `$command $path` | |||
elseif startswith(name, "notepad++") | |||
cmd = line != 0 ? `$command $path -n$line` : `$command $path` | |||
elseif is_windows() && (name == "start" || name == "open") | |||
cmd = `cmd /c start /b $path` | |||
line_unsupported = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why this is redundant? shouldn't you still get the line number warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line_unsupported = true
is set in the else
clause, so you still get the line-number warning.
Will merge in a day or two if there are no objections. |
Closes #20364. Updated version of #20478, and on JuliaLang so that buildbot can be used. Supersedes #20479.