kubitron / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
78 stars 15 forks source link

uninitialized constant RedmineGitHosting::Patches::ProjectsControllerPatch::GitHostingHelper #112

Closed micah closed 10 years ago

micah commented 10 years ago

Hi,

I just was trying the master branch (there is no v0.7 branch/tag - the install documentation says to check out that branch, but it doesn't exist), and when I try to do the redmine:plugins:migrate rake task, I get this:

#RAILS_ENV=production rake redmine:plugins:migrate --trace
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant RedmineGitHosting::Patches::ProjectsControllerPatch::GitHostingHelper
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/projects_controller_patch.rb:16:in `block in included'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/projects_controller_patch.rb:7:in `class_eval'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/projects_controller_patch.rb:7:in `included'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/projects_controller_patch.rb:142:in `include'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/projects_controller_patch.rb:142:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting.rb:48:in `block in <top (required)>'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:429:in `_run__3880191746020499583__prepare__3586515971981176710__callbacks'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/usr/lib/ruby/vendor_ruby/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `instance_exec'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `run'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:55:in `block in run_initializers'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `each'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `run_initializers'
/usr/lib/ruby/vendor_ruby/rails/application.rb:136:in `initialize!'
/usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `method_missing'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/vendor_ruby/rails/application.rb:103:in `require_environment!'
/usr/lib/ruby/vendor_ruby/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `call'
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `block in execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/lib/ruby/vendor_ruby/rake/task.rb:174:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:174:in `invoke_prerequisites'
/usr/lib/ruby/vendor_ruby/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:144:in `invoke'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `each'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `block in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:88:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:66:in `block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment
# 
micah commented 10 years ago

correction, i'm using HEAD, which is actually the 'devel' branch.

I tried to use the v0.6.3 tag, but got this instead:

** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Missing helper file helpers/git_hosting_helper.rb
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:317:in `rescue in depend_on'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:312:in `depend_on'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:225:in `require_dependency'
/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'
/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:131:in `map!'
/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:131:in `modules_for_helpers'
/usr/lib/ruby/vendor_ruby/action_controller/metal/helpers.rb:92:in `modules_for_helpers'
/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:95:in `helper'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:10:in `block in included'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:7:in `class_eval'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:7:in `included'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:20:in `include'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting/patches/settings_controller_patch.rb:20:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `block in require'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:236:in `load_dependency'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:359:in `require_or_load'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:313:in `depend_on'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:225:in `require_dependency'
/usr/share/redmine/lib/plugins/redmine_git_hosting/lib/redmine_git_hosting.rb:54:in `block in <top (required)>'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:429:in `_run__3819317029395253422__prepare__2390222594327176124__callbacks'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/usr/lib/ruby/vendor_ruby/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `instance_exec'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `run'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:55:in `block in run_initializers'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `each'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `run_initializers'
/usr/lib/ruby/vendor_ruby/rails/application.rb:136:in `initialize!'
/usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `method_missing'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/vendor_ruby/rails/application.rb:103:in `require_environment!'
/usr/lib/ruby/vendor_ruby/rails/application.rb:292:in `block (2 levels) in initialize_tasks'
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `call'
/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `block in execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:200:in `execute'
/usr/lib/ruby/vendor_ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:176:in `block in invoke_prerequisites'
/usr/lib/ruby/vendor_ruby/rake/task.rb:174:in `each'
/usr/lib/ruby/vendor_ruby/rake/task.rb:174:in `invoke_prerequisites'
/usr/lib/ruby/vendor_ruby/rake/task.rb:157:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/vendor_ruby/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/vendor_ruby/rake/task.rb:144:in `invoke'
/usr/lib/ruby/vendor_ruby/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `each'
/usr/lib/ruby/vendor_ruby/rake/application.rb:94:in `block in top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:88:in `top_level'
/usr/lib/ruby/vendor_ruby/rake/application.rb:66:in `block in run'
/usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
/usr/bin/rake:27:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment
micah commented 10 years ago

Additional info: I'm using redmine 2.4.2

kubitron commented 10 years ago

Hello. This branch has been idle for a while and is not compatible with Redmine 2.x. (look at release notes).

There are a number of good forks of this code that have been ported to 2.x. I suggest using one of them.

micah commented 10 years ago

hum, i reported this issue on the wrong issue tracker, apologies and thanks for responding!