[TxMt] Re: Build Target Command in Ant bundle

Allan Odgaard mailinglist at textmate.org
Mon Jul 15 21:44:26 UTC 2013


On 15 Jul 2013, at 16:26, Rob Cope wrote:

> […]
> Support.tmbundle/Support/shared/lib/ui.rb:198:in `load': Cannot parse 
> a NULL or zero-length data (OSX::PropertyListError)
> […]
> res = TextMate::UI.menu(ant_targets)
> […]
> Any ideas how how to solve that problem?  I actually hasn't worked 
> since TM 2 came out, but I'm just now getting around to trying to 
> figure it out.

The issue here seems to be with the property list that gets constructed 
from the ‘ant_targets’ variable.

You can dump the variable with:

     pp ant_targets

You should do that before calling TextMate::UI.menu, and in the top of 
the source, add:

     require "pp"

This should give us an idea of wether the variable is indeed a “bad” 
data structure (e.g. containing ‘nil’ values) or if the issue is 
with the library code being used (i.e. the code implicitly invoked by 
TextMate::UI.menu).

If you provide an ant.xml file I can test if I see the same problem (and 
possibly find the cause).


More information about the textmate mailing list