ruby - Textmate + Ruby : ruby: warning: -K is specified; it is for 1. 8 兼容性,可能导致奇怪的行为

标签 ruby textmate

我正在使用 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/

相关文章:

xcode - 无法从 Textmate 构建 XCode 4 项目

macos - 使用 TextMate 通过 SSH 编辑远程文件?

ruby - 关闭不起作用

ruby-on-rails - 具有深度关联链的 FactoryGirl 的最佳实践?

c++ - Textmate C++ 输入执行

parsing - 在哪里可以找到解析源代码并能够提取光标当前在代码中的范围的库?

html - TextMate:突出显示插入位置的匹配标签

ruby-on-rails - Ruby on Rails - 何时使用 params.permit!以及如何更换它

mysql.h 丢失....(Ruby on Rails,OSX)

ruby-on-rails - 英雄数据库 :pull not working