{"action":"created","issue":{"url":"https://api.github.com/repos/metaskills/less-rails/issues/111","labels_url":"https://api.github.com/repos/metaskills/less-rails/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/metaskills/less-rails/issues/111/comments","events_url":"https://api.github.com/repos/metaskills/less-rails/issues/111/events","html_url":"https://github.com/metaskills/less-rails/issues/111","id":109907277,"number":111,"title":"`register_preprocessor` error with sprockets 3","user":{"login":"TALlama","id":49643,"avatar_url":"https://avatars.githubusercontent.com/u/49643?v=3","gravatar_id":"","url":"https://api.github.com/users/TALlama","html_url":"https://github.com/TALlama","followers_url":"https://api.github.com/users/TALlama/followers","following_url":"https://api.github.com/users/TALlama/following{/other_user}","gists_url":"https://api.github.com/users/TALlama/gists{/gist_id}","starred_url":"https://api.github.com/users/TALlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TALlama/subscriptions","organizations_url":"https://api.github.com/users/TALlama/orgs","repos_url":"https://api.github.com/users/TALlama/repos","events_url":"https://api.github.com/users/TALlama/events{/privacy}","received_events_url":"https://api.github.com/users/TALlama/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-05T23:36:06Z","updated_at":"2016-01-12T09:31:37Z","closed_at":null,"body":"A new rails app with sprockets 3 and less-rails will fail to initialize:\r\n\r\n```bash\r\n[16:30][tal@ravenhurst:~/code]$ rails -v\r\nRails 4.2.4\r\n[16:30][tal@ravenhurst:~/code]$ rails new sample\r\n# snip: created files\r\nResolving dependencies....\r\nUsing rake 10.4.2\r\nUsing i18n 0.7.0\r\nUsing json 1.8.3\r\nUsing minitest 5.8.1\r\nUsing thread_safe 0.3.5\r\nUsing tzinfo 1.2.2\r\nUsing activesupport 4.2.4\r\nUsing builder 3.2.2\r\nUsing erubis 2.7.0\r\nUsing mini_portile 0.6.2\r\nUsing nokogiri 1.6.6.2\r\nUsing rails-deprecated_sanitizer 1.0.3\r\nUsing rails-dom-testing 1.0.7\r\nUsing loofah 2.0.3\r\nUsing rails-html-sanitizer 1.0.2\r\nUsing actionview 4.2.4\r\nUsing rack 1.6.4\r\nUsing rack-test 0.6.3\r\nUsing actionpack 4.2.4\r\nUsing globalid 0.3.6\r\nUsing activejob 4.2.4\r\nUsing mime-types 2.6.2\r\nUsing mail 2.6.3\r\nUsing actionmailer 4.2.4\r\nUsing activemodel 4.2.4\r\nUsing arel 6.0.3\r\nUsing activerecord 4.2.4\r\nUsing debug_inspector 0.0.2\r\nUsing binding_of_caller 0.7.2\r\nUsing bundler 1.10.6\r\nUsing byebug 6.0.2\r\nUsing coffee-script-source 1.9.1.1\r\nUsing execjs 2.6.0\r\nUsing coffee-script 2.4.1\r\nUsing thor 0.19.1\r\nUsing railties 4.2.4\r\nUsing coffee-rails 4.1.0\r\nUsing multi_json 1.11.2\r\nUsing jbuilder 2.3.2\r\nUsing jquery-rails 4.0.5\r\nUsing sprockets 3.4.0\r\nUsing sprockets-rails 2.3.3\r\nUsing rails 4.2.4\r\nUsing rdoc 4.2.0\r\nUsing sass 3.4.18\r\nUsing tilt 2.0.1\r\nUsing sass-rails 5.0.4\r\nUsing sdoc 0.4.1\r\nUsing spring 1.4.0\r\nUsing sqlite3 1.3.10\r\nUsing turbolinks 2.5.3\r\nUsing uglifier 2.7.2\r\nUsing web-console 2.2.1\r\nBundle complete! 12 Gemfile dependencies, 53 gems now installed.\r\nUse `bundle show [gemname]` to see where a bundled gem is installed.\r\n         run  bundle exec spring binstub --all\r\n* bin/rake: spring inserted\r\n* bin/rails: spring inserted\r\n[16:30][tal@ravenhurst:~/code]$ cd sample/\r\n[16:30][tal@ravenhurst:~/code/sample]$ cat >> Gemfile\r\ngem 'less-rails'\r\ngem 'sprockets-rails', github: 'rails/sprockets-rails', branch: 'master'\r\ngem 'therubyracer'\r\n[16:31][tal@ravenhurst:~/code/sample]$ bundle\r\nUpdating git://github.com/rails/sprockets-rails.git\r\nFetching gem metadata from https://rubygems.org/...........\r\nFetching version metadata from https://rubygems.org/...\r\nFetching dependency metadata from https://rubygems.org/..\r\nResolving dependencies...\r\nUsing rake 10.4.2\r\nUsing i18n 0.7.0\r\nUsing json 1.8.3\r\nUsing minitest 5.8.1\r\nUsing thread_safe 0.3.5\r\nUsing tzinfo 1.2.2\r\nUsing activesupport 4.2.4\r\nUsing builder 3.2.2\r\nUsing erubis 2.7.0\r\nUsing mini_portile 0.6.2\r\nUsing nokogiri 1.6.6.2\r\nUsing rails-deprecated_sanitizer 1.0.3\r\nUsing rails-dom-testing 1.0.7\r\nUsing loofah 2.0.3\r\nUsing rails-html-sanitizer 1.0.2\r\nUsing actionview 4.2.4\r\nUsing rack 1.6.4\r\nUsing rack-test 0.6.3\r\nUsing actionpack 4.2.4\r\nUsing globalid 0.3.6\r\nUsing activejob 4.2.4\r\nUsing mime-types 2.6.2\r\nUsing mail 2.6.3\r\nUsing actionmailer 4.2.4\r\nUsing activemodel 4.2.4\r\nUsing arel 6.0.3\r\nUsing activerecord 4.2.4\r\nUsing debug_inspector 0.0.2\r\nUsing binding_of_caller 0.7.2\r\nUsing bundler 1.10.6\r\nUsing byebug 6.0.2\r\nUsing coffee-script-source 1.9.1.1\r\nUsing execjs 2.6.0\r\nUsing coffee-script 2.4.1\r\nUsing thor 0.19.1\r\nUsing railties 4.2.4\r\nUsing coffee-rails 4.1.0\r\nUsing commonjs 0.2.7\r\nUsing multi_json 1.11.2\r\nUsing jbuilder 2.3.2\r\nUsing jquery-rails 4.0.5\r\nUsing less 2.6.0\r\nUsing sprockets 3.4.0\r\nUsing tilt 2.0.1\r\nUsing less-rails 2.7.0\r\nUsing sprockets-rails 3.0.0.beta3 (was 2.3.3) from git://github.com/rails/sprockets-rails.git (at master)\r\nUsing rails 4.2.4\r\nUsing rdoc 4.2.0\r\nUsing sass 3.4.18\r\nUsing sass-rails 5.0.4\r\nUsing sdoc 0.4.1\r\nUsing spring 1.4.0\r\nUsing sqlite3 1.3.10\r\nUsing turbolinks 2.5.3\r\nUsing uglifier 2.7.2\r\nUsing web-console 2.2.1\r\nBundle complete! 14 Gemfile dependencies, 56 gems now installed.\r\nUse `bundle show [gemname]` to see where a bundled gem is installed.\r\n[16:31][tal@ravenhurst:~/code/sample]$ rails c\r\n/Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/less-rails-2.7.0/lib/less/rails/railtie.rb:19:in `block in <class:Railtie>': undefined method `register_preprocessor' for nil:NilClass (NoMethodError)\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/railties-4.2.4/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/railties-4.2.4/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:345:in `each'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:345:in `call'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/railties-4.2.4/lib/rails/initializable.rb:54:in `run_initializers'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/railties-4.2.4/lib/rails/application.rb:352:in `initialize!'\r\n\tfrom /Users/tal/code/sample/config/environment.rb:5:in `<top (required)>'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application.rb:92:in `require'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application.rb:92:in `preload'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application.rb:143:in `serve'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application.rb:131:in `block in run'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application.rb:125:in `loop'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application.rb:125:in `run'\r\n\tfrom /Users/tal/.rvm/gems/ruby-2.1.6@recruit/gems/spring-1.4.0/lib/spring/application/boot.rb:18:in `<top (required)>'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /Users/tal/.rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom -e:1:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/metaskills/less-rails/issues/comments/170850779","html_url":"https://github.com/metaskills/less-rails/issues/111#issuecomment-170850779","issue_url":"https://api.github.com/repos/metaskills/less-rails/issues/111","id":170850779,"user":{"login":"JurgenJocubeit","id":209968,"avatar_url":"https://avatars.githubusercontent.com/u/209968?v=3","gravatar_id":"","url":"https://api.github.com/users/JurgenJocubeit","html_url":"https://github.com/JurgenJocubeit","followers_url":"https://api.github.com/users/JurgenJocubeit/followers","following_url":"https://api.github.com/users/JurgenJocubeit/following{/other_user}","gists_url":"https://api.github.com/users/JurgenJocubeit/gists{/gist_id}","starred_url":"https://api.github.com/users/JurgenJocubeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JurgenJocubeit/subscriptions","organizations_url":"https://api.github.com/users/JurgenJocubeit/orgs","repos_url":"https://api.github.com/users/JurgenJocubeit/repos","events_url":"https://api.github.com/users/JurgenJocubeit/events{/privacy}","received_events_url":"https://api.github.com/users/JurgenJocubeit/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T09:31:37Z","updated_at":"2016-01-12T09:31:37Z","body":"@xeron me too. Rails 4.2.4, less-rails 2.7.0."}}