bigpotato
bigpotato

Reputation: 27537

Textmate + Ruby: ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior

I'm using textmate and when I try to use a shortcut to duplicate a line (ctrl + shift + d) it is giving me an error ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior.

This is weird because it just started doing this a few days ago. I pointed my textmate to point to 1.8 as another stackoverflow answer suggested, and that worked for a few months but all of a sudden it's not working anymore. How would I fix this?

Upvotes: 3

Views: 345

Answers (2)

kenecaswell
kenecaswell

Reputation: 7598

I was having this issue. I think it began after I upgraded to Yosemite. I found a post that suggested reinstalling Textmate. When I went to download the app Textmate's website recommended upgrading to TextMate 2.0 if you are using OS X 10.9 or later. I upgraded and have no more Ruby warnings.

For OS X 10.9 and later, TextMate 1.x is not suitable as it relies on system >components no longer available.

https://macromates.com/download

Upvotes: 1

Allan Odgaard
Allan Odgaard

Reputation: 464

TextMate 1.x under Mavericks:

If you wish to use TextMate 1.x on Mavericks you will need to tell TextMate to use ruby 1.8 for bundle items by putting the path to it first via the PATH variable.

Open Preferences from the TextMate menu and go to the Advanced section and select the Shell Variables tab. Click the + button to add a new variable named PATH with a value of:

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Upvotes: 4

Related Questions