Details

    • Number of attachments :
      0

      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

          Activity

          Hide
          Hiro Asari added a comment -

          Charlie's fix for JRUBY-5967 should fix this one, too.

          Now, Padrino still fails to generate a project in 1.9 mode, but's probably another ticket.

          [system] ~ $ jruby --1.9 -S padrino --version
          Padrino v. 0.10.5
          [system] ~ $ jruby --1.9 -S padrino g project myapp
          Please specify generator to use (project, app, mailer, controller, model, migration, plugin)
          
          Show
          Hiro Asari added a comment - Charlie's fix for JRUBY-5967 should fix this one, too. Now, Padrino still fails to generate a project in 1.9 mode, but's probably another ticket. [system] ~ $ jruby --1.9 -S padrino --version Padrino v. 0.10.5 [system] ~ $ jruby --1.9 -S padrino g project myapp Please specify generator to use (project, app, mailer, controller, model, migration, plugin)

            People

            • Assignee:
              Hiro Asari
              Reporter:
              Kai D
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: