Project

General

Profile

Actions

Bug #8510

closed

gettext_i18n_rails 1.x causes "cannot load such file -- gettext/tools/task" in production

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

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Packaging
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

[root@foreman ~]# foreman-rake plugins --trace
rake aborted!
cannot load such file -- gettext/tools/task
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
/opt/rh/ruby193/root/usr/share/gems/gems/gettext_i18n_rails-1.0.5/lib/gettext_i18n_rails/tasks.rb:1:in `<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
/usr/share/foreman/lib/tasks/gettext.rake:3:in `<top (required)>'

This also causes db:migrate etc to fail.

Previously the gem only lazily loaded gettext when the rake tasks were executed, but now it's happening when the tasks are loaded, due to https://github.com/grosser/gettext_i18n_rails/commit/d1b02f734f9e0c96de50d1a58e8170ce6ec457ac


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #7233: Revert Ruby 1.8 specificsClosedShlomi Zadok08/22/2014Actions
Actions

Also available in: Atom PDF