{"issue":{"milestone":null,"user":{"id":169285,"login":"hoverlover","url":"https://api.github.com/users/hoverlover","avatar_url":"https://secure.gravatar.com/avatar/475df54d67c0d76c73a2d17d4e8486eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"475df54d67c0d76c73a2d17d4e8486eb"},"title":"uninitialized constant Spree::Preferences when running assets:precompile","created_at":"2011-12-16T15:51:14Z","updated_at":"2011-12-18T01:27:59Z","labels":[{"name":"verified","url":"https://api.github.com/repos/spree/spree/labels/verified","color":"02e10c"}],"state":"open","id":2581002,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/spree/spree/issues/881","closed_at":null,"body":"Ruby 1.9.3-p0, Spree SHA b4676c096a81@master\r\n\r\nI get this error while running `rake assets:precompile`: \r\n\r\n\r\n    $> b rake assets:precompile --trace\r\n    WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.3\r\n    /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.\r\n    /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.\r\n    ** Invoke assets:precompile (first_time)\r\n    ** Execute assets:precompile\r\n    /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\r\n    WARNING: Nokogiri was built against LibXML version 2.7.7, but has dynamically loaded 2.7.3\r\n    /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.\r\n    /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.\r\n    ** Invoke assets:precompile:all (first_time)\r\n    ** Execute assets:precompile:all\r\n    ** Invoke assets:precompile:primary (first_time)\r\n    ** Invoke assets:environment (first_time)\r\n    ** Execute assets:environment\r\n    rake aborted!\r\n    uninitialized constant Spree::Preferences\r\n    /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 <class:Engine>'\r\n    /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'\r\n    /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'\r\n    /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'\r\n    /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'\r\n    /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'\r\n    /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 <module:Bootstrap>'\r\n    /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'\r\n    /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'\r\n    /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'\r\n    /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'\r\n    /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'\r\n    /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!'\r\n    /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 <top (required)>'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:176:in `block in invoke_prerequisites'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:174:in `each'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:174:in `invoke_prerequisites'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:157:in `block in invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'\r\n    /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 <top (required)>'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `each'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:63:in `run'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/bin/rake:32:in `<main>'\r\n    Tasks: TOP => assets:precompile:primary => assets:environment\r\n    rake aborted!\r\n    Command failed with status (1): [/Users/cboyd/.rbenv/versions/1.9.3-p0/bin/...]\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:53:in `block in create_shell_runner'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:45:in `call'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:45:in `sh'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `sh'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils.rb:80:in `ruby'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `ruby'\r\n    /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'\r\n    /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'\r\n    /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 <top (required)>'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `call'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `each'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:200:in `execute'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `each'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rake/application.rb:63:in `run'\r\n    /Users/cboyd/.rbenv/versions/1.9.3-p0/bin/rake:32:in `<main>'\r\n    Tasks: TOP => assets:precompile\r\n    \r\nAny ideas?","number":881,"url":"https://api.github.com/repos/spree/spree/issues/881","comments":10,"assignee":null},"comment":{"user":{"id":169285,"login":"hoverlover","url":"https://api.github.com/users/hoverlover","avatar_url":"https://secure.gravatar.com/avatar/475df54d67c0d76c73a2d17d4e8486eb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"475df54d67c0d76c73a2d17d4e8486eb"},"created_at":"2011-12-18T01:27:59Z","updated_at":"2011-12-18T01:27:59Z","id":3192658,"body":"Sorry, scratch both of the above ideas.  I accidentally had the `config.assets.initialize_on_precompile` set to `true` instead of `false`, so these don't really work.  Back to square one.","url":"https://api.github.com/repos/spree/spree/issues/comments/3192658"},"action":"created"}