Project

General

Profile

Actions

Bug #2701

closed

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

Added by Dominic Cleal over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Packaging
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Bug #2650: Rails console doesn't load: cannot load such file -- minitest/unitClosedLukas Zapletal06/11/2013Actions
Actions #1

Updated by Gaël Chamoulaud over 11 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
Actions #2

Updated by Dominic Cleal over 11 years ago

  • Status changed from Assigned to Ready For Testing
Actions #3

Updated by Dominic Cleal over 11 years ago

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

Also available in: Atom PDF