hdgarrood / redmine_release_notes

A plugin to add release notes to Redmine
GNU General Public License v3.0
73 stars 47 forks source link

Load the default formats #95

Closed tunguskar closed 11 years ago

tunguskar commented 11 years ago

Hi there,

I have a problem and do not know how to go further. First I did install redmin_release_notes. An I see the plugin in my redmine settings.

When I'm following the instructions:

Load the default formats (optional, recommended). If you've been using earlier versions, this will read your formats.yml and put them into the database (which is what you want).

rake redmine:plugins:release_notes:load_default_formats

I get an error in my console:

C:\redmine-2.3.1-3\apps\redmine\htdocs>rake redmine:plugins:release_notes:load_d efault_formats --trace rake aborted! cannot load such file -- bundler/setup C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require ' C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire ' C:/redmine-2.3.1-3/apps/redmine/htdocs/config/boot.rb:6:in <top (required)>' C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire ' C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require ' C:/redmine-2.3.1-3/apps/redmine/htdocs/config/application.rb:1:in<top (require d)>' C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require ' C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire ' C:/redmine-2.3.1-3/apps/redmine/htdocs/Rakefile:5:in <top (required)>' C:/Ruby200-x64/lib/ruby/2.0.0/rake/rake_module.rb:25:inload' C:/Ruby200-x64/lib/ruby/2.0.0/rake/rake_module.rb:25:in load_rakefile' C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:604:inraw_load_rakefile' C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:89:in `block in load_rakefile'

C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:160:in standard_exception_han dling' C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:88:inload_rakefile' C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:72:in block in run' C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:160:instandard_exception_han dling' C:/Ruby200-x64/lib/ruby/2.0.0/rake/application.rb:70:in run' C:/Ruby200-x64/bin/rake:37:in

'

C:\redmine-2.3.1-3\apps\redmine\htdocs>

do anyone has hint for me?

tunguskar commented 11 years ago

I read Issue number #31 and there is not such a file called config.yml in plugins/redmine_release_notes/config/

hdgarrood commented 11 years ago

The plugin no longer uses config.yml for configuration, so it's not to do with that.

First: try bundle exec rake ... instead of just rake ...

Second: the line: cannot load such file: bundler/setup might mean that you don't have the correct version of Bundler installed. What happens when you do gem list --local?

Also, make sure that redmine is using the same ruby as the one that appears first in your PATH.

tunguskar commented 11 years ago

Hi,

When I'm using bundle exec... the console says that it doesn't know "bundle"

gem list --local gives:

* LOCAL GEMS *

bigdecimal (1.2.0) io-console (0.4.2) json (1.7.7) minitest (4.3.2) psych (2.0.0) rake (0.9.6) rdoc (4.0.0) test-unit (2.0.0.0)

I just installed one version of ruby

hdgarrood commented 11 years ago

You need to install bundler. Reread the installation instructions:

http://www.redmine.org/projects/redmine/wiki/RedmineInstall

You've missed step 4.