Forum: JRuby yaml parsing error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Joseph A. (Guest)
on 2008-11-04 06:48
(Received via mailing list)
I'm trying to use the sms-fu plugin which generates a big yaml file with
cell carrier domains.  It doesn't seem to get parsed by JRuby correctly.
Anyone seen this?  It also makes NetBeans unable to handle the file.

*JRUBY*
jjathman@jjathman-desktop:~/NetBeansProjects/jruby$ jruby -v
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-03 rev 7998)
[i386-java]
jjathman@jjathman-desktop:~/NetBeansProjects/jruby$ jirb
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> YAML.load("foo: @bar")
ArgumentError: syntax error:ScannerException while scanning for the next
token we had this found character @(64) that cannot start any token
    from (irb):3
    from
/home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:150:in
`eval_input'
    from
/home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:259:in
`signal_status'
    from
/home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:147:in
`eval_input'
    from
/home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:146:in
`eval_input'
    from /home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:70:in
`start'
    from /home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:69:in
`catch'
    from /home/jjathman/NetBeansProjects/jruby/lib/ruby/1.8/irb.rb:69:in
`start'
    from /home/jjathman/NetBeansProjects/jruby/bin/jirb:19
irb(main):003:0>

*MRI
*jjathman@jjathman-desktop:~/NetBeansProjects/jruby$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
jjathman@jjathman-desktop:~/NetBeansProjects/jruby$ irb
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> YAML.load("foo: @bar")
=> {"foo"=>"@bar"}
irb(main):003:0>
This topic is locked and can not be replied to.