Menu

#69 017_generator.t (test 2) fails with Template-Toolkit 2.15

2.0x
closed-fixed
None
5
2008-04-26
2008-04-12
Noah Robin
No

Error output:

$ PERL5LIB=/usr/local/lib/perl5 /opt/bcs/bin/perl -Iblib/lib t/017_generator.t
1..22
ok 1 - use SOAP::WSDL::Generator::Template::XSD;
ok 2 - get object tree
Creating interface class Test/Interface/MessageGateway/HTTPPort.pm
Creating typemap class Test/Typemap/MessageGateway.pm
/home/sitz/src/perl/modules/SOAP-WSDL-2.00_33/blib/lib/SOAP/WSDL/Generator/Template/XSD\complexType.tt file error - parse error - complexType/POD/attributeSet.tt line 25-29: unexpected token (_)
[% IF (type_name=element.get_type);
type = definitions.get_types.0.find_type(element.expand(type_name));
IF (! type);
THROW NOT_FOUND "type " _ type_name _ " for attribute " _ element.get_name _ " not found";
END; %] at blib/lib/SOAP/WSDL/Base.pm line 53
# Looks like you planned 22 tests but only ran 2.
# Looks like your test died just after 2.

Upgrading Template-Toolkit to 2.19 fixes this issue.

Discussion

  • Noah Robin

    Noah Robin - 2008-04-25

    Patch requires Build.PL to require Template >=2.18

     
  • Noah Robin

    Noah Robin - 2008-04-25

    Logged In: YES
    user_id=17500
    Originator: YES

    Addendum; while 2.19 fixes the issue, 2.18 is the earliest version which does so. Attached patch is against trunk.
    File Added: Build.PL.diff

     
  • Noah Robin

    Noah Robin - 2008-04-26
    • milestone: --> 2.0x
    • assigned_to: nobody --> sitz
    • status: open --> closed-fixed
     
  • Noah Robin

    Noah Robin - 2008-04-26

    Logged In: YES
    user_id=17500
    Originator: YES

    Patch committed as r629.

     

Log in to post a comment.

MongoDB Logo MongoDB