spree/spree — Issue #881: uninitialized constant Spree::Preferences when running assets:precompile
Author: hoverlover
Created: 2011-12-16 15:51:14+00:00
State: open

Ruby 1.9.3-p0, Spree SHA b4676c096a81@master

I get this error while running `rake assets:precompile`:

$> b rake assets:precompile --trace
WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.3
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rainbow-1.1.1/lib/rainbow.rb:124: Use RbConfig instead of obsolete and deprecated Config.
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require': iconv will be deprecated in the future, use String#encode instead.
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/cboyd/.rbenv/versions/1.9.3-p0/bin/ruby /Users/cboyd/.rbenv/versions/1.9.3-p0/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.3
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rainbow-1.1.1/lib/rainbow.rb:124: Use RbConfig instead of obsolete and deprecated Config.
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require': iconv will be deprecated in the future, use String#encode instead.
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
rake aborted!
uninitialized constant Spree::Preferences
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/bundler/gems/spree-b4676c096a81/core/lib/spree/core/engine.rb:18:in `block in '
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:34:in `call'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:42:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/application/bootstrap.rb:68:in `block in '
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:91:in `block (2 levels) in '
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:174:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:56:in `block (3 levels) in '
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/Users/cboyd/.rbenv/versions/1.9.3-p0/bin/rake:32:in `

'
Tasks: TOP => assets:precompile:primary => assets:environment
rake aborted!
Command failed with status (1): [/Users/cboyd/.rbenv/versions/1.9.3-p0/bin/...]
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:45:in `call'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:45:in `sh'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `sh'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:80:in `ruby'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `ruby'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/assets.rake:25:in `block (2 levels) in '
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/Users/cboyd/.rbenv/versions/1.9.3-p0/bin/rake:32:in `

'
Tasks: TOP => assets:precompile

Any ideas?