-
Notifications
You must be signed in to change notification settings - Fork 23
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
Comments
@lorio Looks like you have an old version of the plugin. Try pulling from |
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; [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. |
@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. |
@lorio I'm closing this for now. Please continue this thread if you manage to dig deeper. |
I was having a similar issue, but I think it was due to a manual install of this (similar) plugin fixed by doing this: and now I observe that there is no plugin in that rm'd dir and I also don't get that error any more |
@ak47 If you would like to help out, maybe run |
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 method
refresh' 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 method
refresh' 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:in
open'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:in
block (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:in
block 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:in
open'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
The text was updated successfully, but these errors were encountered: