grosser / autotest

Save a file, autotest will run the matching tests! (Autotest without ZenTest)
121 stars 20 forks source link

rails3 ruby1.9.2-p0 errors #11

Closed doabit closed 14 years ago

doabit commented 14 years ago

when i use rails3+ruby1.9.2 and autotest ,i got erros as: internal:lib/rubygems/custom_require:29: warning: loading in progress, circular require considered harmful

but when i use rails3.0RC and ruby1.9.2-rc2, it works well??

grosser commented 14 years ago

i added a circular dependency to prevent users from upgrading from 1.9.2-rc2 ;)

grosser commented 14 years ago

can you give me a full stack trace ?

doabit commented 14 years ago

hi.this is the all:

internal:lib/rubygems/custom_require:29: warning: loading in progress, circular require considered harmful - /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb from /Users/doabit/.rvm/gems/ruby-1.9.2-p0/bin/autotest:12:in <main>' from <internal:lib/rubygems/custom_require>:29:inrequire' from internal:lib/rubygems/custom_require:29:in require' from /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:1136:in<top (required)>' from /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:968:in load_plugins' from /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:968:ineach' from /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:976:in block in load_plugins' from /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:976:inload' from /Users/doabit/.rvm/gems/ruby-1.9.2-p0/gems/yard-0.6.1/lib/rubygems_plugin.rb:2:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire' from internal:lib/rubygems/custom_require:29:in require' from /Users/doabit/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/doc_manager.rb:8:in<top (required)>' from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire' loading autotest/rails


and i find this ;http://gist.github.com/539584 ..but i can't understand how to do? thank you

grosser commented 14 years ago

Are you using ZenTest or autotest ? line 12 does not do anything with require: http://github.com/grosser/autotest/blob/master/bin/autotest

doabit commented 14 years ago

oh.i found that i uninstall the ZenTest.but some one install it again.sorry..!! I try it again

doabit commented 14 years ago

Hi.now i can use it ...I uninstalled the all gems about autotest and install them agian.then i works well, thank you !!