草庐IT

ruby - Textmate 错误重复行 "ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior"

coder 2025-07-10 原文

在 Textmate 中使用 ctrl+shift+d 快捷方式重复行时,出现以下错误:

“ruby:警告:指定了 -K;这是为了 1.8 兼容性,可能会导致奇怪的行为”

最佳答案

此问题不仅限于重复行,还可能出现在其他使用 ruby​​ 的地方。我通过将 Preferences... > Advanced > Shell Variables 中的 PATH 更改为 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin 来解决它:/usr/bin:/bin:/usr/sbin:/sbin

此更改后,TextMate 将使用旧版本的 ruby,它不会输出上述警告。

关于ruby - Textmate 错误重复行 "ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20707651/

有关ruby - Textmate 错误重复行 "ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior"的更多相关文章

随机推荐