我正在使用 textmate,当我尝试使用快捷方式复制一行时 (ctrl + shift + d) 它给我一个错误 ruby: warning: -K is specified;它是为了 1.8 兼容性,可能会导致奇怪的行为
。
这很奇怪,因为它几天前才开始这样做。正如另一个 stackoverflow 答案所建议的那样,我将我的 textmate 指向 1.8,这工作了几个月,但突然之间它不再工作了。我该如何解决这个问题?
最佳答案
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
关于ruby - Textmate + Ruby : ruby: warning: -K is specified; it is for 1. 8 兼容性,可能导致奇怪的行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23640650/