Hello, I am trying to import a YAML file like this: yamlData = "areas.yaml" areasArray = YAML.load(File.open(yamlData)) This fails, and I am getting this error message: unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias /Users/peter/programming/iject/rubyDataTool/datatool.rb:1:in `<main>': expected DOCUMENT_END event (ArgumentError) I am at a complete loss as what the problem is. When I try the same code in ruby 1.9, theres no problem. Any ideas would be very appreciated. Thanks, Peter
What version are you on? YAML works great for me, can you try to run the example using YAML from: /Developer/Examples/Ruby/MacRuby/YamlTable Let us know how it goes. Maybe the API you are using isn't support, I would recommend to use the following instead: areasArray = YAML.load_file('areas.yaml') - Matt On Wed, Jun 16, 2010 at 12:40 AM, Peter Dalmaris <peter.dalmaris@gmail.com>wrote:
Hello,
I am trying to import a YAML file like this:
yamlData = "areas.yaml" areasArray = YAML.load(File.open(yamlData))
This fails, and I am getting this error message:
unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias /Users/peter/programming/iject/rubyDataTool/datatool.rb:1:in `<main>': expected DOCUMENT_END event (ArgumentError)
I am at a complete loss as what the problem is. When I try the same code in ruby 1.9, theres no problem.
Any ideas would be very appreciated.
Thanks,
Peter _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Matt Aimonetti
-
Peter Dalmaris