I’m using Vim 7.3 on Windows 7. When I try to open a .rb File i get this error.
Vim(ruby):NoMethodError: undefined method `specifications’ for “C:/Ruby192/lib/ruby/gems/1.9.1”:String
The file opens after I press Enter, but with no syntax highlighting. I have the following vim plugins: rails.vim surround.vim nerd_tree.vim nerdcommenter.vim snipmates.vim
I’m using Vim 7.3 on Windows 7. When I try to open a .rb
Share
I’m not sure if the problem is with one of the vim plugins. I just installed all the plugins you mentioned in win7 and I have no such problem. However I had a similar error reproduced when I had rubygems 1.8.5, and I tried to run a rake task. Here is a link to a forum that talks about that same rubygems error link
To find out your version, run
The solution for us was to downgrade rubygems
EDIT:
@Tyler-long is telling me, that Ruby Gems fixed the problem, and an upgrade also fixes the bug. Then you can just do: