Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Domon/7cd5a70b4f19e3493f87e60d81a38d99 to your computer and use it in GitHub Desktop.
Save Domon/7cd5a70b4f19e3493f87e60d81a38d99 to your computer and use it in GitHub Desktop.
Work around MacVim r179 (Vim 9.1.0)'s incompatibility issue with Ruby 3.3 by using Ruby 3.2 instead

Workaround for MacVim r179 (Vim 9.1.0)'s incompatibility issue with Ruby 3.3

Patch

A patch is available on 3 Jan 2024: Commit: patch 9.1.0003: Cannot build against Ruby 33 dynamically.

However, it looks like the latest MacVim release (r179 on 5 Jan 2024) does not include that patch.

Workaround: Set up MacVim and Command-T to use Ruby 3.2

Install Ruby 3.2 with Homebrew (keg-only):

brew install [email protected]

Set up Vim to use Ruby 3.2:

set rubydll=/opt/homebrew/Cellar/ruby@3.2/3.2.3/lib/libruby.3.2.dylib

Compile Command-T with Ruby 3.2:

cd bundle/command-t/ruby/command-t/ext/command-t
make clean
/opt/homebrew/opt/[email protected]/bin/ruby extconf.rb && make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment