Closed TALlama closed 8 years ago
Possible duplicate of PR #106?
FYI, this happened to me when I quit terminal without shutting down the server and when I opened my terminal again and start my server, I saw this errors in stack trace. I used to kill the server process when I forget to quit the server, but now for this error I can't even find the process tied to the rails server.
I'm still getting this error, even with less-rails 2.7.0:
DEBUG [9c2d29b8] rake aborted!
DEBUG [9c2d29b8] NoMethodError: undefined method `register_preprocessor' for nil:NilClass
DEBUG [9c2d29b8] /home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/less-rails-2.7.0/lib/less/rails/railtie.rb:19:in `block in <class:Railtie>'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
/home/webmaster/www/gcal-sms/releases/20151230001814/config/environment.rb:5:in `<top (required)>'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/application.rb:328:in `require_environment!'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/railties-4.2.5/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/home/webmaster/www/gcal-sms/shared/bundle/ruby/2.1.0/gems/sprockets-rails-3.0.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
DEBUG [9c2d29b8] Tasks: TOP => environment
DEBUG [9c2d29b8] (See full trace by running task with --trace)
@xeron me too. Rails 4.2.4, less-rails 2.7.0.
update to 2.7.1
2.7.1 fixed the issue - thank you.
A new rails app with sprockets 3 and less-rails will fail to initialize: