Issue #4383 has been updated by Aaron Patterson.

Status changed from Assigned to Third Party's Issue

I'm closing this as a third party issue.  The problem stems from ambiguities in the YAML spec with regard to JSON and YAML support.  This exception was added on purpose in libyaml.  Please read the discussion on the libyaml mailing list for more information:


  http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTi%3DtRBNOo__zmn%3D%3D3hW_VhQQNG1WeD5E-1z6ZAKm%40mail.gmail.com&forum_name=yaml-core

In the mean time, I am updating projects with YAML that isn't compliant.
----------------------------------------
Bug #4383: psych fails to parse a symbol in a flow sequence
http://redmine.ruby-lang.org/issues/4383

Author: Yuki Sonoda
Status: Third Party's Issue
Priority: Normal
Assignee: Aaron Patterson
Category: ext
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0] 


 % ruby-trunk -rsyck -ryaml -ve 'p YAML.load("order: [ :year, :month, :day ]")' 
 ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0]
 {"order"=>[:year, :month, :day]}
 
 % ruby-trunk -rpsych -ryaml -ve 'p YAML.load("order: [ :year, :month, :day ]")'
 ruby 1.9.3dev (2011-02-08 trunk 30821) [i386-darwin9.8.0]
 /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:153:in `parse': (<unknown>): couldn't parse YAML at line 0 column 10 (Psych::SyntaxError)
         from /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:153:in `parse_stream'
         from /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:124:in `parse'
         from /Users/yugui/local/lib/ruby-trunk/1.9.1/psych.rb:111:in `load'
         from -e:1:in `<main>'
 
 The example YAML is a part of lib/active_support/locale/en.yml  in ActiveSupport 2.3.10.


-- 
http://redmine.ruby-lang.org