Error opening .ruby-version file when using Gdiff in vim-fugitive #131

dpetersen opened this Issue Feb 25, 2013 · 2 comments


None yet

3 participants

I don't know if this belongs here on or vim-fugitive, so please let me know if I should move it.

I updated all of my plugins this morning, which left me at 0103538 on vim-fugitive and c6451c on vim-ruby. When I run :Gdiff on a modified file, I get the following error:

Error detected while processing /home/vagrant/.homesick/repos/dpetersen/vimfiles/home/.vim/bundle_storage/vim-ruby/ftplugin/ruby.vim:
line  104:
E484: Can't open file fugitive:///foundation-api/.git//0/spec/features/.ruby-version

I was trying to diff a file that was in my spec/features directory. There is a .ruby-version in the root of my project.

Resetting back to 3a4093 on vim-ruby (the commit immediately before Experimental support for .ruby-version) makes this issue go away.

Please let me know if I'm screwing something up, if I've put this issue in the wrong place, or if you want me to try a fix. If I wasn't a complete idiot at vimscript, I'd try and fix this myself. But this isn't exactly beginner level vimscript.

@tpope tpope closed this in 423286e Feb 25, 2013
tpope commented Feb 25, 2013

Discovered this last night. Just pushed a fix. Thanks!

Worked like a charm. Thanks!

@dkearns dkearns added the ftplugin label Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment