[Rubygems-developers] [ rubygems-Bugs-29053 ] YAML error when installing gem on jruby

noreply at rubyforge.org noreply at rubyforge.org
Sat Mar 5 10:02:14 EST 2011


Bugs item #29053, was opened at 2011-03-04 01:31
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29053&group_id=126

Category: None
Group: None
>Status: Deleted
Resolution: None
Priority: 3
Submitted By: John Mair (banister)
Assigned to: Nobody (None)
Summary: YAML error when installing gem on jruby

Initial Comment:
john at littleblood ~ $ gem install pry
ERROR:  While executing gem ... (ArgumentError)
    undefined class/module YAML::Syck::DefaultKey

gem env output:
$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.6.0
  - RUBY VERSION: 1.8.7 (2010-09-28 patchlevel 249) [java]
  - INSTALLATION DIRECTORY: /home/john/.rvm/gems/jruby-1.5.3
  - RUBY EXECUTABLE: /home/john/.rvm/rubies/jruby-1.5.3/bin/jruby
  - EXECUTABLE DIRECTORY: /home/john/.rvm/gems/jruby-1.5.3/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.6
  - GEM PATHS:
     - /home/john/.rvm/gems/jruby-1.5.3
     - /home/john/.rvm/gems/jruby-1.5.3 at global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--env-shebang"
     - "update" => "--env-shebang"
     - "gem" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - http://rubygems.org/



----------------------------------------------------------------------

Comment By: John Mair (banister)
Date: 2011-03-04 01:39

Message:
Note that above is using the java platform gem, when i use 
the --platform=ruby gem i get even scarier errors:


$ gem install pry --platform=ruby
Fetching: sexp_processor-3.0.5.gem (100%)
Fetching: ruby_parser-2.0.6.gem (100%)
Fetching: coderay-0.9.7.gem (100%)
Fetching: method_source-0.3.4.gem (100%)
System.java:-2:in `arraycopy': 
java.lang.ArrayIndexOutOfBoundsException
	from DefaultResolver.java:111:in `makeTime'
	from DefaultResolver.java:277:in `create'
	from DefaultResolver.java:317:in `handleScalar'
	from DefaultResolver.java:435:in `orgHandler'
	from DefaultResolver.java:455:in `node_import'
	from 
org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER$node
_import.gen:65535:in `call'
	from CachingCallSite.java:146:in `call'

(..elided..)

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29053&group_id=126


More information about the Rubygems-developers mailing list