public
Created

psych_error

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/Users/jc/.rvm/rubies/ruby-1.9.2-p180-patched/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 115 column 48 (Psych::SyntaxError)
from /Users/jc/.rvm/rubies/ruby-1.9.2-p180-patched/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
from /Users/jc/.rvm/rubies/ruby-1.9.2-p180-patched/lib/ruby/1.9.1/psych.rb:119:in `parse'
from /Users/jc/.rvm/rubies/ruby-1.9.2-p180-patched/lib/ruby/1.9.1/psych.rb:106:in `load'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config/sources/yaml_source.rb:17:in `load'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config/options.rb:21:in `block in reload!'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config/options.rb:20:in `each'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config/options.rb:20:in `reload!'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config.rb:30:in `load_files'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config.rb:37:in `load_and_set_settings'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/rails_config-0.2.3/lib/rails_config/integration/rails.rb:15:in `block in <class:Railtie>'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/activesupport-3.0.7/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/railties-3.0.7/lib/rails/application.rb:67:in `inherited'
from /Users/jc/OrderSm/order_sm/config/application.rb:11:in `<module:OrderSm>'
from /Users/jc/OrderSm/order_sm/config/application.rb:10:in `<top (required)>'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/railties-3.0.7/lib/rails/commands.rb:21:in `require'
from /Users/jc/.rvm/gems/ruby-1.9.2-p180-patched@test/gems/railties-3.0.7/lib/rails/commands.rb:21:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

works fine when i switch back to p180 (no patch)

Hmmm. I have a feeling I just accidently swapped YAML engines behind the scenes and this is causing the issue. I doubt its related to the loading patch

The problem might be related to the YAML site being down last night so RVM was skipping it on the install.

If you're having issues with Psych, you can edit your config/environment.rb file in Rails and add this line:

YAML::ENGINE.yamler = 'syck'

The problem is likely that Ruby is using Psych for YAML parsing, and the 1.9.2 version of Psych can't handle merge keys (eg. <<: *default)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.