Open retrofreak83 opened 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.
it's listed here: http://www.redmine.org/projects/redmine/wiki/Plugin_List#Tagging-plugin
Can't help you with that. Installation problems for rails_sql_views itself you'll have to discuss with the people building it.
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.
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.
Don't think so. Can you run the rake task with --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
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:in
each'
/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:in
execute'
/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:in
execute'
/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:in
synchronize'
/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:in
invoke'
/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:in
top_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:in
top_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:in
top_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:in
standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/bin/rake:31
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?
mysql> select id from issues where project_id is null; Empty set (0.00 sec)
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?
I cannot find a reconfigure.rb file anywhere in the Redmine directory structure.
reconfigure.rake, sorry
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:in
each'
/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:in
execute'
/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:in
execute'
/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:in
synchronize'
/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:in
invoke'
/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:in
top_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:in
top_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:in
top_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:in
standard_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!
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.