Comments (6)
Incidentally, the failure mode here is quite horrible. If I try and use Command-T with Ruby 2.0, I get a forkbomb (ruby calling sh calling ruby, ad infinitum)
from command-t.
Command-T doesn't require 1.8 (or any specific version of Ruby). It will use whatever Ruby you compile it with (and that's generally based on what you have in your PATH
, potentially manipulated by tools such as rvm and rbenv, at build time). The added catch here is that you must compile it with the same version of Ruby that Vim links against, or it won't work.
I gather you're not on a clean install of 10.10, so you should just rebuild Command-T against the system Ruby:
cd path/to/your/command-t/install
cd ruby/command-t
ruby --version # verify you're using 2.0.0-p451
vim -c 'ruby puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"' # should print 2.0.0-p451
ruby extconf.rb
make clean
make
from command-t.
Hrm, the documentation referenced Ruby 1.8 multiple times and I thought that was the required version. But it appears that was a misinterpretation of the docs.
I already tried recompiling command-t itself. I'll try again though.
from command-t.
Yeah, the docs say this:
On OS X Snow Leopard, Lion and Mountain Lion, the system comes with Ruby 1.8.7
and all recent versions of MacVim (the 7.2 snapshots and 7.3) are linked
against it.
On OS X Mavericks, the default system ruby is 2.0, but MacVim continues to
link against 1.8.7, which is also present on the system at:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
I'll update the docs with info about Yosemite as well.
from command-t.
You're right, this time it worked without forkbombing. I'm not sure what went wrong last time, but forkbombing is the behavior I was seeing with Homebrew trying to run its Ruby 1.8-compatible code on Ruby 2.0, so that's what I thought was going on here.
I'll leave this open to cover updating the docs I guess.
from command-t.
Deal. 👍
from command-t.
Related Issues (20)
- Strange interaction with vim-gitgutter HOT 2
- [Question] why does RubyGems version of this package contains '../..' in the gem data path? HOT 4
- Error on Compiling Command-T Plugin (clang) HOT 17
- use `watch-project` rather than deprecated `watch` HOT 3
- Release plan for Lua rewrite HOT 1
- 🆕 Command-T 6.0.0 release — compendium issue HOT 42
- 💡 Ideas for improvements — compendium issue HOT 7
- Getting aborted when running CommnadT in lua version HOT 7
- Deal with filenames containing carriage returns 🤦
- Use Lua Version with Vim Plug HOT 1
- Can only type one letter in Popup window HOT 5
- Missing documentation about the initial usage HOT 2
- Backspace key closes Command-T and enters insert mode HOT 5
- Installation Instructions Unclear HOT 4
- bug: `invalid option '%-100' to 'format'` HOT 2
- Implement Lua equivalent of `g:CommandTTraverseSCM` setting HOT 5
- Upgrade issues - MacOS Ventura - command-t.vim could not load the C extension HOT 2
- Opening multiple files from command-line `:CommandTBuffer` only sees the first HOT 2
- Trouble getting command-t to work HOT 4
- Add timeout during long filesystem traversal HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from command-t.