GithubHelp home page GithubHelp logo

Comments (6)

lilyball avatar lilyball commented on May 18, 2024

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.

wincent avatar wincent commented on May 18, 2024

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.

lilyball avatar lilyball commented on May 18, 2024

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.

wincent avatar wincent commented on May 18, 2024

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.

lilyball avatar lilyball commented on May 18, 2024

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.

wincent avatar wincent commented on May 18, 2024

Deal. 👍

from command-t.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.