You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having issues running command-t, with errors indicating incompatible ruby versions between vim and ruby even though I only have one version of ruby installed. I noticed that the ~/.vim/bundle/command-t/ruby/command-t/lib/command-t/metadata/fallback.rb file contained: EXPECTED_RUBY_VERSION = '[unknown]' EXPECTED_RUBY_PATCHLEVEL = '[unknown]' UNKNOWN = true
even after running ruby extconf.rb.
Looked to me like it was not getting overwritten, so I used ruby -v to get the version number and edited the file myself: EXPECTED_RUBY_VERSION = "2.7.0" EXPECTED_RUBY_PATCHLEVEL = 0 UNKNOWN = false
After this, I ran make and and, in vim, :PluginUpdate. This fixed the issue, and I was able to use command-t.
Note, I reran ruby extconf.rb after manually editing the file and the variables were not changed back to unkown, which is why I think the file may just not be getting written.
I am creating the issue in case others run into a similar ruby version problem. Not sure if this is something with the command-t code or just something weird in my system/setup.
My system setup:
OS: Ubuntu 20.04 LTS
vim: Vi IMproved 8.2, included patches: 1-1216
ruby: 2.7.0p0
The text was updated successfully, but these errors were encountered:
Given the big rewrite for v6.0.x, I'm closing all older issues as there is unlikely to be anything significant happening on the 5-x-devel branch from here on1. Feedback issue for 6.0.x is here:
I was having issues running command-t, with errors indicating incompatible ruby versions between vim and ruby even though I only have one version of ruby installed. I noticed that the ~/.vim/bundle/command-t/ruby/command-t/lib/command-t/metadata/fallback.rb file contained:
EXPECTED_RUBY_VERSION = '[unknown]'
EXPECTED_RUBY_PATCHLEVEL = '[unknown]'
UNKNOWN = true
even after running
ruby extconf.rb
.Looked to me like it was not getting overwritten, so I used
ruby -v
to get the version number and edited the file myself:EXPECTED_RUBY_VERSION = "2.7.0"
EXPECTED_RUBY_PATCHLEVEL = 0
UNKNOWN = false
After this, I ran
make
and and, in vim,:PluginUpdate
. This fixed the issue, and I was able to use command-t.Note, I reran
ruby extconf.rb
after manually editing the file and the variables were not changed back to unkown, which is why I think the file may just not be getting written.I am creating the issue in case others run into a similar ruby version problem. Not sure if this is something with the command-t code or just something weird in my system/setup.
My system setup:
OS: Ubuntu 20.04 LTS
vim: Vi IMproved 8.2, included patches: 1-1216
ruby: 2.7.0p0
The text was updated successfully, but these errors were encountered: