Skip to content

Vim Ruby Version 2.3.7 but expected Version 2.5.3 #798

@kyletolle

Description

@kyletolle

I have used MacVim for years and absolutely love it. Thanks in advance for the help here.

I was excited for the new release because it fixed #257, which I reported in the past. However, after upgrading to MacVim 8.1.560 (152), I'm unable to use command-t in MacVim, because the expected version of Ruby doesn't match.

I get the following error:

Vim Ruby version: 2.3.7-p456
Expected version: 2.5.3-p105
vim ruby error

I've tried brew uninstalling macvim, setting rbenv global 2.5.3, and then brew installing macvim. This did not work.

I've seen #779 and tried setting rubydll like it recommends. In order to do so, I installed ruby through brew

brew install ruby

In order to get a libruby.2.5.dylib, which I've found in the following path:

/usr/local/Cellar/ruby/2.5.3_1/lib/libruby.2.5.dylib

And I set rubydll as follows at the top of my .vimrc:

set rubydll=/usr/local/Cellar/ruby/2.5.3_1/lib/libruby.2.5.dylib

But I keep getting the error that vim is using Ruby version 2.3.7.

Would you have any ideas as to why vim is not using Ruby version 2.5.3?

Here's some system information:
macOS: 10.14.1
Homebrew: 1.8.4
rbenv: 1.1.1
rbenv ruby: 2.5.3
system ruby: 2.3.7
brew ruby: 2.5.3

Thanks again for all your hard work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions