-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
v 0.7.4 ChildProcess on Windows requires "cmd.exe /c" #283
Comments
Mmh... I would to prefer to have a separate Launcher for this. Something like that. class PosixSpawnProcess < SpawnProcess
def self.match?(check)
true
end
end
class WindowsSpawnProcess < SpawnProcess
def self.match?(check)
:spawn == check && ChildProcess.windows?
end
def run!
end
end |
Thanks @weedySeaDragon - a PR would be great. And using @dg-ratiodata's suggestion of polymorphic process spawners sounds like the best approach. |
OK. I'll start working on a PR using that approach. Thanks for the quick responses, @mattwynne and @dg-ratiodata . |
Thanks a lot. |
I added |
Using version 0.7.4 on Windows, in
run! Child.Process.build(....)
fails with aChildeProcess LaunchError
. Here's a simple example running a cucumber scenario that uses aruba to call "rake spec"Here's the cucumber scenario:
and here's the error that happens when running it:
Per enkessler/childprocess#59, on Windows, ChildProcess requires you to start any shell commands with "cmd.exe /c". The following code works for me:
Would you like a PR for this?
The text was updated successfully, but these errors were encountered: