parndt/refinerycms-i18n — Issue #24: Breaking on assets:precompile
Author: tsemana
Created: 2011-12-28 18:44:26+00:00
State: open

This is when using Rails 3.1.3 and the RefineryCMS master branch. Not sure if this is the right place for it, but it seems to be the component causing the issue. It seems that the initializer is not playing nice with sprockets. Similar issue reported here: https://github.com/railsware/js-routes/issues/16

```$ RAILS_ENV=production bundle exec rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:precompile_prepare (first_time)
** Execute assets:precompile_prepare
** Execute assets:precompile
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't modify immutable index
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/sprockets-2.0.3/lib/sprockets/index.rb:59:in `expire_index!'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/sprockets-2.0.3/lib/sprockets/processing.rb:91:in `register_preprocessor'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/i18n-js-2.1.2/lib/i18n-js/engine.rb:12:in `block in '
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/Users/Tony/.rvm/gems/ruby-1.9.3-p0@fsv_refinery/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/Tony/src/semanteks313/config/environment.rb:5:in `'
```

This means the deploy to Heroku always fails, even though it seems to work - looking at the logs, the app crashes with this error.