On Mon, Feb 15, 2010 at 12:51 AM, Adam Sharp adsharp@me.com wrote:
On 15/02/2010, at 7:31 PM, Josh Cheek wrote:
Hmm, it seems that if I run TextMate from the command line, then it finds
the
correct version, but if I run it from Applications folder, Spotlight, or
Quicksilver,
then it always pulls up the the system version (1.8.6)
Is there an easy way to remedy this? If not, I can just always run it
from the
command line.
Have a look at this blog post:
http://justaddwater.dk/2009/03/10/textmate-path-modification-ruby-version-is...
Make sure your that you set PATH in TextMate's Preferences (Advanced -> Shell Variables) to reflect what you have in Terminal.app. You can also try setting TM_RUBY to the full path of the version of Ruby that you wish to use.
Good luck!
-- Adam Sharp Email: adsharp@me.com Web: www.adam-sharp.net
@Adam - Josh wants Textmate to reference the correct Ruby version when he switches it on the command line using RVM. Thus, he doesn't want to hard-code any particular version.
@Josh - I'm able to access the correct Ruby version from the command as well as the Dock. Thus, try moving Textmate to the Dock.
-Conrad
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate