[TxMt] Java Bundle - Problem with executor + question about args

Hans-Jörg Bibiko bibiko at eva.mpg.de
Fri Aug 29 07:09:39 UTC 2008


Hi,

I've just upgraded the standard Java bundle and TM's support lib for  
executor stuff.

I have the following tiny java script:

import java.io.*;
public class test {
   public static void main(String args[]){
     System.out.println("Hello World");
   }
}

saved as test.java

If I compile and run it on a console, no problem.
If I use the Java bundle's "Compile & Run" I get this:

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ 
executor.rb:87:in `run': undefined method `call' for nil:NilClass  
(NoMethodError) from /Applications/TextMate.app/Contents/SharedSupport/ 
Support/lib/io.rb:41:in `call' from /Applications/TextMate.app/ 
Contents/SharedSupport/Support/lib/io.rb:41:in `exhaust' from / 
Applications/TextMate.app/Contents/SharedSupport/Support/lib/io.rb: 
41:in `each_line' from /Applications/TextMate.app/Contents/ 
SharedSupport/Support/lib/io.rb:41:in `exhaust' from /Applications/ 
TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:165:in  
`run' from /Applications/TextMate.app/Contents/SharedSupport/Support/ 
lib/tm/executor.rb:99:in `run' from /Applications/TextMate.app/ 
Contents/SharedSupport/Support/lib/tm/executor.rb:198:in  
`process_output_wrapper' from /Applications/TextMate.app/Contents/ 
SharedSupport/Support/lib/tm/executor.rb:98:in `run' from / 
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ 
htmloutput.rb:134:in `call' from /Applications/TextMate.app/Contents/ 
SharedSupport/Support/lib/tm/htmloutput.rb:134:in `show' from / 
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ 
executor.rb:83:in `run' from /Applications/TextMate.app/Contents/ 
SharedSupport/Bundles/Java.tmbundle/Support/bin/javamate.rb:32

I didn't set up any env variables.
I'm running a Intel MacOSX 10.5.4 (very fast;) with TM Version 1.5.7  
(1466)

With the 'old' Java bundle ("Compile & Run single script") it works.

Any help available?

The new bundle has a nice feature. "Compile & Run (with args)"
I couldn't try out it yet but if I have a folder containing my Java  
script and aFile, and I want to do something with that aFile. Is it  
possible to enter only the filename aFile as argument without the  
absolute path. In other words, does run the script in that folder?


Many thanks in advance,


--Hans






More information about the textmate mailing list