static assets don't compile
jarrettchisholm opened this issue · comments
error while trying to compile static assets (ruby 1.9.1):
bundle exec rake --trace assets:precompile RAILS_ENV=production RAILS_GROUPS=assets
Could not load sequel gem, so WordPress import will not work.
** Invoke assets:precompile (first_time)
** 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
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
(in /home/jarrett/projects/juvia/app/assets/javascripts/application.js.coffee)
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:150:in `exec_runtime'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:27:in `block in exec'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:40:in `compile_to_tempfile'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:26:in `exec'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:18:in `eval'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:32:in `call'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:57:in `compile'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/tilt-1.3.5/lib/tilt/coffee.rb:46:in `evaluate'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/tilt-1.3.5/lib/tilt/template.rb:77:in `render'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/context.rb:175:in `block in evaluate'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/context.rb:172:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/context.rb:172:in `evaluate'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/bundled_asset.rb:171:in `build_dependency_context_and_body'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/bundled_asset.rb:135:in `dependency_context'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/bundled_asset.rb:194:in `build_dependencies_paths_and_assets'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/bundled_asset.rb:141:in `dependency_paths'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/bundled_asset.rb:61:in `mtime'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/asset.rb:58:in `block in encode_with'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/asset.rb:57:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/asset.rb:57:in `encode_with'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/bundled_asset.rb:43:in `encode_with'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/caching.rb:52:in `cache_asset'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/index.rb:67:in `block in build_asset'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/index.rb:76:in `memoize'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/index.rb:65:in `build_asset'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/trail.rb:102:in `find_asset_in_path'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:101:in `find_asset'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/index.rb:48:in `find_asset'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/static_compiler.rb:23:in `block in compile'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:151:in `block in each_logical_path'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:139:in `block (2 levels) in each_file'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:129:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:129:in `each_entry'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:137:in `block in each_file'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:136:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:136:in `each_file'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/sprockets-2.0.4/lib/sprockets/base.rb:149:in `each_logical_path'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/static_compiler.rb:18:in `compile'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/assets.rake:52:in `internal_precompile'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/assets.rake:66:in `block (3 levels) in <top (required)>'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:228:in `call'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:228:in `block in execute'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:223:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/assets.rake:56:in `block (3 levels) in <top (required)>'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:228:in `call'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:228:in `block in execute'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:223:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/assets.rake:19:in `invoke_or_reboot_rake_task'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/actionpack-3.1.10/lib/sprockets/assets.rake:25:in `block (2 levels) in <top (required)>'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:228:in `call'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:228:in `block in execute'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:223:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:223:in `execute'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:159:in `invoke_with_call_chain'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/task.rb:152:in `invoke'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:143:in `invoke_task'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:101:in `each'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:101:in `block in top_level'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:110:in `run_with_threads'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:95:in `top_level'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:73:in `block in run'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:160:in `standard_exception_handling'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/lib/rake/application.rb:70:in `run'
/home/jarrett/projects/juvia/help/ruby/1.9.1/gems/rake-10.0.3/bin/rake:33:in `<top (required)>'
/home/jarrett/projects/juvia/help/ruby/1.9.1/bin/rake:23:in `load'
/home/jarrett/projects/juvia/help/ruby/1.9.1/bin/rake:23:in `<main>'
Tasks: TOP => assets:precompile:primary
Cause:
Executing the temporary js files using bash (js files generated from compile_to_tempfile
in external_runtime.rb
) results in an error exit code (and no json result returned).
That's why the above stack trace appears to output no error - it's printing the output of the js file that was ran (which was empty).
The first js file that is ran this way fails. There are others. Here is the contents of the first js file that is run (and which fails):
http://pastebin.com/D3iitxDc
Due to this, I'm unable to get this project working (and I'd really like to!).
Anyone have any idea why this is happening?
I'm on Debian testing (Wheezy), 64-bit, running ruby 1.9.1.
I think that's a CoffeeScript problem.
Hmm...apparently, it was the javascript engine I was using.
I installed node.js, and it compiled everything fine. I guess it didn't like Rhino..