Project

General

Profile

Bug #2701

Error when foreman-console is installed: cannot load such file -- minitest

Added by Dominic Cleal about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Packaging
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Happens when loading any of the Rails app, dbmigrating etc while foreman-console's present.

[root@rhel6b foreman]# scl enable ruby193 'rails c'
/opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in `strict_error': Gem loading error: cannot load such file -- minitest (RuntimeError)
    from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:56:in `rescue in block in system_require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in `block in system_require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in `each'
    from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in `system_require'
    from /usr/share/foreman/config/application.rb:11:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/commands.rb:39:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
    from script/rails:6:in `<main>'

Related issues

Related to Foreman - Bug #2650: Rails console doesn't load: cannot load such file -- minitest/unitClosed2013-06-11

Associated revisions

Revision c36baf86 (diff)
Added by Dominic Cleal about 6 years ago

fixes #2701 - require correct minitest file

(cherry picked from commit f604723465b0effc63ee8d1b8b5622f01508ec16)

Revision fe6802d9 (diff)
Added by Dominic Cleal about 6 years ago

fixes #2701 - require correct minitest file

(cherry picked from commit f604723465b0effc63ee8d1b8b5622f01508ec16)
(cherry picked from commit c36baf86ae47bc09a18021900d05c96d23d20a1c)

History

#1 Updated by Gaƫl Chamoulaud about 6 years ago

Thx Dominic, It works for me now ! ;-)

With bundler.d/console.rb:

group :console do
  gem 'wirb'
  gem 'hirb-unicode'
  gem 'awesome_print', :require => 'ap'

  # minitest - workaround until Rails 4.0 (#2650)
  gem 'minitest', '~> 4.7', :require => 'minitest/unit'
end

#2 Updated by Dominic Cleal about 6 years ago

  • Status changed from Assigned to Ready For Testing

#3 Updated by Dominic Cleal about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF