tpope / vim-bundler

bundler.vim: Lightweight support for Ruby's Bundler
https://www.vim.org/scripts/script.php?script_id=4280
403 stars 29 forks source link

Recent changes does not return all gems anymore #13

Open khelben opened 11 years ago

khelben commented 11 years ago

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:

rails new bundler_test
: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

tpope commented 11 years ago

Thanks. This was pretty sloppy on my part.

khelben commented 11 years ago

awesome!

thx for the quick fix.

nashbridges commented 11 years ago

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?

tpope commented 11 years ago

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

nashbridges commented 11 years ago

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)
tpope commented 11 years ago

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.

nashbridges commented 11 years ago

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.

tpope commented 10 years ago

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