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

start is a cmd builtin, doesn't work for edit #7107

Closed
quinnj opened this issue Jun 3, 2014 · 6 comments
Closed

start is a cmd builtin, doesn't work for edit #7107

quinnj opened this issue Jun 3, 2014 · 6 comments
Labels
system:windows Affects only Windows

Comments

@quinnj
Copy link
Member

quinnj commented Jun 3, 2014

Ran into this trying to use the edit methods, but it seems like a spawn issue to me.

shell> start C:/Users/karbarcca/code/scratch.jl
ERROR: could not spawn `start C:/Users/karbarcca/code/scratch.jl`: no such file
or directory (ENOENT)
 in _jl_spawn at process.jl:217
 in spawn at process.jl:348
 in spawn at process.jl:389
 in repl_cmd at client.jl:63

julia>

blas_num_threads=4

#below works no problem; same command
C:\Users\karbarcca>start C:/Users/karbarcca/code/scratch.jl
@tkelman
Copy link
Contributor

tkelman commented Jun 3, 2014

Have seen this bug in a few packages. I think you need to do cmd /c start C:/Users/karbarcca/code/scratch.jl

@quinnj
Copy link
Member Author

quinnj commented Jun 3, 2014

Ah, that did it. So is there something that needs to be fixed here?

@tkelman
Copy link
Contributor

tkelman commented Jun 3, 2014

Find every usage of start for opening files on Windows in base and/or packages and prefix them with cmd /c ?

@vtjnash
Copy link
Member

vtjnash commented Jun 5, 2014

The command for this is ShellExecuteEx, which is for launching windows GUI applications (whereas the current API is for launching command line applications): http://msdn.microsoft.com/en-us/library/windows/desktop/bb762154(v=vs.85).aspx

@quinnj
Copy link
Member Author

quinnj commented Jun 5, 2014

Ok, I've got a working version of ShellExecute. So should we use that for the edit function and cmd /c for shell mode?

@vtjnash vtjnash changed the title Cmd works from command line, but not julia [Windows] start is a cmd builtin, doesn't work for edit Jun 27, 2014
@digital-carver
Copy link
Contributor

The replacement with ShellExecuteW seems complete, InteractiveUtils doesn't use start anywhere, and the rest of base and stdlib don't seem to either. This can probably be closed.

@mbauman mbauman closed this as completed Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:windows Affects only Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants