Yaml parsing error


#1

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:insignal_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:ineval_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:incatch’
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>