jwhitley/requirejs-rails — Issue #37: assets precompilation - couldn't find file
Author: nfedyashev
Created: 2012-02-26 01:38:47+00:00
State: open

Here's the problem that I have in my project:

% bundle exec rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke requirejs:precompile:stage1 (first_time)
** Invoke requirejs:test_node (first_time)
** Execute requirejs:test_node
** Invoke requirejs:precompile:prepare_source (first_time)
** Invoke requirejs:setup (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute requirejs:setup
** Invoke requirejs:clean (first_time)
** Invoke requirejs:setup
** Execute requirejs:clean
** Invoke requirejs:assets:keep_js (first_time)
** Invoke requirejs:setup
** Execute requirejs:assets:keep_js
** Execute requirejs:precompile:prepare_source
rake aborted!
couldn't find file 'jquery.fancybox-1.3.4.pack'
(in /Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/typus-3.1.8/app/assets/javascripts/typus/application.js:3)
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:100:in `resolve'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:140:in `require_asset'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/directive_processor.rb:214:in `process_require_directive'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/directive_processor.rb:164:in `block in process_directives'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/directive_processor.rb:162:in `each'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/directive_processor.rb:162:in `process_directives'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/directive_processor.rb:97:in `evaluate'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:175:in `block in evaluate'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `each'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `evaluate'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:171:in `build_dependency_context_and_body'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:135:in `dependency_context'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:194:in `build_dependencies_paths_and_assets'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:141:in `dependency_paths'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:61:in `mtime'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:58:in `block in encode_with'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `each'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `encode_with'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:43:in `encode_with'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/caching.rb:52:in `cache_asset'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/environment.rb:82:in `build_asset'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/trail.rb:102:in `find_asset_in_path'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/base.rb:101:in `find_asset'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/environment.rb:72:in `find_asset'
/Users/nikita/.rvm/gems/ruby-1.9.3-p0/gems/requirejs-rails-0.5.6/lib/tasks/requirejs-rails_tasks.rake:114:in `block (4 levels) in '

Looks like an obvious other gem's problem, huh?
Not really, this gem(`typus`) is not used in my config for `requrejs-rails` whatsoever.

Source for this application.js file that breaks rake task - https://github.com/fesplugas/typus/blob/master/app/assets/javascripts/typus/application.js

Right now I have to use this fork - https://github.com/nfedyashev/requirejs-rails/commit/50414aecd6c94e0eb70c5cc5aaee34af1bb49432

John do you think this could be merged back(in this form or another)?