Rspec bundle is broken in TextMate and rvm

[亡魂溺海] 提交于 2019-12-04 04:27:23

The best solution I've found is from Jacques Crocker. http://groups.google.com/group/rubyversionmanager/browse_thread/thread/64b84bbcdf49e9b?fwc=1

It requires replacing the contents of textmate_ruby with the code below and never running rvm wrapper xxx textmate again.

#!/usr/bin/env sh 
source ~/.rvm/scripts/rvm 
cd . 
exec ruby "$@" 

This has also fixed the same issue with the cucumber bundle.

Aaron Gibralter

Did you try following the instructions here: http://rvm.io/integration/textmate/

My case is slightly different but took me more than an hour to figure out:

Turns out I ran rvm wrapper ree textmate a while after installing ree with rvm and in the mean time the ree shorthand changed from meaning ree-1.8.7-2010.01 to ree-1.8.7-2010.02

here's more details on my message: https://gist.github.com/721987

I'm posting it here too because it's one of the first pages I landed onto while trying to figure this one out.

I've got a similar problem and figured out that my textmate ruby wrapper is pointing to a different version. I was able to get it work by putting below content in projectx/.rvmrc

rvm 1.9.2@projectx --create

rvm wrapper 1.9.2@projectx textmate

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!