Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for redmine v5.0.4 #32

Open
shreyarajwade opened this issue Feb 21, 2023 · 3 comments
Open

Not working for redmine v5.0.4 #32

shreyarajwade opened this issue Feb 21, 2023 · 3 comments

Comments

@shreyarajwade
Copy link

shreyarajwade commented Feb 21, 2023

Encountered the following error while installing the plugin for Redmine v5.0.4
rake aborted! LoadError: cannot load such file -- redmine_close_button/hooks /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:inrequire'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in require' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/dependencies/zeitwerk_integration.rb:51:in require_dependency'
/opt/bitnami/redmine/plugins/redmine_close_button/init.rb:3:in <top (required)>' /opt/bitnami/redmine/lib/redmine/plugin_loader.rb:31:in load'
/opt/bitnami/redmine/lib/redmine/plugin_loader.rb:31:in run_initializer' /opt/bitnami/redmine/lib/redmine/plugin_loader.rb:108:in each'
/opt/bitnami/redmine/lib/redmine/plugin_loader.rb:108:in block in load' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in instance_exec'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:427:in block in make_lambda' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:198:in block (2 levels) in halting'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in catch'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:603:in block in default_terminator' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:199:in block in halting'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in block in invoke_before' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in each'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:512:in invoke_before' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:105:in run_callbacks'
/opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7/lib/active_support/reloader.rb:88:in prepare!' /opt/bitnami/redmine/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7/lib/rails/application/finisher.rb:124:in block in module:Finisher'
`
Is there any way to install the plugin for Redmine v5.0.4?

Bundler version 2.4.5
Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [x86_64-linux]
Rails 6.1.7
Redmine v5.0.4

@jendik
Copy link

jendik commented Feb 28, 2023

Hi There-) it's the same here - Debian 11, Bitnami VM latest release with Redmine 5.0.4...

PLEASE make it working again-) It's so important feature...I still do not get it's not part of the Redmine main release..

thank you so much
j.

@erSitzt
Copy link

erSitzt commented Feb 6, 2024

@jendik @shreyarajwade if its still relevant...

Try changing init.rb to

require 'redmine'
require_relative 'lib/redmine_close_button/hooks'

Redmine::Plugin.register :redmine_close_button do
  name 'Redmine Close Issue Button Plugin'
  author 'Undev'
  description 'This plugins enables you to close issues quickly using the Close Issue button.'
  version '0.0.8'
  url 'http://github.com/Undev/redmine_close_button' if respond_to?(:url)
  author_url 'http://github.com/Undev'
  requires_redmine :version_or_higher => '0.9.0'
end

only part modified is require_dependency 'redmine_close_button/hooks' to require_relative 'lib/redmine_close_button/hooks'

@jendik
Copy link

jendik commented Nov 4, 2024

btw. thanks so much! it worked like a charm-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants