Textmate error duplicating lines "ruby: warning: -K specified, compatible with 1.8 and may cause odd behavior"

When using ctrl + shift + d to quickly duplicate lines in Textmate, I came up with the following error:

"ruby: warning: -K is specified, it is compatible with 1.8 and may cause odd behavior"

+6
source share
2 answers

This problem is not limited to line duplication, but appears in other places where ruby ​​is used. I solved this by changing PATH to Preferences… > Advanced > Shell Variables to /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin

After this change, TextMate will use an older version of ruby that does not display these warnings.

+4
source

This is a warning to exit ruby ​​2.0.

The only way I could solve this is by

/System/Library/Frameworks/Ruby.framework/Versions and changing the symbolic link named Current to point to the 1.8 folder (/System/Library/Frameworks/Ruby.framework/Versions/1.8).

In other words, the use of Ruby 1.8 instead of 2.0 has changed.

+3
source

All Articles