Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unable to load plugin heroku_herocutter: undefined method list' for class Heroku::Command::Plugins' #4

Closed
bhellman1 opened this issue May 17, 2011 · 9 comments

Comments

@bhellman1
Copy link

Is this gem still supported? Just upgraded to the new heroko gem, and tried to install herocutter:

$ heroku plugins:install git://github.com/hone/heroku_herocutter.git

ERROR: Unable to load plugin heroku_herocutter: undefined method list' for classHeroku::Command::Plugins'

/Users/xxxxxx/.heroku/plugins/heroku_herocutter/lib/heroku_herocutter.rb:26:in install': undefined methodfetch_git_uri' for #<Heroku::Command::Plugins:0x102258818 @options={}, @Args=[]> (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/lib/heroku/command.rb:117:in send' from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/lib/heroku/command.rb:117:inrun'
from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/bin/heroku:14
from /usr/bin/heroku:19:in `load'
from /usr/bin/heroku:19

@jwang
Copy link

jwang commented May 19, 2011

I see the problem. heroku plugins:list is now heroku plugins

This needs to be updated to reflect that.

@jwang
Copy link

jwang commented May 19, 2011

I resolved this in my fork. Pull request #6 should resolve it in mainline.

@bhellman1
Copy link
Author

Thanks jwang

@bhellman1
Copy link
Author

Just gave it a try, no luck... Am I installing it correctly?

$ heroku plugins:install git://github.com/jwang/heroku_herocutter.git
ERROR: Unable to load plugin heroku_herocutter: undefined method list' for classHeroku::Command::Plugins'

/Users/bhellman/.heroku/plugins/heroku_herocutter/lib/heroku_herocutter.rb:26:in install': undefined methodfetch_git_uri' for #<Heroku::Command::Plugins:0x102492390 @options={}, @Args=[]> (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/lib/heroku/command.rb:117:in send' from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/lib/heroku/command.rb:117:inrun'
from /Library/Ruby/Gems/1.8/gems/heroku-2.1.4/bin/heroku:14
from /usr/bin/heroku:19:in `load'
from /usr/bin/heroku:19

@jwang
Copy link

jwang commented May 24, 2011

Hmm. I just copy and pasted your line:
heroku plugins:install git://github.com/jwang/heroku_herocutter.git and I got this output:

heroku plugins:install git://github.com/jwang/heroku_herocutter.git
heroku_herocutter installed

using ruby-1.8.7-p174. are you using rvm? I know that fetch_git_uri isn't working and I would much rather get that error that you're getting for debugging purposes, but mine's installing and coming up blank.

I'm using rvm and doing a fresh install of the heroku gem via a gemset.
rvm gemset create heroku
rvm use 1.8.7-p174@heroku

in case you're wondering:
gem list
*** LOCAL GEMS ***

configuration (1.2.0)
heroku (2.1.4)
launchy (0.4.0)
mime-types (1.16)
rake (0.9.0)
rest-client (1.6.1)
term-ansicolor (1.0.5)

@bhellman1
Copy link
Author

Strange, no I'm not using RVM.

@kylejginavan
Copy link

I had this same issue using RVM and ruby 1.9. I updated my heroku gem then tried to update my heroku cutter plugin. I was able to resolve with an uninstall then a clean install.

Commands Issued:

  1. heroku plugins:uninstall heroku_herocutter
  2. heroku plugins:install git://github.com/hone/heroku_herocutter.git

@bhellman1
Copy link
Author

Thank you!

@studgeek
Copy link

I'm getting this problem with the latest heroku and ruby on cygwin...

$ heroku plugins:install git://github.com/hone/heroku_herocutter.git
 !    Could not initialize heroku_herocutter: undefined method 'list' for class 'Heroku::Command::Plugins'
$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-cygwin]
$ gem list

*** LOCAL GEMS ***

addressable (2.2.6)
heroku (2.21.3)
launchy (2.0.5)
mime-types (1.17.2)
netrc (0.7.1)
rest-client (1.6.7)
rubygems-update (1.8.17)
rubyzip (0.9.4)
term-ansicolor (1.0.7)

The jwang git://github.com/jwang/heroku_herocutter.git (in #6 as well) worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants