Defect #37048

generate redmine_plugin is broken for Redmine 5

Added by fabrice salvaire 5 months ago. Updated 4 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution: Affected version:5.0.0

Description

I tried this command

bundle exec rails generate redmine_plugin Polls

/usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require': cannot load such file -- listen (LoadError)
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `block in require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:299:in `load_dependency'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/evented_file_update_checker.rb:6:in `<top (required)>'
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `block in require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:299:in `load_dependency'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `require'
        from /home/www/redmine-5.0.0/config/environments/development.rb:58:in `block in <top (required)>'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/railtie.rb:234:in `instance_eval'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/railtie.rb:234:in `configure'
        from /home/www/redmine-5.0.0/config/environments/development.rb:5:in `<top (required)>'
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `block in require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:299:in `load_dependency'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `require'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/engine.rb:571:in `block (2 levels) in <class:Engine>'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/engine.rb:570:in `each'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/engine.rb:570:in `block in <class:Engine>'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/initializable.rb:32:in `instance_exec'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/initializable.rb:32:in `run'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/initializable.rb:61:in `block in run_initializers'
        from /usr/share/ruby/tsort.rb:228:in `block in tsort_each'
        from /usr/share/ruby/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /usr/share/ruby/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/share/ruby/tsort.rb:431:in `each_strongly_connected_component_from'
        from /usr/share/ruby/tsort.rb:421:in `block in each_strongly_connected_component_from'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/initializable.rb:50:in `each'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/initializable.rb:50:in `tsort_each_child'
        from /usr/share/ruby/tsort.rb:415:in `call'
        from /usr/share/ruby/tsort.rb:415:in `each_strongly_connected_component_from'
        from /usr/share/ruby/tsort.rb:349:in `block in each_strongly_connected_component'
        from /usr/share/ruby/tsort.rb:347:in `each'
        from /usr/share/ruby/tsort.rb:347:in `call'
        from /usr/share/ruby/tsort.rb:347:in `each_strongly_connected_component'
        from /usr/share/ruby/tsort.rb:226:in `tsort_each'
        from /usr/share/ruby/tsort.rb:205:in `tsort_each'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/initializable.rb:60:in `run_initializers'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/application.rb:391:in `initialize!'
        from /home/www/redmine-5.0.0/config/environment.rb:16:in `<top (required)>'
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        from /usr/share/gems/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `block in require'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:299:in `load_dependency'
        from /usr/share/gems/gems/activesupport-6.1.4.7/lib/active_support/dependencies.rb:332:in `require'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/application.rb:367:in `require_environment!'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/command/actions.rb:28:in `require_environment!'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/commands/generate/generate_command.rb:21:in `perform'
        from /usr/share/gems/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
        from /usr/share/gems/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/share/gems/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/command/base.rb:69:in `perform'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/command.rb:48:in `invoke'
        from /usr/share/gems/gems/railties-6.1.4.7/lib/rails/commands.rb:18:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

History

#1 Updated by Go MAEDA 5 months ago

Does the following command work?

RAILS_ENV=development bundle exec rails generate redmine_plugin Polls

#2 Updated by markus schulte 5 months ago

sorry for stepping in here without invitation.
i'm having above mentioned problem with redmine_oidc plugin.

i can confirm

RAILS_ENV=development bundle exec rails generate redmine_plugin Polls

works like a charm.
cheers,
/markus

#3 Updated by David Robinson 4 months ago

RAILS_ENV=development bundle exec rails generate redmine_plugin <plugin name>

Does not work here - it gives the same error as above.

RAILS_ENV=production bundle exec rails generate redmine_plugin <plugin name>

Does work.

Also available in: Atom PDF