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 with "rbenv rehash" #43

Closed
lorio opened this issue Jul 5, 2014 · 6 comments
Closed

error with "rbenv rehash" #43

lorio opened this issue Jul 5, 2014 · 6 comments

Comments

@lorio
Copy link

lorio commented Jul 5, 2014

Note: As of version 0.96, you will no longer need to type rbenv rehash after bundle install or bundle update, as the plugin will automagically rehash for you. Still, it's good practice to not rely on magic and type rbenv rehash upon installation of gems with executables.

But when I did type this, as I always have in past, I get this:

/Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:93:in gemspecs': undefined methodrefresh' for #Bundler::RubygemsIntegration::Future:0x007f979b025550 (NoMethodError)

so should I ignore this and just stop typing rbenv rehash? Since you say above its not necessary but type it anyway, this is confusing.

/Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:93:in gemspecs': undefined methodrefresh' for #Bundler::RubygemsIntegration::Future:0x007f979b025550 (NoMethodError)
from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:206:in block (3 levels) in rehash' from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:205:inopen'
from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:205:in open' from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:205:inblock (2 levels) in rehash'
from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:188:in each' from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:188:inblock in rehash'
from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:187:in open' from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:187:inopen'
from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:187:in rehash' from /Users/lori/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:464:in

'

@carsomyr
Copy link
Owner

carsomyr commented Jul 5, 2014

@lorio Looks like you have an old version of the plugin. Try pulling from master? I am referring to this change specifically.

@lorio
Copy link
Author

lorio commented Jul 5, 2014

Thanks. Turned rbenv bundler off and now do not get the error. Able to rehash. Was not able to see what version of the plugin I have.

/Users/lori/.rbenv/plugins/bundler/bin/rbenv-bundler ; exit;
exit;9 PM ~ $ /Users/lori/.rbenv/plugins/bundler/bin/rbenv-bundler ;
usage: rbenv bundler [on | off]
logout

[Process completed]

I could reinstall, but was afraid I'd then have another dependency conflict in middleman project using Ruby 2.0.0. And I thought, if I'm used to bundle exec anyway, why do I need the plugin?? Will try again on a new project.

@carsomyr
Copy link
Owner

carsomyr commented Jul 7, 2014

@lorio I guess that works, but would you mind trying what I suggested? My best guess is that your plugin code is out of date.

@carsomyr
Copy link
Owner

carsomyr commented Jul 8, 2014

@lorio I'm closing this for now. Please continue this thread if you manage to dig deeper.

@carsomyr carsomyr closed this as completed Jul 8, 2014
@ak47
Copy link

ak47 commented Oct 31, 2014

I was having a similar issue, but I think it was due to a manual install of this (similar) plugin

fixed by doing this:
1 brew uninstall rbenv-bundler
2 rm -rf /Users/me/.rbenv/plugins/bundler
3 brew install rbenv-bundler

and now I observe that there is no plugin in that rm'd dir

and I also don't get that error any more

@carsomyr
Copy link
Owner

@ak47 If you would like to help out, maybe run brew uninstall rbenv-bundler, clone rbenv-bundler into ~/.rbenv/plugins/bundler, and provide a backtrace of the problem?

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

3 participants