You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ruby-build and when I delete a ruby version, ruby_profiles.yml gets out of sync and will error when running rbenv rehash:
c@c:~/project$ rbenv rehash
/home/c/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:343:in `ensure_capable_ruby': undefined method `ruby_version' for nil:NilClass (NoMethodError)
from /home/c/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:342:in `select'
from /home/c/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:342:in `ensure_capable_ruby'
from /home/c/.rbenv/plugins/bundler/etc/rbenv.d/bundler/rehash.rb:396
If you just compare against the mtime of the versions directory at RbenvBundler.build_ruby_profiles that should detect if a folder/ruby version has been added/deleted.
The text was updated successfully, but these errors were encountered:
I'm having trouble reproducing your bug. From my understanding, the only way to get a NilClass problem is for the ruby_profile_map Hash to have a Ruby version key and a nil value. How does the plugin generate such a ruby_profiles.yml file in the first place? Would you mind sharing yours?
Thanks for making those changes, but I've already deleted the broken ruby_profiles.yml file and I can't reproduce this issue starting from a fresh install. So, I can't say if this fixes the issue for sure or not.
If someone else has this issue and can reproduce it, then it might be worth merging that branch.
I am using ruby-build and when I delete a ruby version, ruby_profiles.yml gets out of sync and will error when running
rbenv rehash
:If you just compare against the mtime of the versions directory at RbenvBundler.build_ruby_profiles that should detect if a folder/ruby version has been added/deleted.
The text was updated successfully, but these errors were encountered: