{"action":"created","issue":{"url":"https://api.github.com/repos/rails/sprockets/issues/183","labels_url":"https://api.github.com/repos/rails/sprockets/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/rails/sprockets/issues/183/comments","events_url":"https://api.github.com/repos/rails/sprockets/issues/183/events","html_url":"https://github.com/rails/sprockets/issues/183","id":118435491,"number":183,"title":"sprockets 3 doesn't work without CoffeeScript?","user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-23T17:51:57Z","updated_at":"2015-12-05T06:26:52Z","closed_at":null,"body":"_From @pmontrasio on May 3, 2015 11:4_\n\nI have a Rails project in which I disabled CoffeeScript by commenting it out in the generated Gemfile (I'm not using CS, only plain JS).\r\n\r\nI removed Gemfile.lock and run bundle to get new versions of all the gems today. Sprocket has been upgraded to 3.0.3 from 2.12.3. Unfortunately the application doesn't work anymore. This is the error I get when trying to load the home page.\r\n\r\n```\r\nLoadError in HomeController#index\r\ncannot load such file -- coffee_script\r\nExtracted source (around line #274):\r\n\r\n272 def require(file)\r\n273   result = false\r\n274   load_dependency(file) { result = super }\r\n275   result\r\n276   end\r\n277 end\r\n                \r\nRails.root: /home/me/project\r\nApplication Trace | Framework Trace | Full Trace\r\n\r\nactivesupport (4.2.1) lib/active_support/dependencies.rb:274:in `require'\r\nactivesupport (4.2.1) lib/active_support/dependencies.rb:274:in `block in require'\r\nactivesupport (4.2.1) lib/active_support/dependencies.rb:240:in `load_dependency'\r\nactivesupport (4.2.1) lib/active_support/dependencies.rb:274:in `require'\r\nsprockets (3.0.3) lib/sprockets/autoload/coffee_script.rb:1:in `<top (required)>'\r\nsprockets (3.0.3) lib/sprockets/coffee_script_processor.rb:15:in `cache_key'\r\nsprockets (3.0.3) lib/sprockets/coffee_script_processor.rb:20:in `call'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:75:in `call_processor'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:57:in `block in call_processors'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:56:in `reverse_each'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:56:in `call_processors'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:87:in `load_asset_by_uri'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:45:in `block in load'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:157:in `fetch_asset_from_dependency_cache'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:38:in `load'\r\nsprockets (3.0.3) lib/sprockets/cached_environment.rb:20:in `block in initialize'\r\nsprockets (3.0.3) lib/sprockets/cached_environment.rb:47:in `yield'\r\nsprockets (3.0.3) lib/sprockets/cached_environment.rb:47:in `load'\r\nsprockets (3.0.3) lib/sprockets/bundle.rb:23:in `block in call'\r\nsprockets (3.0.3) lib/sprockets/utils.rb:183:in `dfs'\r\nsprockets (3.0.3) lib/sprockets/bundle.rb:24:in `call'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:75:in `call_processor'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:57:in `block in call_processors'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:56:in `reverse_each'\r\nsprockets (3.0.3) lib/sprockets/processor_utils.rb:56:in `call_processors'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:87:in `load_asset_by_uri'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:45:in `block in load'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:157:in `fetch_asset_from_dependency_cache'\r\nsprockets (3.0.3) lib/sprockets/loader.rb:38:in `load'\r\nsprockets (3.0.3) lib/sprockets/cached_environment.rb:20:in `block in initialize'\r\nsprockets (3.0.3) lib/sprockets/cached_environment.rb:47:in `yield'\r\nsprockets (3.0.3) lib/sprockets/cached_environment.rb:47:in `load'\r\nsprockets (3.0.3) lib/sprockets/base.rb:63:in `find_asset'\r\nsprockets (3.0.3) lib/sprockets/environment.rb:30:in `find_asset'\r\nsprockets (3.0.3) lib/sprockets/base.rb:89:in `[]'\r\nsprockets-rails (2.2.4) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path'\r\nsprockets-rails (2.2.4) lib/sprockets/rails/helper.rb:138:in `block in javascript_include_tag'\r\nsprockets-rails (2.2.4) lib/sprockets/rails/helper.rb:136:in `map'\r\nsprockets-rails (2.2.4) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag'\r\nactionview (4.2.1) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:166:in `instrument'\r\nactionview (4.2.1) lib/action_view/template.rb:333:in `instrument'\r\nactionview (4.2.1) lib/action_view/template.rb:143:in `render'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:66:in `render_with_layout'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:14:in `render'\r\nactionview (4.2.1) lib/action_view/renderer/renderer.rb:42:in `render_template'\r\nactionview (4.2.1) lib/action_view/renderer/renderer.rb:23:in `render'\r\nactionview (4.2.1) lib/action_view/rendering.rb:100:in `_render_template'\r\nactionpack (4.2.1) lib/action_controller/metal/streaming.rb:217:in `_render_template'\r\nactionview (4.2.1) lib/action_view/rendering.rb:83:in `render_to_body'\r\nactionpack (4.2.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body'\r\nactionpack (4.2.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body'\r\nactionpack (4.2.1) lib/abstract_controller/rendering.rb:25:in `render'\r\nactionpack (4.2.1) lib/action_controller/metal/rendering.rb:16:in `render'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'\r\nactivesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'\r\n/home/me/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\r\nactivesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:in `ms'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'\r\nactiverecord (4.2.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:43:in `render'\r\nactionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render'\r\nactionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action'\r\nactionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\nactionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:313:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'\r\nroute_translator (4.0.0) lib/route_translator/extensions/action_controller.rb:20:in `set_locale_from_url'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:432:in `block in make_lambda'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:312:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:312:in `block in halting'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:497:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:497:in `block in around'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\nactiverecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\nactionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'\r\nactionview (4.2.1) lib/action_view/rendering.rb:30:in `process'\r\nactionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'\r\nactionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\nactionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'\r\nactionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\nactionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'\r\nactionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'\r\nomniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'\r\nomniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\nomniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'\r\nomniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'\r\nomniauth (1.2.2) lib/omniauth/builder.rb:59:in `call'\r\nwarden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `catch'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `call'\r\nrack (1.6.0) lib/rack/etag.rb:24:in `call'\r\nrack (1.6.0) lib/rack/conditionalget.rb:25:in `call'\r\nrack (1.6.0) lib/rack/head.rb:13:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\nrack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'\r\nrack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\nactiverecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'\r\nactiverecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'\r\nactiverecord (4.2.1) lib/active_record/migration.rb:378:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\nbetter_errors (2.1.1) lib/better_errors/middleware.rb:59:in `call'\r\nweb-console (2.0.0.beta4) lib/action_dispatch/debug_exceptions.rb:18:in `middleware_call'\r\nweb-console (2.0.0.beta4) lib/action_dispatch/debug_exceptions.rb:13:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\nrailties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'\r\nrailties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'\r\nactivesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\nactivesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'\r\nactivesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'\r\nrailties (4.2.1) lib/rails/rack/logger.rb:20:in `call'\r\nquiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\nrack (1.6.0) lib/rack/methodoverride.rb:22:in `call'\r\nrack (1.6.0) lib/rack/runtime.rb:18:in `call'\r\nactivesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\nrack (1.6.0) lib/rack/lock.rb:17:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'\r\nrack (1.6.0) lib/rack/sendfile.rb:113:in `call'\r\nrailties (4.2.1) lib/rails/engine.rb:518:in `call'\r\nrailties (4.2.1) lib/rails/application.rb:164:in `call'\r\nrack (1.6.0) lib/rack/lock.rb:17:in `call'\r\nrack (1.6.0) lib/rack/content_length.rb:15:in `call'\r\nrack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'\r\n/home/me/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'\r\n/home/me/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'\r\n/home/me/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'\r\n\r\nThis error occurred while loading the following files:\r\n   coffee_script\r\n\r\nRequest\r\n\r\nParameters:\r\n\r\nNone\r\n```\r\n\r\nIf I add ```gem \"sprockets\", \"2.12.3\"``` to the ```Gemfile``` it works again.\r\n\r\nDoes version 3 make some hard assumption on the presence of CoffeeScript?\r\n\n\n_Copied from original issue: sstephenson/sprockets#724_"},"comment":{"url":"https://api.github.com/repos/rails/sprockets/issues/comments/162151802","html_url":"https://github.com/rails/sprockets/issues/183#issuecomment-162151802","issue_url":"https://api.github.com/repos/rails/sprockets/issues/183","id":162151802,"user":{"login":"slumos","id":15616,"avatar_url":"https://avatars.githubusercontent.com/u/15616?v=3","gravatar_id":"","url":"https://api.github.com/users/slumos","html_url":"https://github.com/slumos","followers_url":"https://api.github.com/users/slumos/followers","following_url":"https://api.github.com/users/slumos/following{/other_user}","gists_url":"https://api.github.com/users/slumos/gists{/gist_id}","starred_url":"https://api.github.com/users/slumos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slumos/subscriptions","organizations_url":"https://api.github.com/users/slumos/orgs","repos_url":"https://api.github.com/users/slumos/repos","events_url":"https://api.github.com/users/slumos/events{/privacy}","received_events_url":"https://api.github.com/users/slumos/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T06:26:52Z","updated_at":"2015-12-05T06:26:52Z","body":"@ordinaryzelig: Thanks! That wfm."}}