Code Monkey home page Code Monkey logo

Comments (10)

tmm1 avatar tmm1 commented on May 9, 2024

What is the ruby -v on the ruby build that was giving you issues? Running rake with any 1.8.x or 1.9.x build should work. Were there any errors when you ran rake?

from janus.

benatkin avatar benatkin commented on May 9, 2024

Running rake did work. It was MacVim that it broke, and it was only broken when I had both .vim/ruby/ and .vim/plugins/ in my file.

The errors didn't come from running a command line app. I tried digging through /Applications/MacVim.app/Contents and looking in .viminfo but I didn't find anything there.

from janus.

benatkin avatar benatkin commented on May 9, 2024

Also note that I installed the snapshot build of MacVim. I did not build MacVim myself.

from janus.

tmm1 avatar tmm1 commented on May 9, 2024

I see, this is probably because ruby is used to build the CommandT extension, which must be built with the system ruby that MacVim is compiled against.

We use the following in the Rakefile:

Dir.chdir "ruby/command-t" do
  if `rvm > /dev/null 2>&1` && $?.exitstatus == 1
    sh "rvm system ruby extconf.rb"
  else
    sh "/usr/bin/ruby extconf.rb" # assume /usr/bin/ruby is system ruby
  end 
  sh "make clean && make"
end 

but it appears this is not doing the right thing on your system.

from janus.

benatkin avatar benatkin commented on May 9, 2024

Ah, I see. It's because I have Homebrew ruby installed and /usr/local/bin before /usr/bin in my path, and rvm thinks homebrew ruby is system ruby. It would have done the right thing, I think, if it just used /usr/bin/ruby.

from janus.

tmm1 avatar tmm1 commented on May 9, 2024

Interesting. So perhaps we're better off just using /usr/bin/ruby if it exists instead of trying to execute via rvm.

from janus.

benatkin avatar benatkin commented on May 9, 2024

Yeah, I think so. I suggest adding an option for using the ruby in the path, for people who compile their own MacVim, though. In fact, I might compile my own MacVim now that I realize that the mismatch was the issue. MacVim would likely have compiled against my rvm ruby.

So here's what I have:

  • before today, built janus with homebrew ruby (/usr/local/bin)
    • mismatch: failed w/ MacVim I compiled because MacVim linked with my rvm ruby (~/.rvm/...)
    • mismatch: failed w/ MacVim snapshot because MacVim linked with my system ruby (/usr/bin)
  • earlier today, built janus with system ruby (/usr/bin) by removing rvm from my path & swapping /usr/bin and /usr/local/bin
    • match: succeeded w/ MacVim snapshot because it also used system ruby (/usr/bin)
  • if I decide to build my own MacVim, I'll make it build with homebrew (/usr/local/bin) ruby instead of rvm (~/.rvm) ruby
    • match: hopefully succeeds in working with janus when I make janus use the homebrew (/usr/local/bin) as well

from janus.

benatkin avatar benatkin commented on May 9, 2024

Also, the instructions for using the ruby in the path could be a note for people who customize things, and /usr/bin/ruby could be a sane default, I think. That way the basic instructions could be kept short, yet the next person who tried doing what I did wouldn't get tripped up.

from janus.

alovak avatar alovak commented on May 9, 2024

Hi! I have found the similar problem. After I install MacVim & janus MacVim shows only menu. The reason: Caught deadly signal SEGV. You can find more details in /var/log/system.log

All you need to make MacVim work is just to update your rvm:

rvm update

That's all.

from janus.

kalbasit avatar kalbasit commented on May 9, 2024

It has been added/fixed in the experimental branch, closing this for now but if you think it can't wait for the experimental to be merged into master then please re-open.

from janus.

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.