Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Autotest fail with Rails 3.0.0 and ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

#5541

Autotest was running correctly for my app with Rails 3.0.0 and ruby 1.8.7. I upgraded to 1.9.2p0 29036 using RVM and now autotest is no longer working. I'm not sure if this is the right place to post the bug report, but I'll give it a try.

There were 2 warnings then autotest failed.

I tried upgrading to latest test-unit ("gem install test-unit" instead of via the bundle) but the error still occurs. I attach my Gemfile and Gemfile.lock files here if it helps..

alexle:m3 sr3d$ autotest
loading autotest/rails
/Users/sr3d/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit test/functional/app/home_controller_test.rb test/unit/helpers/admin/help_items_helper_test.rb test/functional/app/checklist_items_controller_test.rb test/unit/category_type_test.rb

..... omitted ......

].each { |f| require f }" | unit_diff -u /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/ZenTest-4.4.0/lib/unit_diff.rb:100: warning: shadowing outer local variable - line /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/ZenTest-4.4.0/lib/unit_diff.rb:104: warning: shadowing outer local variable - line /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require': no such file to load -- test/unit/ui/console/testrunner (LoadError)

from /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `block in require'
from /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/redgreen-1.2.2/lib/redgreen.rb:2:in `<top (required)>'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `block (2 levels) in require'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `each'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `block in require'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `each'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `require'
from /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.0/lib/bundler.rb:112:in `require'
from /Users/sr3d/projects/marrily/svn/marrily_marrily/m3/app/config/application.rb:7:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/sr3d/projects/marrily/svn/marrily_marrily/m3/app/config/environment.rb:2:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/sr3d/projects/marrily/svn/marrily_marrily/m3/app/test/test_helper.rb:2:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/sr3d/projects/marrily/svn/marrily_marrily/m3/app/test/functional/app/home_controller_test.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from -e:1:in `block in <main>'
from -e:1:in `each'
from -e:1:in `<main>'

Reported by Alex Le · September 3rd, 2010 @ 07:42 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Alexandre da Silva
    Alexandre da Silva

    I am getting the same.

    Rails 3.0.0 + rvm 0.1.46 + ruby 1.9.2p0

    when I ran rake test I get:

    [..]/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require': no such file to load -- test/unit/ui/console/testrunner (LoadError) ..

    In my case I tried with or without autotest, the results are same.

    September 5th, 2010 @ 05:20 PM

  2. Alexandre da Silva
    Alexandre da Silva

    The problem seems to be in redgreen gem
    I was not using autotest, but redgreen and others where in my Gemfile. I commented out redgreen and rake test worked fine

    September 6th, 2010 @ 01:49 AM

  3. Jeff Kreeftmeijer
    Jeff Kreeftmeijer
    • State changed from new to invalid
    • Importance changed from to Low

    Closing this one since the issue seems to be in redgreen instead of Rails. If it's still an issue, please comment and I'll reopen it. :)

    October 10th, 2010 @ 08:58 AM

  4. bingbing
  5. learn italian online
    learn italian online

    .each { |f| require f }" | unit_diff -u rosetta /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/ZenTest-4.4.0/lib/unit_diff.rb:100: warning: shadowing outer learn french online local variable - line /Users/sr3d/.rvm/gems/ruby-1.9.2-p0/gems/ZenTest-4.4.0/lib/unit_diff.rb:104: warning: shadowing rosetta stone spanish outer local variable - line /Users/sr3d/projects/marrily/bundles/m3/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require': no such file to load -- rosetta stone test/unit/ui/console/testrunner (LoadError)

    May 20th, 2011 @ 01:27 AM