galetahub/ckeditor — Issue #63: rake assets:precompile fails with Unexpected character '﻿' 
Author: thezed
Created: 2012-01-04 20:47:18+00:00
State: open

Just installed the latest ckeditor version and faced with this error when trying to test it in production. It failed on assets:precompile

Full trace

$ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/thezed/opt/ruby/1.9.2-p290/bin/ruby /Users/thezed/.gems/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** 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!
Unexpected character '﻿' (line: 9647, col: 1, pos: 263719)

undefined
(in /Users/thezed/rails/cktest/app/assets/javascripts/application.js)
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:67:in `extract_result'
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:27:in `block in exec'
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:40:in `compile_to_tempfile'
/Users/thezed/.gems/gems/execjs-1.2.13/lib/execjs/external_runtime.rb:26:in `exec'
/Users/thezed/.gems/gems/uglifier-1.2.1/lib/uglifier.rb:101:in `compile'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/compressors.rb:18:in `compress'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/processing.rb:265:in `block in js_compressor='
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/processor.rb:29:in `call'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/processor.rb:29:in `evaluate'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/context.rb:175:in `block in evaluate'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `each'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `evaluate'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:242:in `block in build_source'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/caching.rb:30:in `cache_hash'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:235:in `build_source'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:71:in `digest'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/asset.rb:95:in `digest_path'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:58:in `path_for'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:35:in `write_asset'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:21:in `block in compile'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:151:in `block in each_logical_path'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:139:in `block (2 levels) in each_file'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:129:in `each'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:129:in `each_entry'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:137:in `block in each_file'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:136:in `each'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:136:in `each_file'
/Users/thezed/opt/ruby/current/lib/ruby/gems/1.9.1/gems/sprockets-2.0.3/lib/sprockets/base.rb:149:in `each_logical_path'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/static_compiler.rb:18:in `compile'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:52:in `internal_precompile'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:66:in `block (3 levels) in '
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/thezed/opt/ruby/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:56:in `block (3 levels) in '
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/thezed/opt/ruby/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/thezed/.gems/gems/rake-0.9.2.2/bin/rake:33:in `'
/Users/thezed/.gems/bin/rake:19:in `load'
/Users/thezed/.gems/bin/rake:19:in `

'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/Users/thezed/opt/ruby/1.9.2-p290/bin/ruby...]
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/Users/thezed/.gems/gems/actionpack-3.1.3/lib/sprockets/assets.rake:25:in `block (2 levels) in '
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/thezed/opt/ruby/1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/thezed/.gems/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/thezed/.gems/gems/rake-0.9.2.2/bin/rake:33:in `'
/Users/thezed/.gems/bin/rake:19:in `load'
/Users/thezed/.gems/bin/rake:19:in `

'
Tasks: TOP => assets:precompile