Loriowar / redmine_issues_tree

Provides a tree view of the Redmine issues list
GNU General Public License v3.0
115 stars 72 forks source link

NameError: uninitialized constant RedmineIssuesTree::VERSION #133

Closed btmndkh closed 1 year ago

btmndkh commented 1 year ago

Got following error?

root@db1ce043a5f9:/home/redmine/redmine# bundle exec rake redmine:plugins:migrate RAILS_ENV=production rake aborted! NameError: uninitialized constant RedmineIssuesTree::VERSION Did you mean? RedmineIssuesTree::Version Version /home/redmine/redmine/plugins/redmine_issues_tree/init.rb:7:in block in <top (required)>' /home/redmine/redmine/lib/redmine/plugin.rb:96:ininstance_eval' /home/redmine/redmine/lib/redmine/plugin.rb:96:in register' /home/redmine/redmine/plugins/redmine_issues_tree/init.rb:3:in<top (required)>' /home/redmine/redmine/lib/redmine/plugin_loader.rb:31:in load' /home/redmine/redmine/lib/redmine/plugin_loader.rb:31:inrun_initializer' /home/redmine/redmine/lib/redmine/plugin_loader.rb:108:in each' /home/redmine/redmine/lib/redmine/plugin_loader.rb:108:inblock in load' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:427:in instance_exec' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:427:inblock in make_lambda' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:604:inblock (2 levels) in default_terminator' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:603:in catch' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:603:inblock in default_terminator' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:199:in block in halting' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:512:inblock in invoke_before' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:512:in each' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:512:ininvoke_before' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/callbacks.rb:105:in run_callbacks' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/reloader.rb:88:inprepare!' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application/finisher.rb:124:in block in <module:Finisher>' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:ininstance_exec' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in run' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:inblock in run_initializers' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in run_initializers' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:391:ininitialize!' /home/redmine/redmine/config/environment.rb:16:in <top (required)>' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:inrequire' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in require' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:inblock in require' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in load_dependency' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:inrequire' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:367:in require_environment!' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-6.1.7.2/lib/rails/application.rb:533:inblock in run_tasks_blocks' /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)

Here is my versions:

Environment: Redmine version 5.0.5.stable Ruby version 2.7.5-p203 (2021-11-24) [x86_64-linux-gnu] Rails version 6.1.7.2 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Default SCM: Subversion 1.13.0 Mercurial 5.3.1 Cvs 1.12.13 Bazaar 3.0.2 Git 2.40.0 Filesystem
Redmine plugins: no plugin installed

Loriowar commented 1 year ago

Which branch of the plugin you're using?

btmndkh commented 1 year ago

MASTER...I believe this is the latest version of your release . All I did was clone it and tried to run it on Redmine using Docker.

command I used: git clone https://github.com/Loriowar/redmine_issues_tree.git

btmndkh commented 1 year ago

My apologies! I was installing it the wrong way. I should have cloned a specific branch. :(

This works for me -> git clone -b 5.0.x https://github.com/Loriowar/redmine_issues_tree.git