-
Notifications
You must be signed in to change notification settings - Fork 79
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
Redirect to IO.pipe on Windows causes inability to start a process #161
Comments
Backticks don't allow streaming the logs in runtime, so this code should be rewritten to childprocess when enkessler/childprocess#161 is fixed.
Hey @barancev, thanks for the report. What you are trying to do is pretty straightforward, but this particular combination of tools (JRuby + Windows) is a little off the beaten path. Perhaps there are limitations with JRuby's implementation of Would appreciate help from interested folks in investigating this particular issue. Thanks! |
Is it better to report this to the JRuby team? |
I would potentially open a bug with the JRuby team if you are unable to reproduce this bug on Windows with vanilla MRI Ruby. The issue here is that we have code to use Windows-specific logic when running in JRuby on Windows, and I'm not sure how often this logic is exercised. The JRuby team may come back to say that it's an issue with the implementation. If, however, you are able to get this to work with vanilla Ruby and not JRuby, that may suggest an issue with JRuby itself. Appreciate your help in investigating. |
Closing as there does not appear to be an effort to address. Happy to merge a pull request fixing the issue, if it is indeed specific to |
Sorry for silence, I've implemented a workaround and forgot about this issue... |
Here it is: jruby/jruby#6102 |
JRuby 9.2.8.0, Windows 10, Oracle Java 1.8.0_211
Reproduction sample:
does not start Notepad and fails with this log:
If I uncomment
proc.io.inherit!
instead of redirecting to pipes everything works like a charm.The text was updated successfully, but these errors were encountered: