vim-bundler icon indicating copy to clipboard operation
vim-bundler copied to clipboard

Recent changes does not return all gems anymore

Open khelben opened this issue 12 years ago • 8 comments

I've found out that your latest changes introduced a bug where calling e.g.

:Bedit rails

returned a message saying it couldnot find the gem 'rails'

When I reverted to commit ecfb0a27a6ad125d2057cb162e9b01ac6b5e9e84 I can succesfully do the same command.

Steps to reproduce:

  • just generate a simple rails app
rails new bundler_test
  • fire up vi with the vim-bundler plugin enabled
  • Try to open the rails gem
:Bedit rails

When I execute the following in vim

:echo bundler#buffer().project().gems()

the following is returned when I use vim-bundler HEAD

{'action_mailer': '/Users/cvp/.rbenv/versions/fast-require/lib/ruby/gems/1.9.1/gems/actionmailer-3.2.9'}

You can find my .vim dir here: https://github.com/khelben/vimfiles It is just pathogen controlled set of vim plugins

khelben avatar Nov 25 '12 11:11 khelben

Thanks. This was pretty sloppy on my part.

tpope avatar Nov 25 '12 14:11 tpope

awesome!

thx for the quick fix.

khelben avatar Nov 25 '12 17:11 khelben

After upgrading to 2.0, I've got pg and nokogiri red highlighted in my Gemfile.lock. :Bopen pg reports that gem is in a bundle but wasn't installed. However $bundle show pg returns a path to installed gem.

What debug information should I provide?

nashbridges avatar Apr 09 '13 14:04 nashbridges

What is the path to the installed gem, and how does it noticably differ from gems it was able to find?

tpope avatar Apr 09 '13 15:04 tpope

damn, I had to figure it out myself. I believe the problem is in win32 version of gems:

...
nokogiri (1.5.2)
nokogiri (1.5.2-x86-mingw32)
...
pg (0.14.1)
pg (0.14.1-x86-mingw32)

nashbridges avatar Apr 09 '13 15:04 nashbridges

Sorry you had to do your own debugging. :violin:

Digging around a bit, I found one occurrence of this on Linux as well. Latest should fix it.

tpope avatar Apr 10 '13 19:04 tpope

Ah, I had to be more specific, I'm not a MS user, but we still have one in our team. Seems the last commit didn't change anything, I've tested it on Mac OS 10.7, Ubuntu 12.04. But! At least I could narrow this problem down, see https://gist.github.com/nashbridges/5357964. Both pgs are red, and :Bopen pg is failing.

nashbridges avatar Apr 10 '13 20:04 nashbridges

Assuming this is still reproducible, a path to the installed gem would be helpful in resolving.

tpope avatar Mar 19 '14 02:03 tpope