[TxMt] Running JRuby Rake tasks

Adam Sharp adsharp at me.com
Tue Aug 28 00:19:21 UTC 2012


Hi,

I'm using rake in a (mostly) non-ruby project, and so started looking into TextMate's support for running rake tasks.

I discovered that my project automatically has a scope of attr.project.rake, and so I set the Ruby bundle's "Run Rake Task" command to include this scope. However when I execute the command I don't see a full list of the available tasks, I just see the following two:

 - (default task)
 - aborted!

The project requires JRuby (as it uses JDBC), and so I then tried setting TM_RUBY to use the correct ruby (normally I want textmate to use the system ruby regardless, as using jruby really slows down bundle commands and such). Now I get this error:

    /Users/adsharp/.rvm/rubies/jruby-1.6.7.2/lib/ruby/1.8/erb.rb:715 warning: SAFE levels are not supported in JRuby
    NotImplementedError: Process::Status#exited? not implemented
      (root) at /Users/adsharp/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/RakeMate/rake_mate.rb:42

Here I'm well beyond my level of expertise. Is there anything I can do here to enable use of the "Run Rake Task" command in my JRuby/Rake project?

Cheers,

Adam


More information about the textmate mailing list