Question

I've just upgraded to Bundler 1.1 from 1.0. All my code that works previously now breaks with the following error:

~/.gem/gems/psych-1.3.2/lib/psych.rb:203:in `parse': wrong number of arguments(2 for 1) (ArgumentError)
  from ~/.gem/gems/psych-1.3.2/lib/psych.rb:203:in `parse_stream'
  from ~/.gem/gems/psych-1.3.2/lib/psych.rb:151:in `parse'
  from ~/.gem/gems/psych-1.3.2/lib/psych.rb:127:in `load'

Is there someway to fix this? All I'm doing is calling YAML.load

Was it helpful?

Solution

Not really a fix but I've found I can remove psych as the YAML parser using:

YAML::ENGINE.yamler = 'syck'

Do this before calling:

YAML.load

I've opened an issue on the psych project.

UPDATE: Problem seems to be related to the version of Ruby I was using. Updating my Ruby version fixed this. See the above issue on Psych.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top