Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.4
-
Fix Version/s: JRuby 1.6.6, JRuby 1.7.0.pre1
-
Component/s: Extensions
-
Number of attachments :
Description
If I run following code in irb
require "yaml" YAML::ENGINE.yamler = "syck" [].to_yaml
I get this error:
NameError: uninitialized constant Syck::Yecht from org/jruby/RubyModule.java:2569:in `const_missing' from org/jruby/RubyClass.java:219:in `allocate' from /home/kai/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/syck.rb:102:in `emitter' from /home/kai/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/syck.rb:399:in `quick_emit' from /home/kai/.rvm/rubies/jruby-1.6.4/lib/ruby/1.9/syck/rubytypes.rb:111:in `to_yaml' from (irb):3:in `evaluate' from org/jruby/RubyKernel.java:1093:in `eval' from org/jruby/RubyKernel.java:1419:in `loop' from org/jruby/RubyKernel.java:1205:in `catch' from org/jruby/RubyKernel.java:1205:in `catch' from /home/kai/.rvm/rubies/jruby-1.6.4/bin/irb:17:in `(root)'
I tried to run the webframework padrino with jruby 1.6.4. But the creation of a new padrino project crashs because padrino uses syck as YAML parser.
Issue Links
- relates to
-
JRUBY-5967
[1.9] Rails fails to start if any library sets YAML::ENGINE.yamler= 'syck'
-
Charlie's fix for
JRUBY-5967should fix this one, too.Now, Padrino still fails to generate a project in 1.9 mode, but's probably another ticket.