ZoroXing / r-labs

Automatically exported from code.google.com/p/r-labs
0 stars 0 forks source link

Error on code review #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
plugin not worked on new redmine version.

redmine version: svn http://redmine.rubyforge.org/svn/trunk #3916
code_review version: svn 
http://r-labs.googlecode.com/svn/trunk/plugins/redmine_code_review  #553

ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]

gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5, 2.3.3)
activeresource (2.3.5)
activesupport (2.3.5, 2.3.3)
columnize (0.3.1)
edavis10-object_daddy (0.4.3)
holidays (0.9.3)
json_pure (1.4.3)
mocha (0.9.8)
nofxx-object_daddy (0.4.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
ruby-openid (2.1.7)
rubytree (0.7.0)
shoulda (2.11.0)
thoughtbot-shoulda (2.10.2)

OS Version: version ubuntu 10.04

uname -a
Linux user43-desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 
2010 i686 GNU/Linux

1. create a task for revision #9702
2. open diff for revision #9702

problem url:
http://10.10.1.6:3000/projects/p8/repository/revisions/9702/diff/branches/dorabo
tkiJune2010etap2/application/controllers/SapeController.php

error info:
NoMethodError in Code_review#update_diff_view
Showing 
vendor/plugins/redmine_code_review/app/views/code_review/_update_diff_view.html.
erb where line #34 raised:

undefined method `code_review_assignments' for #<Change:0xb5e03da4>
Extracted source (around line #34):

31:   <%
32:   change_id = ''
33:   change_id = @change.id if @change
34:   assignments = @change.code_review_assignments if @change
35:   attachment_id = @attachment.id if @attachment
36:   assignments = @attachment.code_review_assignments if @attachment
37:   -%>
RAILS_ROOT: /usr/share/redmine

Application Trace | Framework Trace | Full Trace
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/attribute_methods.rb
:260:in `method_missing'
/usr/share/redmine/vendor/plugins/redmine_code_review/app/views/code_review/_upd
ate_diff_view.html.erb:34:in 
`_run_erb_vendor47plugins47redmine_code_review47app47views47code_review47_update
_diff_view46html46erb_locals_object_update_diff_view'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:34:in 
`send'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:34:in 
`render'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:306:in 
`with_template'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:30:in 
`render'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable_partial.rb:20
:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:26
:in `benchmark'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark
.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark
.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:26
:in `benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable_partial.rb:19
:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/template.rb:205:in 
`render_template'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable_partial.rb:44
:in `render_partial'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/partials.rb:184:in 
`render_partial'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:267:in `render'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:973:in 
`render_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:51
:in `render'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark
.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark
.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:51
:in `render'
/usr/share/redmine/vendor/plugins/redmine_code_review/app/controllers/code_revie
w_controller.rb:208:in `update_diff_view'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in 
`send'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in 
`perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in 
`call_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in 
`perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68
:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark
.rb:17:in `ms'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark
.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68
:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in 
`perform_action_without_flash'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in 
`perform_action'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in 
`send'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in 
`process_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in 
`process'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:in 
`process'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in 
`call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.
rb:437:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:i
n `dispatch'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:
in `_call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
 `call'
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
 `call'
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/
abstract/query_cache.rb:34:in `cache'
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in 
`cache'
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in
 `call'
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/
abstract/connection_pool.rb:361:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb
:25:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:1
5:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_sto
re.rb:93:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in 
`call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:
in `call'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in 
`run'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:
in `call'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/var/lib/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in `run'
/var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
Request

Parameters:

{"rev"=>"9702",
 "rev_to"=>"",
 "id"=>"p8",
 "review_id"=>"",
 "path"=>"/branches/dorabotkiJune2010etap2/application/controllers/SapeController.php",
 "action_type"=>"diff"}
Show session dump

Response

Headers:

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

Original issue reported on code.google.com by nicolay.punin on 6 Aug 2010 at 5:16

GoogleCodeExporter commented 8 years ago
I think your Redmine runs on development mode.
My plugin works only on production mode.

Original comment by haru.ii.a9i1e on 11 Aug 2010 at 1:21

GoogleCodeExporter commented 8 years ago
ok.  
thanks 

Original comment by nicolay.punin on 12 Aug 2010 at 9:59

GoogleCodeExporter commented 8 years ago

Original comment by haru.ii.a9i1e on 13 Aug 2010 at 1:28