TextMate中Command+R无法执行的变通解决方法

如果你在升级了雪豹并且设定为64位启动模式后,
TM无法通过Command+R执行可以直接执行的文件,比如Ruby代码,
那请试试下面这个方法吧,虽然很山寨,但是很管用!

比如你Command+R的时候,

TM提示如下:

[quote]/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:169:in `fcntl': Inappropriate ioctl for device (Errno::ENOTTY) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:169:in `run' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor.rb:211:in `parse_version' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor.rb:98:in `run' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:93
[/quote]

那你就这样来跟我做:
命令行中输入如下命令打开那个process.rb文件,
charlesdemacbook-pro:lib Cui$ open -a TextMate "/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb"


然后Command+L到第169行,
注释掉这句话
[quote]# io[0][0].fcntl(6, ENV['TM_PID'].to_i) if ENV.has_key? 'TM_PID'[/quote]

我还不知道这句话什么作用,但注释掉之后就没问题了.

这是我在尝试过官方的N中解决方案之后,唯一有效的一个方法.

大家要是有异常请告诉我.

有个哥们也用这个方法:
[url]http://blog.chrispcritter.com/tag/osx[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值