开发者

How to configure Textmate to run JRuby?

开发者 https://www.devze.com 2023-01-07 14:02 出处:网络
Trying to work on JRuby with TextMat开发者_JS百科e.While setting TM_RUBY tells TextMate to run JRuby where Ruby is run, it is not going to be a very pleasant experience.

Trying to work on JRuby with TextMat开发者_JS百科e.


While setting TM_RUBY tells TextMate to run JRuby where Ruby is run, it is not going to be a very pleasant experience.

TextMate relies so much of its functionality on Ruby. For example, ⌘-R in a Ruby source won't work. Other bundles may fail if they run Ruby code (and there are many).

If you just want to run the current file with JRuby and return output somewhere (not the pretty window that TextMate gives), you can use $TM_FILENAME and so on to build your own command.


http://github.com/drnic/ruby-tmbundle

set the TM_RUBY to /usr/local/bin/jruby or where every you have jruby installed

0

精彩评论

暂无评论...
验证码 换一张
取 消