Project

General

Profile

pb on generatin a new redmine plugin

Added by shopoto shopoto about 14 years ago

Hi everyone!

i m on windows Xp
Ruby 187
Rails 2.3.5
Redmine 1.0.4.stable.4543 (MySQL)
Webrick

I'm trying to generate a new plugin as explained here:
http://www.redmine.org/wiki/1/Plugin_Tutorial

My problem is when I try to use the plugin genrator here is my error:


C:\redmine>ruby script/generate redmine_plugin redmine_my_plugin
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:386:in `read': Invalid argument - C:/redmine/config/environments/"production" .rb (Er
rno::EINVAL)
        from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:386:in `load_environment'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:379:in `load_environment'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:137:in `process'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
        from C:/redmine/config/environment.rb:20
        from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/generate.rb:1
        from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from script/generate:3

C:\redmine>

Have you ever encounter this problem?

Any help would be very appreciated!

Thx!


Replies (1)

RE: pb on generatin a new redmine plugin - Added by Felix Schäfer about 14 years ago

You seem to have set your RAILS_ENV to "production" (literally), the double quotes and the trailing whitespace shouldn't be there.

    (1-1/1)