Nerian / bootstrap-wysihtml5-rails

WYSIWYG editor for Bootstrap, integrated in Rails assets pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sprockets::CircularDependencyError

bliaxiong opened this issue · comments

commented

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:inbuild_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:incache_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:infind_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:inbuild_dependency_paths'
/Users/bxiong/.rvm/rubies/jruby-1.7.11/lib/ruby/1.9/set.rb:222:in each' org/jruby/RubyHash.java:1400:ineach_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:inbuild_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:inbuild_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:inbuild_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:incache_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:infind_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:inresolve_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:inresolve_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:ininitialize'
/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:incircular_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:inbuild_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:inbuild_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:infind_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:ineach'
/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:inbuild_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:inbuild_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:inbuild_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:incache_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:infind_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:ininitialize'
/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:inbuild_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:inbuild_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:infind_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:ineach_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:ineach'
/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:ineach_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:ineach_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:incompile'
/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:inexecute'
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:inexecute'
/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:inmon_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:ininvoke'
/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:intop_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:intop_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:intop_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:instandard_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:incall'
/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:insh'
/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:inruby'
/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:ininvoke_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:incall'
/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:ineach'
/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:ininvoke_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:ininvoke_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:ininvoke_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:ineach'
/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:inrun_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:inrun'
/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:inrun'
/Users/bxiong/.rvm/gems/jruby-1.7.11@global/gems/rake-10.3.1/bin/rake:33:in (root)' org/jruby/RubyKernel.java:1101:inload'
/Users/bxiong/.rvm/gems/jruby-1.7.11@TestApp/bin/rake:1:in (root)' org/jruby/RubyKernel.java:1121:ineval'
/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.

commented

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

I ran into this as well. I'm using @import vs *= require which I believe leads to the issue.

I just downgraded back to .23 for now, but can confirm that d0771d2 is what breaks it for me, as removing these lines allows @import to continue to work.

@cymen @brandonhilkert

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?

commented

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!