You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not possible to change the value of ENV['PATH'] from a ruby script. This makes childprocess fail to start commands when the PATH is changed from within a ruby script. Even adding new variables
Please create a file named "env-test.rb" with the following content:
without knowing but first I would try the MRI on jruby-9k. I should/could work.
What do you mean with this? The problem I ran into with ChildProcess occures with 1.7 and 9.0. ChildProcess with ProcessBuilder in the background does not find the command because the PATH needs to be modified from ruby during runtime.
as noted at enkessler/childprocess#89 you can NOT expect ENV modifications to be reflected on the JVM level with java.lang.System.getenv as it's by design read-only. you should experiment with avoiding the underlying ProcessBuilder under JRuby and use the same as MRI (although ONLY on JRuby 9.0.0.0)
It's not possible to change the value of
ENV['PATH']
from a ruby script. This makeschildprocess
fail to start commands when the PATH is changed from within a ruby script. Even adding new variablesPlease create a file named "env-test.rb" with the following content:
Then run the file with:
According to @jarib the result should be "true" for
but is "false".
This is related to enkessler/childprocess#89 and maybe even related to http://stackoverflow.com/questions/10035383/setting-the-environment-for-processbuilder.
Pinging @jarib and @mattwynne.
The text was updated successfully, but these errors were encountered: