danchoi / ri.vim

browse ri documentation from Vim
http://github.com/danchoi/ri.vim
MIT License
114 stars 15 forks source link

rbenv issues with ruby 2.0.0++ #14

Closed wikimatze closed 11 years ago

wikimatze commented 11 years ago

Hi Daniel,

I really enjoy your plugin and it works great so far. When I'm using rbenv for managing different versions:

wikimatze@wikimatze: ~  rbenv global
1.9.3-p448  2.0.0-p195  2.0.0-p247  system

When I'm switching to ruby 2.0.0+ with:

wikimatze@wikimatze: ~  rbenv global 2.0.0-p195 
wikimatze@wikimatze: ~  ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [i686-linux]

Turning up vim and use ,r type in Arr<Tab> I get:

Search Ruby documentation (press tab to autocomplete):¬
¬
/home/wikimatze/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'rdoc' (~>
  from /home/wikimatze/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'                     
  from /home/wikimatze/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'                 
  from /home/wikimatze/Dropbox/vim-settings/plugins/ri.vim/plugin/ri_vim.rb:5:in `<main>'          

Any clue what's causing the problem? Maybe ruby or some internals of your plugin? If you need any additional parameters just le me know.

Cheers from Berlin,

Matthias

rlisowski commented 11 years ago

You have newer rdoc installed. Ri.vim requires ~>3.8. Install older rdoc or patch ri.vim with my pull request #13.

danchoi commented 11 years ago

Thank you for the pull reqeust @korin. Merged.

wikimatze commented 11 years ago

What a fast response, I will try it out and let you know if everything is working as expected.