Created
June 8, 2011 07:00
-
-
Save jacquescrocker/1013931 to your computer and use it in GitHub Desktop.
psych_error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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>' |
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)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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