Restream / redmine_tagging

Add simple tagging support to Redmine Issues/Wiki pages
114 stars 50 forks source link

Is plugin compatible with Redmine 1.2.2? #27

Open retrofreak83 opened 12 years ago

retrofreak83 commented 12 years ago

Hello all,

I know that an Issue Tracking System isn't really the right place for asking thisquestion, but since there doesn't seem to be any other way for contacting the plugin's author, i chose this possibility.

I'm asking if the tagging-plugin compatible with Redmine 1.2.2? The Redmine-site says "Compatible with: Redmine 0.8.x & Redmine Trunk" so I'm not sure if it would run.

retorquere commented 12 years ago

Crap that's old, where did you find that? It's compatible with 1.2.x. 0.x won't work at all.

retrofreak83 commented 12 years ago

it's listed here: http://www.redmine.org/projects/redmine/wiki/Plugin_List#Tagging-plugin

retorquere commented 12 years ago

Can't help you with that. Installation problems for rails_sql_views itself you'll have to discuss with the people building it.

retorquere commented 12 years ago

I see a gem is available now. I've updated the installation instructions, you could try the regular gem install. And hey, feel free to improve on the weak documentation. I mainly wrote this plugin for myself, don't mind if anyone else uses it, but I am busy with a masters degree, I really don't have time to spend on documentation.

jay1973 commented 12 years ago

I followed the instructions for configuring the plugin to use inline tags. The following was produced after running the rake redmine:tagging:reconfigure command:

[root@hostname redmine]# rake redmine:tagging:reconfigure RAILS_ENV=production (in /redmine-1.2.1) Adding inline tags to issues rake aborted! undefined method `identifier' for nil:NilClass

Is this an error I can ignore?

Thanks for your help.

retorquere commented 12 years ago

Don't think so. Can you run the rake task with --trace?

jay1973 commented 12 years ago

(in /redmine-1.2.1) * Invoke redmine:tagging:reconfigure (first_time) * Invoke environment (first_time) * Execute environment * Execute redmine:tagging:reconfigure Adding inline tags to issues rake aborted! undefined method identifier' for nil:NilClass /redmine-1.2.1/vendor/plugins/redmine_tagging/lib/tasks/reconfigure.rake:10 /redmine-1.2.1/vendor/plugins/redmine_tagging/lib/tasks/reconfigure.rake:9:ineach' /redmine-1.2.1/vendor/plugins/redmine_tagging/lib/tasks/reconfigure.rake:9 /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/local/bin/rake:31

retorquere commented 12 years ago

That would seem to indicate you have issues that don't belong to a project. I don't think that's supposed to be allowed. What does

select id from issues where project_id is null;

yield?

jay1973 commented 12 years ago

mysql> select id from issues where project_id is null; Empty set (0.00 sec)

retorquere commented 12 years ago

If you replace line 10 in lib/tasks/reconfigure.rb with

      begin
        tag_context = issue.project.identifier.gsub('-', '_')
      rescue
        puts "#{issue.project.class}: #{issue.project.inspect}"
        next
      end

and re-run the rake task, what does it output?

jay1973 commented 12 years ago

I cannot find a reconfigure.rb file anywhere in the Redmine directory structure.

retorquere commented 12 years ago

reconfigure.rake, sorry

jay1973 commented 12 years ago

root@hostname tasks]# rake redmine:tagging:reconfigure RAILS_ENV=production --trace (in /redmine-1.2.1) * Invoke redmine:tagging:reconfigure (first_time) * Invoke environment (first_time) * Execute environment * Execute redmine:tagging:reconfigure Adding inline tags to issues NilClass: nil NilClass: nil NilClass: nil . . . NilClass: nil Adding inline tags to wikis rake aborted! undefined method identifier' for nil:NilClass /redmine-1.2.1/vendor/plugins/redmine_tagging/lib/tasks/reconfigure.rake:43 /redmine-1.2.1/vendor/plugins/redmine_tagging/lib/tasks/reconfigure.rake:42:ineach' /redmine-1.2.1/vendor/plugins/redmine_tagging/lib/tasks/reconfigure.rake:42 /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/local/bin/rake:31

Thanks for your help!