-
-
Notifications
You must be signed in to change notification settings - Fork 924
popen3 doesn't works fine with java 9/10 and jruby > 1.9.13 #5235
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
Comments
Works properly on MacOS with JRuby 9.2.1. I'll confirm it works on Linux too. |
This appears to be working with JRuby 9.1.17 and 9.2 on both MacOS and Linux. |
Oops, I just realized this was reported against Java 9/10. Reopening. |
Thank you all for your answers. But the problem is that popen3 doesn't works fine with java 9/10 and jruby 1.9.13 |
Relates to #4835 which will continue work in 9.2.2. |
This seems to work fine for me on Java 11 on MacOS: require 'open3'
Open3.popen3('echo 123') do |_stdin, stdout, _stderr|
out = stdout.read.strip
p out
end
|
This is happening on "JRuby 9.1.17.0" for "ubuntu 20.04" on Github actions, it might be the default Java for that release is broken? https://github.com/rspec/rspec-support/runs/1435614749?check_suite_focus=true edit indeed using 18.04 fixes this issue, for other people googling |
The stdout, stderr is not captured with java 9 and 10.
I'm running this simple test on Ubuntu 16.04 and SLES with the same result
With Java 10.0.1 and 9.1.13 it works fine.
Starting from jruby 9.1.14 the test fails.
Switching to Java 1.8.0_144 the test works again with jruby version greater than 9.1.13.
The text was updated successfully, but these errors were encountered: