finnlabs/chiliproject_backlogs — Issue #5: undefined method `tracker' for Rake::Task:Class
Author: linuxmail
Created: 2011-12-20 22:09:44+00:00
State: open

hi,

I installed chiliproject_backlogs on the following environment:

About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1.2
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root /var/www/chili-2.5.0
Environment production
Database adapter mysql
Database schema version 20111014073605

About your Redmine plugins
Auto Project plugin 1.0.0
Ensure Project Hierarchy plugin 1.0.0
ChiliProject Nissue 1.0.0
ChiliProject Backlogs 1.1.0
Redmine Checkout plugin 0.5
Redmine Onevision Permission plugin 0.0.1
SCM Creator 0.3.0

root@scm:/var/www/chili# bundle install
Using rake (0.8.7)
Using Ascii85 (1.0.1)
Using activesupport (2.3.14)
Using rack (1.1.2)
Using actionpack (2.3.14)
Using actionmailer (2.3.14)
Using activerecord (2.3.14)
Using activeresource (2.3.14)
Using acts_as_silent_list (1.2.0)
Using coderay (0.9.8)
Using columnize (0.3.6)
Using edavis10-object_daddy (0.4.3)
Using fastercsv (1.5.4)
Using i18n (0.4.2)
Using json (1.6.3)
Using rbx-require-relative (0.0.5)
Using linecache (0.46)
Using metaclass (0.0.1)
Using mocha (0.10.0)
Using mysql (2.8.1)
Using mysql2 (0.2.18)
Using net-ldap (0.2.2)
Using pdf-reader (0.10.1)
Using pdf-inspector (1.0.1)
Using prawn-core (0.8.4)
Using prawn-layout (0.8.4)
Using prawn-security (0.8.4)
Using prawn (0.8.4)
Using rails (2.3.14)
Using rdoc (3.12)
Using ruby-debug-base (0.10.4)
Using ruby-debug (0.10.4)
Using ruby-openid (2.1.8)
Using rubytree (0.5.3)
Using shoulda (2.10.3)
Using bundler (1.0.17)

System is Debian Squeeze with Apache2 as frontend.

I had redmine_backlogs previous installed and uninstalled and executed the following line, for success:

script/console

>>> ActiveRecord::Base.connection.execute "UPDATE schema_migrations SET version = REPLACE(version, 'redmine_backlogs', 'chiliproject_backlogs');"

But after chiliproject_backlogs was installed, I don't be able to configure backlogs:

(bypass Apache with script/server -e production)

================== cut =====================
NoMethodError in Settings#plugin

Showing vendor/plugins/chiliproject_backlogs/app/views/shared/_settings.html.erb where line #47 raised:

undefined method `tracker' for Rake::Task:Class

Extracted source (around line #47):

44:

45: <%= label_tag("settings[task_tracker]", l(:backlogs_task_tracker)) %>
46: <%= select_tag("settings[task_tracker]",
47: options_from_collection_for_select(Tracker.all, :id, :name, Task.tracker)) %>
48:

49:

50: <%= label_tag("settings[points_burn_direction]", l(:backlogs_points_burn_direction)) %>

Trace of template inclusion: app/views/settings/plugin.rhtml

RAILS_ROOT: /var/www/chili-2.5.0
Application Trace | Framework Trace | Full Trace

/var/www/chili-2.5.0/vendor/plugins/chiliproject_backlogs/app/views/shared/_settings.html.erb:47:in `_run_erb_vendor47plugins47chiliproject_backlogs47app47views47shared47_settings46html46erb_locals_object_settings'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:306:in `with_template'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:30:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable_partial.rb:20:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:30:in `benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable_partial.rb:19:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/template.rb:205:in `render_template'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable_partial.rb:44:in `render_partial'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/partials.rb:184:in `render_partial'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:267:in `render'
/var/www/chili-2.5.0/app/views/settings/plugin.rhtml:6:in `_run_rhtml_app47views47settings47plugin46rhtml'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/capture_helper.rb:36:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/capture_helper.rb:36:in `capture'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/capture_helper.rb:129:in `with_output_buffer'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/capture_helper.rb:36:in `capture'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_tag_helper.rb:469:in `form_tag_in_block'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_tag_helper.rb:39:in `form_tag'
/var/www/chili-2.5.0/app/views/settings/plugin.rhtml:4:in `_run_rhtml_app47views47settings47plugin46rhtml'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:306:in `with_template'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:30:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/template.rb:205:in `render_template'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:265:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:348:in `_render_with_layout'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_view/base.rb:262:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1252:in `render_for_file'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:936:in `render_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render'
/var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:51:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1328:in `default_render'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1334:in `perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/var/lib/gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'

Request

Parameters:

{"id"=>"backlogs"}

Show session dump
Response

Headers:

{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}
================= cut ========================

script/console:

RAILS_ENV=production script/console
Loading production environment (Rails 2.3.14)
>>
?> Task
WARNING: Deprecated reference to top-level constant 'Task' found at: /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2470:in `rakefile_location'
Use --classic-namespace on rake command
or 'require "rake/classic_namespace"' in Rakefile

any hints?