-
Notifications
You must be signed in to change notification settings - Fork 88
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
Is the gantt_chart compatible with activesupport-4.2.0? #120
Comments
I have quite the same issue witjh redmine 2.5, here is my stack trace: i used the debian 8.1 default package Since i saw that someone manage to run this plugin with my redmine version what's wrong with this? |
Hi! This error simple fixed with the next patch. diff --git a/lib/redmine_better_gantt_chart/active_record/callback_extensions_for_rails3.rb b/lib/redmine_better_gantt_chart/active_record/callback_extensions_for_rails3.rb index 8ef7de1..7c6913b 100755 --- a/lib/redmine_better_gantt_chart/active_record/callback_extensions_for_rails3.rb +++ b/lib/redmine_better_gantt_chart/active_record/callback_extensions_for_rails3.rb @@ -1,8 +1,6 @@ -require 'active_support/basic_object' - module RedmineBetterGanttChart module ActiveRecord - class WithoutCallbacks < ActiveSupport::BasicObject + class WithoutCallbacks < ::BasicObject def initialize(target, types) @target = target @types = types The errors descriptions is not show function names with wrong number of arguments. Started GET "/projects/host/issues/gantt" for 192.168.0.2 at 2015-10-06 20:10:25 +0000 Processing by GanttsController#show as HTML Parameters: {"project_id"=>"host"} Current user: admin (id=1) Rendered queries/_filters.html.erb (16.0ms) Rendered plugins/redmine_better_gantt_chart/app/views/gantts/show.html.erb within layouts/base (62.1ms) Completed 500 Internal Server Error in 118ms (ActiveRecord: 24.2ms) ActionView::Template::Error (wrong number of arguments (1 for 0)): 65: 66: # Width of the entire chart 67: g_width = ((@gantt.work_days_in(@gantt.date_to, @gantt.date_from) + 1) * zoom).to_i 68: @gantt.render(:top => headers_height + 8, 69: :zoom => zoom, 70: :g_width => g_width, 71: :subject_width => subject_width) lib/redmine/sudo_mode.rb:63:in `sudo_mode' |
I could get it to "work" with the following change on top of #121
I am not sure if this is still doing the same thing though. (And I am just noticing that I forgot the uniq) |
I managed to get the plugin to work on Kubuntu 16.04 with the suggestions by rtwo. I first followed the #121 link and applied all the changes there, then I did the chages suggested br rtwo in his post, above. Thanks a lot!!! |
Hi, |
I have upgraded my redmine to lastest version(3.0.1). Bundle have installed 'activesupport-4.2.0' , but when I run the command 'rake db:migrate RAILS_ENV=production' , It response:
LoadError: cannot load such file -- active_support/basic_object
/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
block in require'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in
load_dependency' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require'/home/redmine/redmine-3.0.1/plugins/redmine_better_gantt_chart/lib/redmine_better_gantt_chart/active_record/callback_extensions_for_rails3.rb:1:in
<top (required)>' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
block in require' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in
load_dependency'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:360:in
require_or_load'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:494:in
load_missing_constant' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:184:in
const_missing'/home/redmine/redmine-3.0.1/plugins/redmine_better_gantt_chart/init.rb:8:in
block in <top (required)>' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in
instance_exec'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:441:in
block in make_lambda' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in
call'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:189:in
block in simple' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in
call'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:190:in
block in simple' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in
call'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in
_run_callbacks' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in
_run_prepare_callbacks'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in
run_callbacks' /home/redmine/.gem/ruby/1.9.1/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:83:in
prepare!'/home/redmine/.gem/ruby/1.9.1/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:55:in
prepare!' /home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/application/finisher.rb:50:in
block in module:Finisher'/home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:30:in
instance_exec' /home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:30:in
run'/home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:55:in
block in run_initializers' /home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/initializable.rb:54:in
run_initializers'/home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/application.rb:352:in
initialize!' /home/redmine/redmine-3.0.1/config/environment.rb:14:in
<top (required)>'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
block in require'/home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in
load_dependency' /home/redmine/.gem/ruby/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in
require'/home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/application.rb:328:in
require_environment!' /home/redmine/.gem/ruby/1.9.1/gems/railties-4.2.0/lib/rails/application.rb:443:in
block in run_tasks_blocks'Tasks: TOP => db:migrate => environment
The text was updated successfully, but these errors were encountered: