Project

General

Profile

Actions

Defect #2361

closed

script/generate fails with undefined method `empty?'

Added by Jeffrey Hulten almost 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-12-19
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Running script/generate, either without parameters or with redmine_plugin generates the following error:

host:redmine me$ script/generate 
undefined method `empty?' for /_generator$/:Regexp
host:redmine me$ script/generate redmine_plugin foo
undefined method `empty?' for /_generator$/:Regexp
Actions #1

Updated by Jeffrey Hulten almost 16 years ago

Here is the tail end of ruby -d script/generate:

/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:6: warning: redefine included
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:22: warning: method redefined; discarding old mandatory_options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:30: warning: method redefined; discarding old default_options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:42: warning: method redefined; discarding old full_options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:49: warning: method redefined; discarding old options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:56: warning: method redefined; discarding old mandatory_options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:61: warning: method redefined; discarding old default_options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:70: warning: method redefined; discarding old full_options
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:81: warning: method redefined; discarding old parse!
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:98: warning: method redefined; discarding old usage
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:102: warning: method redefined; discarding old usage_message
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:107: warning: method redefined; discarding old banner
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:115: warning: method redefined; discarding old add_options!
/Library/Ruby/Gems/1.8/gems/rails-2.1.2/lib/rails_generator/scripts/../options.rb:119: warning: method redefined; discarding old add_general_options!
Exception `NoMethodError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:213 - undefined method `empty?' for /_generator$/:Regexp
undefined method `empty?' for /_generator$/:Regexp

Actions #2

Updated by Jeffrey Hulten almost 16 years ago

My script/about:

About your application's environment
Ruby version              1.8.6 (universal-darwin9.0)
RubyGems version          1.0.1
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Application root          /Users/me/Projects/redmine
Environment               development
Database adapter          sqlite3
Database schema version   101
Actions #3

Updated by Jeffrey Hulten almost 16 years ago

  • Status changed from New to Resolved

This appears to be an issue with RubyGems version 1.0.1. Upgrading to 1.3.1 fixed the issue. Version requirement should be declared in the documentation.

Actions #4

Updated by Mak Babu almost 16 years ago

I can confirm the upgradation solved the problem in hand. Not sure whether it would impact any other parts of the application

Actions #5

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from Resolved to Closed

Requirement added in the wiki. Thanks for pointing this out.

Actions

Also available in: Atom PDF