Rails NoMethodError on Assets Precompile when using asset-url in .scss - ruby-on-rails

I've been pulling my hair out on this one, I'm using x2 background-image in my .scss files and calling those images from /assets/images but when I try to precompile in my server (production) it returns a rake aborted!
root#X:/home/rails/rails_project# RAILS_ENV=production rake assets:precompile
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /usr/local/rvm/gems/ruby-2.2.1/gems/less-rails-2.8.0/lib/less/rails/railtie.rb:16)
DEPRECATION WARNING: You are using the a deprecated processor interface Less::Rails::ImportProcessor.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /usr/local/rvm/gems/ruby-2.2.1/gems/less-rails-2.8.0/lib/less/rails/railtie.rb:21)
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:278:in `sprockets_context'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:124:in `asset_path'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/sass_processor.rb:137:in `asset_url'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/script/tree/funcall.rb:143:in `_perform'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/script/tree/node.rb:58:in `perform'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:397:in `visit_prop'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:160:in `block in visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/stack.rb:79:in `block in with_base'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/stack.rb:115:in `with_frame'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/stack.rb:79:in `with_base'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:160:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:433:in `block (2 levels) in visit_rule'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:433:in `map'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:433:in `block in visit_rule'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:181:in `with_environment'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:431:in `visit_rule'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:160:in `block in visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/stack.rb:79:in `block in with_base'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/stack.rb:115:in `with_frame'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/stack.rb:79:in `with_base'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:160:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:52:in `map'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:52:in `visit_children'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:169:in `block in visit_children'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:181:in `with_environment'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:168:in `visit_children'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `block in visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:188:in `visit_root'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:159:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:8:in `visit'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/root_node.rb:36:in `css_tree'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/tree/root_node.rb:20:in `render'
/usr/local/rvm/gems/ruby-2.2.1/gems/sass-3.4.23/lib/sass/engine.rb:281:in `render'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/sass_compressor.rb:48:in `call'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/sass_compressor.rb:28:in `call'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `yield'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:142:in `block in find'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `each'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `stat_directory'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:227:in `stat_tree'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `each'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `each'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `logical_paths'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:140:in `find'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
/usr/local/rvm/gems/ruby-2.2.1/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/usr/local/rvm/gems/ruby-2.2.1/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

I fixed this by changing background-image: x.jpg; to background-image: url(image_path("x.jpg")); What happened was that it would not precompile the image because it couldn't find it until I added image_path to tell rails to look for it in assets.

Related

Heroku build failed

