Closed yourabi closed 10 years ago
So after some debugging these errors are being raised by the "sprockets_better_errors" gem (https://github.com/schneems/sprockets_better_errors) ... but that makes me think there is something wrong with this configuration that sprockets_better_errors is catching.
@yourabi Just need to update to the latest stable branch of sprockets-rails as per https://github.com/rails/rails/commit/b053a47b3e7b755d797a5185895eabcfc50b2f3b
Hi
I started a new rails 4 project. Removed scss, added less and ran the bootstrap generator.
When I run: rake assets:precompile RAILS_ENV=development
I get the following
rake assets:precompile RAILS_ENV=development rake aborted! error evaluating function
image-url
: Asset depends on 'twitter/bootstrap/glyphicons-halflings.png' to generate properly but has not declared the dependency Please add://= depend_on_asset "twitter/bootstrap/glyphicons-halflings.png"
to '/Users/yourabi/code/snitch/snitch/app/assets/stylesheets/bootstrap_and_overrides.css.less' (in /Users/yourabi/code/snitch/snitch/app/assets/stylesheets/bootstrap_and_overrides.css.less) at /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/js/lib/less/parser.js:424:31 /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/parser.rb:100:inblock in to_css' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script/v8_context.rb:90:in
block in do_lock' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script/v8_context.rb:88:incall' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script/v8_context.rb:88:in
Locker' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script/v8_context.rb:88:indo_lock' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script/v8_context.rb:60:in
lock' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script/v8_context.rb:30:inexec' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/java_script.rb:26:in
exec' /Users/yourabi/.gem/ruby/1.9.3/gems/less-2.4.0/lib/less/parser.rb:100:into_css' /Users/yourabi/.gem/ruby/1.9.3/gems/less-rails-2.4.2/lib/less/rails/template_handlers.rb:19:in
evaluate' /Users/yourabi/.gem/ruby/1.9.3/gems/tilt-1.4.1/lib/tilt/template.rb:103:inrender' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/context.rb:197:in
block in evaluate' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:ineach' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in
evaluate' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/processed_asset.rb:12:ininitialize' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:374:in
new' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:374:inblock in build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:395:in
circular_call_protection' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:373:inbuild_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:94:in
block in build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/caching.rb:58:incache_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:93:in
build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:287:infind_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:61:in
find_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/processed_asset.rb:111:inblock in resolve_dependencies' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/processed_asset.rb:105:in
each' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/processed_asset.rb:105:inresolve_dependencies' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/processed_asset.rb:97:in
build_required_assets' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/processed_asset.rb:16:ininitialize' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:374:in
new' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:374:inblock in build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:395:in
circular_call_protection' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:373:inbuild_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:94:in
block in build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/caching.rb:58:incache_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:93:in
build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:287:infind_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:61:in
find_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/bundled_asset.rb:37:ininit_with' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/asset.rb:24:in
from_hash' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/caching.rb:54:incache_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:93:in
build_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/base.rb:287:infind_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/index.rb:61:in
find_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:211:inblock in find_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:257:in
benchmark' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:210:infind_asset' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:119:in
block in compile' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:ineach' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in
compile' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:inblock (3 levels) in define' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-2.10.1/lib/rake/sprocketstask.rb:146:in
with_logger' /Users/yourabi/.gem/ruby/1.9.3/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define' Tasks: TOP => assets:precompile (See full trace by running task with --trace)