-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Rubygems broken due to psych problem for 1.7.16 in 1.8 mode #2057
Comments
I've realized that this and #2040 #2032 are caused by the same issue: predicate methods on File are broken because they error out on missing files instead of returning false. Many methods in $ java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
$ RBENV_VERSION=2.1.3 ruby -e 'p File.readable?("nonexist") || File.executable?("nonexist")'
false
$ RBENV_VERSION=jruby-1.7.16 ruby -e 'p File.readable?("nonexist") || File.executable?("nonexist")'
Errno::ENOENT: No such file or directory - /Users/mislav/p/rbenv/nonexist
readable? at org/jruby/RubyFileTest.java:202
(root) at -e:1 OS X 10.9.5 |
@mkristian Are you saying this is now fixed in 1_7 stable branch? #2032 (comment) Because I'm seeing the same error in JRuby 9.0.0.0 snapshot too: $ ruby -v
jruby 9.0.0.0.dev-SNAPSHOT (2.2.0p0) 2014-11-18 0cfdfe5 Java HotSpot(TM) 64-Bit Server VM 24.71-b01 on 1.7.0_71-b14 +jit [darwin-x86_64]
$ gem i ...
Errno::ENOENT: No such file or directory - /.gem/jruby/2.2
$ mkdir -p ~/.gem/jruby/2.2
$ gem i ...
# now gets further, but often fails with different problems, depending on the gem When will there be another release of 1.7.x to fix this and will the patch also make it to the 9000 branch? Because in the meantime I find the most recent JRuby releases utterly broken, with most RubyGems functionality not working. |
@mislav a merge to master is pending but will come soon can not give a hint about the release of 1.7.17 but it will come |
@mkristian JRuby 1.7.16.1 is still affected: $ RBENV_VERSION=2.1.5 ruby -e 'File.file? "nonexist"' && echo OK
OK
$ RBENV_VERSION=jruby-1.7.16.1 ruby -e 'File.file? "nonexist"'
Errno::ENOENT: No such file or directory - /Users/mislav/p/ruby-build/nonexist
file? at org/jruby/RubyFileTest.java:131
(root) at -e:1 If you wanted me to test the |
@mislav I meant the jruby-1_7 but |
Script to reproduce that emulates what Rubygems'
load_yaml
does:Instead of a LoadError because psych isn't available on 1.8, we get:
This breaks the simplest of Rubygems operations on the command-line, such as:
The text was updated successfully, but these errors were encountered: