Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2796 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

NoMethodError on ./script/plugin discover

Reported by: t.lucas@toolmantim.com Assigned to: technoweenie@gmail.com
Priority: normal Milestone:
Component: Railties Version: 0.14.3
Severity: normal Keywords: plugins
Cc:

Description

tims-ibook:~/Sites/bennu/trunk tlucas$ ./script/plugin discover Add http://svn.aviditybytes.com/rails/plugins/? [Y/n] Add http://svn.protocool.com/rails/plugins/? [Y/n] Add http://lesscode.org/svn/rtomayko/rails/plugins/? [Y/n] Add http://dev.rubyonrails.org/svn/rails/plugins/? [Y/n] Add http://svn.assembla.com/svn/appshare/breakout/vendor/plugins/? [Y/n] Add https://opensvn.csie.org/rails_engines/plugins/? [Y/n] ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:627:in each': undefined method []' for nil:NilClass (NoMethodError)

from (eval):3:in `send' from (eval):3:in `each' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:627:in `scrape' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:601:in `parse!' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:600:in `each' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:600:in `parse!' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:411:in `parse!' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:427:in `parse!' from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:823 from ./script/plugin:3:in `require' from ./script/plugin:3

Attachments

plugin.rb.patch (0.8 kB) - added by anonymous on 06/15/06 15:33:54.
patch to plugin.rb

Change History

11/09/05 00:29:06 changed by anonymous

Woops.

tims-ibook:~/Sites/bennu/trunk tlucas$ ./script/plugin discover
Add http://svn.aviditybytes.com/rails/plugins/? [Y/n] 
Add http://svn.protocool.com/rails/plugins/? [Y/n] 
Add http://lesscode.org/svn/rtomayko/rails/plugins/? [Y/n] 
Add http://dev.rubyonrails.org/svn/rails/plugins/? [Y/n] 
Add http://svn.assembla.com/svn/appshare/breakout/vendor/plugins/? [Y/n] 
Add https://opensvn.csie.org/rails_engines/plugins/? [Y/n] 
./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:627:in `each': undefined method `[]' for nil:NilClass (NoMethodError)
        from (eval):3:in `__send__'
        from (eval):3:in `each'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:627:in `scrape'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:601:in `parse!'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:600:in `each'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:600:in `parse!'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:411:in `parse!'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:427:in `parse!'
        from ./script/../config/../vendor/rails/railties/lib/commands/plugin.rb:823
        from ./script/plugin:3:in `require'
        from ./script/plugin:3

11/09/05 08:15:36 changed by anonymous

  • owner changed from David to rtomayko@gmail.com.

11/10/05 13:32:06 changed by rtomayko@gmail.com

I'm not able to recreate this. Are you still seeing the problem? I wonder if maybe there was a weird link on the wiki or something. At any rate, I'm not able to figure out what the problem may have been from the trace so if you can provide any more info that would be great.

11/10/05 19:23:12 changed by t.lucas@toolmantim.com

  • status changed from new to closed.
  • resolution set to fixed.

Must have been an error in the wiki code somewhere, as the problem has no gone.

06/15/06 15:33:54 changed by anonymous

  • attachment plugin.rb.patch added.

patch to plugin.rb

06/15/06 15:39:11 changed by stillflame@freegeek.org

  • status changed from closed to reopened.
  • resolution deleted.

i was able to reproduce this bug on fresh 1.1.2 rails installs on two machines, one debian sarge, another gentoo. the fix attached (plugin.rb.patch) doesn't really address why the problem is happening, nor could i figure it out except that there must have been some malformed data that wasn't matching the regex, but the patch will successfully ignore such a situation.

06/15/06 15:49:03 changed by rick

  • owner changed from rtomayko@gmail.com to technoweenie@gmail.com.
  • status changed from reopened to new.

Do you still get it after [4450]?

01/16/07 04:25:17 changed by davidjrice

Also: duplicate of #5588

05/23/07 03:34:59 changed by nik.wakelin

  • status changed from new to closed.
  • resolution set to fixed.

Closing as duplicate ticket #5588 is resolved