TypeError:没有将Sprockets :: BundledAsset隐式转换为String

时间:2014-09-24 09:41:21

标签: ruby-on-rails heroku sprockets

我已将我的生产环境分叉到一个新的临时环境,两者都运行良好。

虽然我可以将新的更改推向生产,但在推送到分期时我会得到以下结果。

我的production.rbstaging.rb文件完全相同,而且我已经用尽自己试图找到与此特定错误相关的任何解决方案

当然我错过了什么。

-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       I, [2014-09-24T05:21:09.297742 #2095]  INFO -- : Writing /tmp/build_c90fc427-f684-436a-8076-52a06445793d/public/assets/sprites/header-logo-bea8afedabab24e6c9c2ae143b98a4cd.png
       I, [2014-09-24T05:21:09.611544 #2095]  INFO -- : Writing /tmp/build_c90fc427-f684-436a-8076-52a06445793d/public/assets/sprites/icon-menu-24e80c653076ff64f974b967b5689ef0.png
       I, [2014-09-24T05:24:45.435673 #2095]  INFO -- : Writing /tmp/build_c90fc427-f684-436a-8076-52a06445793d/public/assets/application-acec9c16affb16f353636a9529aa1673.js
       rake aborted!
       TypeError: no implicit conversion of Sprockets::BundledAsset into String
       (in /tmp/build_c90fc427-f684-436a-8076-52a06445793d/app/assets/stylesheets/site.scss)
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/compass-0.12.7/lib/compass/sass_extensions/functions/image_size.rb:17:in `extname'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/compass-0.12.7/lib/compass/sass_extensions/functions/image_size.rb:17:in `initialize'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/compass-0.12.7/lib/compass/sass_extensions/functions/image_size.rb:50:in `new'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/compass-0.12.7/lib/compass/sass_extensions/functions/image_size.rb:50:in `image_dimensions'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/compass-0.12.7/lib/compass/sass_extensions/functions/image_size.rb:4:in `image_width'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/funcall.rb:113:in `_perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/operation.rb:73:in `_perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/funcall.rb:99:in `block in _perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/funcall.rb:99:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/funcall.rb:99:in `_perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/list.rb:71:in `block in _perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/list.rb:71:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/list.rb:71:in `_perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/script/node.rb:40:in `perform'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:298:in `visit_prop'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block (3 levels) in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block (2 levels) in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:70:in `perform_arguments'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:263:in `visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block (3 levels) in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block (2 levels) in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:70:in `perform_arguments'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:263:in `visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `block in visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:320:in `visit_rule'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `block in visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:205:in `visit_if'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block (3 levels) in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block (2 levels) in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:268:in `block in visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:70:in `perform_arguments'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:263:in `visit_mixin'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `block in visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:320:in `visit_rule'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:227:in `block in visit_import'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:227:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:227:in `visit_import'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:227:in `block in visit_import'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:227:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:227:in `visit_import'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `map'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:53:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:109:in `block in visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:121:in `with_environment'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:108:in `visit_children'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `block in visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:128:in `visit_root'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/base.rb:37:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:100:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:7:in `visit'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/tree/root_node.rb:20:in `render'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/engine.rb:315:in `_render'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/engine.rb:262:in `render'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/compass-rails-2.0.0/lib/compass-rails/patches/sass_importer.rb:29:in `evaluate'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:197:in `block in evaluate'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `each'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `evaluate'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:12:in `initialize'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `new'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `block in build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:395:in `circular_call_protection'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:373:in `build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:105:in `each'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:105:in `resolve_dependencies'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:97:in `build_required_assets'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:16:in `initialize'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `new'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `block in build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:395:in `circular_call_protection'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:373:in `build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/bundled_asset.rb:16:in `initialize'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:377:in `new'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:377:in `build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:211:in `block in find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:257:in `benchmark'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:210:in `find_asset'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:119:in `block in compile'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `each'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `compile'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.1.3/lib/sprockets/rails/task.rb:61:in `block (3 levels) in define'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-2.11.0/lib/rake/sprocketstask.rb:146:in `with_logger'
       /tmp/build_c90fc427-f684-436a-8076-52a06445793d/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.1.3/lib/sprockets/rails/task.rb:60:in `block (2 levels) in define'
       Tasks: TOP => assets:precompile
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.
 !

 !     Push rejected, failed to compile Ruby app

我的site.scss

@import 'compass/reset';
@import 'imports/config';
@import 'imports/palette';
@import 'imports/mixins';
@import 'imports/functions';
@import 'bootstrap-sprockets';
@import 'bootstrap';
@import 'font-awesome';

@import 'components/*.scss';
@import 'common/*.scss';
@import 'views/**/*.scss';

编辑:我们将错误范围缩小到image-width上的罗盘调用sprite-path,因为如果我们注释掉包含image-width的样式表,一切运行正常。 (我们创建了一个指南针问题here

我能够在compass/sass_extensions/functions/image_size:48处断点并调试违规行。执行以下操作时发生错误:

ImageProperties.new(image_path_for_size(image_file.value)).size

我在另一个工作项目中预编译(具有相同的gem版本和配置),并发现image_path_for_size(image_file.value)在工作项目中返回Sprockets::StaticAsset,并在失败的项目中返回Sprockets::BundledAsset

BundledAsset不支持#to_sStaticAsset,因此问题变为:什么导致指南针接收BundledAsset而不是StaticAsset

0 个答案:

没有答案