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

Luke Daley ld at ldaley.com
Fri Aug 29 09:00:51 UTC 2008


Will look at this tomorrow.

On 29/08/2008, at 5:09 PM, Hans-Jörg Bibiko wrote:

> 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
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

--

LD.




More information about the textmate mailing list