I have a Rails 5 app and I'm trying to deploy it for the first time on Heroku. It gives me the following log, not sure where is the issue.
I, [2017-01-16T12:43:13.155285 #3787] INFO -- : Writing /tmp/build_14044c73ce6e495d61ab25d40db08259/public/assets/admin/pages/media/works/img6-d846d51b577b94b6f4ec648085738337926f2d75510b067f6bf76bcc87644a80.jpg
rake aborted!
Sass::SyntaxError: Undefined mixin 'theme'.
/tmp/build_14044c73ce6e495d61ab25d40db08259/app/assets/stylesheets/admin/global/plugins/jquery-notific8/_themes.scss:12:in `theme'
/tmp/build_14044c73ce6e495d61ab25d40db08259/app/assets/stylesheets/admin/global/plugins/jquery-notific8/_themes.scss:12
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:351:in `block in visit_mixin'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/stack.rb:98:in `block in with_mixin'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/stack.rb:115:in `with_frame'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/stack.rb:98:in `with_mixin'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:349:in `visit_mixin'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:160:in `block in visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/stack.rb:79:in `block in with_base'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/stack.rb:115:in `with_frame'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/stack.rb:79:in `with_base'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:160:in `visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:52:in `map'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:52:in `visit_children'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:169:in `block in visit_children'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:181:in `with_environment'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:168:in `visit_children'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `block in visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:188:in `visit_root'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/base.rb:36:in `visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:159:in `visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/visitors/perform.rb:8:in `visit'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/root_node.rb:36:in `css_tree'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/tree/root_node.rb:20:in `render'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:281:in `render'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/compass-rails-3.0.2/lib/compass-rails/patches/sass_importer.rb:48:in `evaluate'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/tilt-2.0.5/lib/tilt/template.rb:102:in `render'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy_tilt_processor.rb:25:in `call'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/bundle.rb:23:in `block in call'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/utils.rb:200:in `dfs'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/bundle.rb:24:in `call'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/loader.rb:44:in `load'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:66:in `find_asset'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:142:in `block in find'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `each'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:209:in `stat_directory'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/path_utils.rb:227:in `stat_tree'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `each'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `each'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/legacy.rb:104:in `logical_paths'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:140:in `find'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/sprockets/manifest.rb:185:in `compile'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-3.7.1/lib/rake/sprocketstask.rb:147:in `with_logger'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/tmp/build_14044c73ce6e495d61ab25d40db08259/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Can you please help me fix it? I tried finiding 'theme' but didn't understand where to look.
How can I identify and fix this issue?
Here is the content of app/assets/stylesheets/admin/global/plugins/jquery-notific8/_themes.scss
/**
* #author Will Steinmetz
*
* Themes for the notific8 plug-in for jQuery
*
* Copyright (c)2013, Will Steinmetz
* Licensed under the BSD license.
* http://opensource.org/licenses/BSD-3-Clause
*/
#include theme(teal, #09c, #069);
#include theme(amethyst, #915faa, #5D2D77);
#include theme(ruby, #d10, #a10);
#include theme(tangerine, #ffb23f, #e88f00);
#include theme(lemon, #ffde00, #ffcc00, #ffde00, #333);
#include theme(lime, #38d315, #32b512);
#include theme(ebony, #666, #121212);
#include theme(smoke, #ababab, #efefef, #ababab, #333, #fff);

Rake assets:precompile failed with a Sass syntax error

This seems to be a very awkward error. There are a lots of problems with rake asset:precompile but i didn't find nothing similar to this issue having Sass syntax error.I dont know what file this error occurs.
i'm using rails 5.
root#006230dae323:~/myhomerails# rake assets:precompile --trace RAILS_ENV=production
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile
rake aborted!
Sass::SyntaxError: Invalid CSS after " color: ": expected expression (e.g. 1px, bold), was ";"
(sass):13586
this is the rest of the log:
rake aborted!
Sass::SyntaxError: Invalid CSS after " color: ": expected expression (e.g. 1px, bold), was ";"
(sass):13586
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:1189:in `expected'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/script/lexer.rb:229:in `expected!'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/script/parser.rb:704:in `assert_expr'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/script/parser.rb:75:in `parse'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:1051:in `sass_script'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:897:in `value!'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:769:in `block in try_declaration'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:1165:in `call'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:1165:in `rethrow'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:782:in `try_declaration'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:711:in `declaration_or_ruleset'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:676:in `block_child'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:665:in `block_contents'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:657:in `block'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:649:in `ruleset'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:675:in `block_child'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:668:in `block_contents'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:125:in `stylesheet'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/scss/parser.rb:41:in `parse'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/engine.rb:406:in `_to_tree'
/usr/local/bundle/gems/sass-3.4.22/lib/sass/engine.rb:281:in `render'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/sass_compressor.rb:48:in `call'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/sass_compressor.rb:28:in `call'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in `call_processor'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `call_processors'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in `block in load'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in `load'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `yield'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `load'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in `find_asset'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:142:in `block in find'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:209:in `each'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:209:in `stat_directory'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:227:in `stat_tree'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:105:in `each'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:104:in `each'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:104:in `logical_paths'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:140:in `find'
/usr/local/bundle/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in `compile'
/usr/local/bundle/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/usr/local/bundle/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in `with_logger'
/usr/local/bundle/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:248:in `call'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:248:in `block in execute'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:243:in `each'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:243:in `execute'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:187:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:180:in `invoke_with_call_chain'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/task.rb:173:in `invoke'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:152:in `invoke_task'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:108:in `each'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:108:in `block in top_level'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:117:in `run_with_threads'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:102:in `top_level'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:80:in `block in run'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/usr/local/bundle/gems/rake-11.3.0/lib/rake/application.rb:77:in `run'
/usr/local/bundle/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/usr/local/bundle/bin/rake:17:in `load'
/usr/local/bundle/bin/rake:17:in `<main>'
Tasks: TOP => assets:precompile

rake aborted! NoMethodError: undefined method `[]' for nil:NilClass (rails5+heroku)

I'm trying to compile my assets locally so i can make sure there is no issues when pushing to heroku. Locally my view looks perfect, but on heroku its not loading all my assets. When I run RAILS_ENV=production bundle exec rake assets:precompile
I get the below error, any ideas?
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_processor.rb:278:in `sprockets_context'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_processor.rb:124:in `asset_path'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_processor.rb:137:in `asset_url'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_processor.rb:209:in `font_url'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb:143:in `_perform'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/script/tree/node.rb:58:in `perform'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:397:in `visit_prop'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in `block in visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/stack.rb:79:in `block in with_base'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/stack.rb:115:in `with_frame'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/stack.rb:79:in `with_base'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:504:in `block (2 levels) in visit_directive'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:504:in `map'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:504:in `block in visit_directive'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:181:in `with_environment'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:503:in `visit_directive'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in `block in visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/stack.rb:79:in `block in with_base'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/stack.rb:115:in `with_frame'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/stack.rb:79:in `with_base'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:52:in `map'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:52:in `visit_children'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:169:in `block in visit_children'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:181:in `with_environment'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:168:in `visit_children'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in `block in visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:188:in `visit_root'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:159:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:8:in `visit'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/root_node.rb:36:in `css_tree'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/tree/root_node.rb:20:in `render'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sass-3.4.22/lib/sass/engine.rb:281:in `render'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_compressor.rb:48:in `call'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_compressor.rb:28:in `call'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in `call_processor'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `call_processors'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in `block in load'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in `load'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `load'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in `find_asset'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:142:in `block in find'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:209:in `each'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:209:in `stat_directory'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/path_utils.rb:227:in `stat_tree'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:105:in `each'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:104:in `each'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/legacy.rb:104:in `logical_paths'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:140:in `find'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in `compile'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in `with_logger'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/Users/admin/.rvm/gems/ruby-2.3.1#global/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/bin/ruby_executable_hooks:15:in `eval'
/Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
gem open sprockets -v 3.7.0 and add below three line
puts '#'*30
puts path
puts '#'*30
to /Users/admin/.rvm/gems/ruby-2.3.1#ryansportfolio/gems/sprockets-3.7.0/lib/sprockets/sass_processor.rb:124
Then you will known which file lead the error, normally, it's due to missing a asset/image file or using function asset-url in css. (asset-url only available in scss)

Rails NoMethodError: undefined method `[]' for nil:NilClass Error while precomple for production

I 'm using trying to precompile assets for prduction using
RAILS_ENV=production rake assets:precompile --trace
but it gives me error
NoMethodError: undefined method `[]' for nil:NilClass
complete logs are
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/sass_processor.rb:278:in `sprockets_context'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/sass_processor.rb:124:in `asset_path'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/sass_processor.rb:200:in `font_path'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:140:in `_perform'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/node.rb:50:in `perform'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:170:in `perform_arg'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:124:in `block in _perform'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:124:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:124:in `each_with_index'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:124:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:124:in `map'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/funcall.rb:124:in `_perform'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/script/tree/node.rb:50:in `perform'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:395:in `visit_prop'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:36:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/stack.rb:79:in `block in with_base'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/stack.rb:115:in `with_frame'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/stack.rb:79:in `with_base'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:158:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:502:in `block (2 levels) in visit_directive'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:502:in `map'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:502:in `block in visit_directive'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:179:in `with_environment'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:501:in `visit_directive'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:36:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/stack.rb:79:in `block in with_base'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/stack.rb:115:in `with_frame'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/stack.rb:79:in `with_base'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:158:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:52:in `map'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:52:in `visit_children'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:167:in `block in visit_children'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:179:in `with_environment'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:166:in `visit_children'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:36:in `block in visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:186:in `visit_root'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/base.rb:36:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:157:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/visitors/perform.rb:8:in `visit'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/root_node.rb:36:in `css_tree'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/tree/root_node.rb:20:in `render'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sass-3.4.21/lib/sass/engine.rb:278:in `render'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/sass_compressor.rb:48:in `call'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/sass_compressor.rb:28:in `call'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/loader.rb:60:in `block in load'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/loader.rb:318:in `fetch_asset_from_dependency_cache'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/loader.rb:44:in `load'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `yield'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/cached_environment.rb:47:in `load'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/base.rb:66:in `find_asset'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:142:in `block in find'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:225:in `block in stat_tree'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:209:in `block in stat_directory'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:206:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:206:in `stat_directory'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:224:in `stat_tree'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:209:in `block in stat_directory'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:206:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:206:in `stat_directory'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/path_utils.rb:224:in `stat_tree'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:105:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:104:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/legacy.rb:104:in `logical_paths'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:140:in `find'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/sprockets/manifest.rb:168:in `compile'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-rails-3.0.4/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-3.5.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/sprockets-rails-3.0.4/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:240:in `call'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/faisal/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
/home/faisal/.rvm/gems/ruby-2.2.3/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
/home/faisal/.rvm/gems/ruby-2.2.3/bin/rake:23:in `load'
/home/faisal/.rvm/gems/ruby-2.2.3/bin/rake:23:in `<main>'
/home/faisal/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
/home/faisal/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
I am trying to solve this from last 4 days
tried almost all the answer posted for similar questions.
I have even deleted all the .css and .js files except application.js/css, but result is same.
what might be the actual issue with it
but the result is still same

rake aborted! undefined method `[]' for nil:NilClass

I get this error when I try to precompile assets. I'm fairly new to Rails and dealing with the asset pipeline makes me want to pull my hair out, lol. I get this same error trying it with ruby 1.9.2-p320, or ruby 1.9.3-p448. Using Rails 3.2.13. The hard part for me is looking at the error output and understanding where to look for the error. I don't see a lot of explanations on how to do that. Am I correct that the error is in a rails helper file? If so, where is that?
Here is the rake assets:precompile --trace results:
ruby-1.9.2-p320#stacy1 MARKs-MacBook-Air:stacy1 mark$ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/mark/.rvm/rubies/ruby-1.9.2-p320/bin/ruby /Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/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!
undefined method `[]' for nil:NilClass
(in /Users/mark/Documents/projects/hosting/stacy1/app/assets/stylesheets/application.css.scss)
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-rails-3.2.6/lib/sass/rails/helpers.rb:32:in `resolver'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-rails-3.2.6/lib/sass/rails/helpers.rb:25:in `font_url'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/script/funcall.rb:112:in `_perform'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/script/node.rb:40:in `perform'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:298:in `visit_prop'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53:in `map'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:356:in `visit_directive'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53:in `map'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:128:in `visit_root'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/base.rb:37:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:100:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/visitors/perform.rb:7:in `visit'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/tree/root_node.rb:20:in `render'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/engine.rb:315:in `_render'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-3.2.12/lib/sass/engine.rb:262:in `render'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sass-rails-3.2.6/lib/sass/rails/compressor.rb:12:in `compress'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/compressors.rb:74:in `compress'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/processing.rb:243:in `block in css_compressor='
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/processor.rb:29:in `call'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/processor.rb:29:in `evaluate'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/context.rb:193:in `block in evaluate'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/context.rb:190:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/context.rb:190:in `evaluate'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/bundled_asset.rb:26:in `initialize'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `new'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:252:in `build_asset'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in `block in build_asset'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/caching.rb:19:in `cache_asset'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in `build_asset'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in `find_asset'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/index.rb:60:in `find_asset'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/static_compiler.rb:19:in `block in compile'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in `block in each_logical_path'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in `block (2 levels) in each_file'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in `each_entry'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in `block in each_file'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in `each_file'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in `each_logical_path'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/static_compiler.rb:18:in `compile'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:56:in `internal_precompile'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:70:in `block (3 levels) in <top (required)>'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/mark/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/mark/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/bin/rake:23:in `load'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/bin/rake:23:in `<main>'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/Users/mark/.rvm/rubies/ruby-1.9.2-p...]
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/file_utils.rb:55:in `block in create_shell_runner'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `call'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `sh'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/file_utils.rb:82:in `ruby'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/mark/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/bin/rake:23:in `load'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/bin/rake:23:in `<main>'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/bin/ruby_executable_hooks:15:in `eval'
/Users/mark/.rvm/gems/ruby-1.9.2-p320#stacy1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile`enter code here`
Here is the application.css.scss file:
/*
*= require_self
*= require_tree .
*/
You use image-url(/path/to/file.png) in .css file,change it for url(/assets/path/to/file.png)
I resolved this issue by moving my development to RVM using ruby 2.0.0 and rails 4.0. Everything worked fine after that. I slowly added my files into the new configuration and kept running the precompile to make sure it worked every step of the way. Thanks for everyone's help.

Resources