Sprockets::CircularDependencyError
bliaxiong opened this issue · comments
Getting Sprockets::CircularDependencyError on version 0.3.1.24.
Using Rails 3.2.17
JRuby 1.7.11
Mac OSX
Seems to work fine with previous releases.
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/bxiong/.rvm/rubies/jruby-1.7.11/bin/jruby /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Invoke assets:cache:clean (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Execute assets:cache:clean
** Execute assets:precompile:all
rake aborted!
Sprockets::CircularDependencyError: /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/bootstrap-wysihtml5-rails-0.3.1.24/vendor/assets/stylesheets/bootstrap-wysihtml5/wysiwyg-color.css has already been required
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:268:in circular_call_protection' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in
cache_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:121:in
build_dependency_paths'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/set.rb:222:in each' org/jruby/RubyHash.java:1400:in
each_key'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/set.rb:222:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:118:in
build_dependency_paths'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/unprocessed_asset.rb:29:in initialize' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:16:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:271:in circular_call_protection' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in
cache_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:94:in
resolve_dependencies'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:90:in
resolve_dependencies'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:81:in build_required_assets' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/unprocessed_asset.rb:28:in
initialize'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:16:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:271:in
circular_call_protection'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in cache_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:96:in resolve_dependencies' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:90:in resolve_dependencies' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/asset_with_dependencies.rb:81:in
build_required_assets'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/sprockets/unprocessed_asset.rb:28:in initialize' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:16:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:271:in circular_call_protection' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:14:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in
cache_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/bundled_asset.rb:12:in
initialize'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/base.rb:22:in build_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:93:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/caching.rb:16:in cache_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/index.rb:92:in
build_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:169:in find_asset' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/index.rb:13:in
find_asset'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:32:in compile' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:219:in
each_logical_path'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:206:in each_file' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:196:in each_entry' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:204:in
each_file'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:203:in
each_file'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/sprockets-2.2.2/lib/sprockets/base.rb:217:in each_logical_path' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/sprockets_overrides/static_compiler.rb:29:in
compile'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:108:in internal_precompile' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:115:in
(root)'
org/jruby/RubyProc.java:271:in call' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:240:in
execute'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:235:in
execute'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:179:in invoke_with_call_chain' /Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/monitor.rb:211:in
mon_synchronize'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:172:in invoke_with_call_chain' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:165:in
invoke'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:150:in invoke_task' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in
top_level'
org/jruby/RubyArray.java:1613:in each' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in
top_level'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:115:in run_with_threads' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:100:in
top_level'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:78:in run' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:176:in
standard_exception_handling'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:75:in run' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/bin/rake:33:in
(root)'
org/jruby/RubyKernel.java:1101:in load' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake:23:in
(root)'
Tasks: TOP => assets:precompile:all
rake aborted!
Command failed with status (1): [/Users/bxiong/.rvm/rubies/jruby-1.7.11/bin...]
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils.rb:55:in create_shell_runner' org/jruby/RubyProc.java:271:in
call'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils.rb:45:in sh' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils_ext.rb:41:in
sh'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils.rb:82:in ruby' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/file_utils_ext.rb:41:in
ruby'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:24:in ruby_rake_task' /Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:33:in
invoke_or_reboot_rake_task'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:50:in (root)' org/jruby/RubyProc.java:271:in
call'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:240:in execute' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:235:in execute' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:179:in
invoke_with_call_chain'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/monitor.rb:211:in mon_synchronize' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:172:in
invoke_with_call_chain'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/task.rb:165:in invoke' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:150:in
invoke_task'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in top_level' org/jruby/RubyArray.java:1613:in
each'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:106:in top_level' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:115:in
run_with_threads'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:100:in top_level' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:78:in
run'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:176:in standard_exception_handling' /Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/lib/rake/application.rb:75:in
run'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/bin/rake:33:in (root)' org/jruby/RubyKernel.java:1101:in
load'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake:1:in (root)' org/jruby/RubyKernel.java:1121:in
eval'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/jruby_executable_hooks:15:in `(root)'
Tasks: TOP => assets:precompile
Hi,
My test app did a rake assets:precompile
fine so I can't reproduce your error.
https://github.com/Nerian/bootstrap-wysihtml5-rails/tree/master/testapp
If you can reproduce the error on that test app I may be able to help you.
Ok, sure. I'll take a look when I get a chance.
On Tue, Apr 29, 2014 at 2:39 PM, Gonzalo Rodríguez-Baltanás Díaz <
notifications@github.com> wrote:
Hi,
My test app did a rake assets:precompile fine so I can't reproduce your
error.https://github.com/Nerian/bootstrap-wysihtml5-rails/tree/master/testapp
If you can reproduce the error on that test app I may be able to help you.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/87#issuecomment-41722244
.
Thanks!
Blia Xiong
bliaxiong1@gmail.com
It looks like this PR #85 is causing issues. Do you know how can we fix this?
I'm using *= require bootstrap-wysihtml5/b3
as well.
@theschoolmaster - curious to know why you can't use *= require
@bliaxiong - can you provide your application.css
?
Seems to work now. Not sure what happened there. I know I have to revert to
an older version before to get it up and running again.
Currently on 0.3.1.24 with Rails 3.2.18, JRuby 1.7.10.
*= require_self
*= require token-input-facebook
*= require chosen
*= require jquery.ui.all
*= require fullcalendar
*= require bootstrap-wysihtml5
*= require validationEngine.jquery
*= require jstree-themes/classic/style
*= require jstree-themes/default/style
*= require jstree-themes/apple/style
*= require_tree .
On Wed, May 7, 2014 at 7:54 AM, Brandon Hilkert notifications@github.comwrote:
I'm using *= require bootstrap-wysihtml5/b3 as well.
@theschoolmaster https://github.com/theschoolmaster - curious to know
why you can't use *= require@bliaxiong https://github.com/bliaxiong - can you provide your
application.css?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/87#issuecomment-42422768
.
Thanks!
Blia Xiong
bliaxiong1@gmail.com
Looks like it's no longer and issue when using *= require
, which is what the documentation suggests.
Excellent, so issue solved. Thanks!