Using both jruby 1.6.3 and 1.6.1 (on OS X) I get the following error
when I run gem install gherkin --version 2.4.8 :
Installing 2.4.6 works fine.
I have downloaded the gems manually, unpacked them and diffed the YAML
gemspecs (metadata file) and I can’t see any obvious differences. I am
also able to load both the 2.4.8 and 2.4.6 metadata files with:
jruby -e “require ‘yaml’; p YAML.load_file(‘2.4.8/metadata’)”
and
jruby -e “require ‘yaml’; p YAML.load_file(‘2.4.6/metadata’)”
Does anyone have a clue what’s causing this error? Can anyone reproduce
it?
On Aug 17, 2011, at 4:26 AM, aslak hellesoy wrote:
jruby -e “require ‘yaml’; p YAML.load_file(‘2.4.8/metadata’)”
and
jruby -e “require ‘yaml’; p YAML.load_file(‘2.4.6/metadata’)”
Does anyone have a clue what’s causing this error? Can anyone reproduce it?
I can reproduce it. Several of my CI builds failed this morning with
some variation on it. I don’t think it’s JRuby-specific.
As you noted, on JRuby the error prevents gherkin 2.4.8 from installing.
On MRI, the error is deferred until the gem is loaded:
$ gem install gherkin -v 2.4.8
Fetching: json-1.5.3.gem (100%)
Building native extensions. This could take a while…
Fetching: gherkin-2.4.8.gem (100%)
Building native extensions. This could take a while…
Successfully installed json-1.5.3
Successfully installed gherkin-2.4.8
2 gems installed
$ irb -rrubygems
ruby-1.8.7-p334 :001 > require ‘gherkin’
Invalid gemspec in
[/Users/rsutphin/.rvm/gems/ruby-1.8.7-p334/specifications/gherkin-2.4.8.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0x103fc8f88 0.7.9"]
LoadError: no such file to load – gherkin
from
/Users/rsutphin/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_require' from /Users/rsutphin/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:inrequire’
from (irb):1
This suggests to me a packaging problem, but I’m still looking into it.
LoadError: no such file to load – gherkin
from
/Users/rsutphin/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`gem_original_require’
from
/Users/rsutphin/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`require’
from (irb):1
I can’t replicate on Win7 32bit with JRuby 1.6.3 in 1.8.7 mode as shown below.
@Rhett…I haven’t tried on my Arch system, but shouldn’t the gem install be
pulling down the *-java.gem versions?
I was demonstrating that the problem happens on MRI, too, just delayed.
That’s the output from installing on MRI and then trying to load the
gem.
gemspecs (metadata file) and I can’t see any obvious differences. I am
I can reproduce it. Several of my CI builds failed this morning with some
variation on it. I don’t think it’s JRuby-specific.
2 gems installed
I can’t replicate on Win7 32bit with JRuby 1.6.3 in 1.8.7 mode as shown below.
@Rhett…I haven’t tried on my Arch system, but shouldn’t the gem install be
pulling down the *-java.gem versions?
I was demonstrating that the problem happens on MRI, too, just delayed. That’s
the output from installing on MRI and then trying to load the gem.
I believe I have fixed it now (gherkin 2.4.11). The root cause of the
bug seems to be that rubygems writes invalid YAML (or possibly a bug
in YAML itself):
On Wed, Aug 17, 2011 at 8:39 AM, aslak hellesoy [email protected] wrote:
I believe I have fixed it now (gherkin 2.4.11). The root cause of the
bug seems to be that rubygems writes invalid YAML (or possibly a bug
in YAML itself):
$ gem install gherkin -v 2.4.8
Invalid gemspec in
[/Users/rsutphin/.rvm/gems/ruby-1.8.7-p334/specifications/gherkin-2.4.8.gemspec]:
Illformed requirement [“#YAML::Syck::DefaultKey:0x103fc8f88 0.7.9”]
LoadError: no such file to load – gherkin
from
/Users/rsutphin/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_require' from /Users/rsutphin/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in require’
from (irb):1
I can’t replicate on Win7 32bit with JRuby 1.6.3 in 1.8.7 mode as shown
below.
@Rhett…I haven’t tried on my Arch system, but shouldn’t the gem install be pulling down the *-java.gem versions?