Skip Menu |

This queue is for tickets about the HTML-Template-Compiled CPAN distribution.

Maintainer(s)' notes

Note: there is a bug with caching and TMPL_INCLUDE_VAR since 0.97_004 until 0.98. either use an earlier version or upgrade to 0.98_001. Another workaround is to precompile all templates to file_cache_dir. The bug happens when including a template via INCLUDE_VAR and the template is not yet compiled or has changed.

I'm sorry if the change about aliases came quite unannounced. I didn't expect any problems since dollar signs are not allowed in template vars, but I heard from at least one case where people were doing exactly this.
Please do not use unallowed characters in template vars. Allowed are (from the HTML::Template::FAQ): Numbers, letters, '.', '/', '+', '-' and '_'.
This should work in HTML::Template::Compiled::Classic.
in HTML::Template::Compiled you should be only using numbers, letters and _.
The dot, for example, is special. If you need to get a hash key from the template parameters with special charcaters, you can try <tmpl_var _.$var$name$with$dollars >

There will be a workaround in the next version:
local $HTML::Template::Compiled::Compiler::DISABLE_NEW_ALIAS = 1;


Please report any bug you find.
The code is now hosted on https://github.com/perlpunk/HTML-Template-Compiled
If you have a bug report, you can also post it there in the "Issues" section.
In the bugreport, please include, if possible, the module version, perl version and a testcase that reproduces the error; that makes it easier to find the bug.

The issue with not reloading includes of includes should be fixed in version 0.95_003. If you have any problems though please report!

Using query() and the dot syntax might not work together always. If you have a tmpL_var name="..foo" (going up the stash one level) the var foo is not detected and will not be reported by the query() function. Since the dot syntax is for dereferencing hashes and method calls the query function might not make sense anyway. I believe it is a bad idea to let the program do things if the template is using a certain variable.

Thanks!

Report information
The Basics
Id: 57438
Status: resolved
Priority: 0/
Queue: HTML-Template-Compiled

People
Owner: Nobody in particular
Requestors: ntyni [...] iki.fi
Cc: ANSGAR [...] cpan.org
dom [...] cpan.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.94
Fixed in: 0.97_004



Subject: Test failures with Perl >= 5.11: Storable can't store REGEXP items
Hi, as seen in CPAN test reports at for example http://matrix.cpantesters.org/?dist=HTML-Template-Compiled+0.94 the HTML-Template-Compiled test suite does not pass from Perl 5.11.0 onwards. The reason is Can't store REGEXP items at ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_store.al) line 264, at blib/lib/HTML/Template/Compiled.pm line 572 and there are tickets on Storable about this at http://rt.perl.org/rt3/Public/Bug/Display.html?id=50608 https://rt.cpan.org/Public/Bug/Display.html?id=57010 but as those have not seen any activity, perhaps a workaround is needed? Thanks for your work, -- Niko Tyni (Debian Perl group) ntyni@debian.org
Am Mi 12. Mai 2010, 15:06:56, ntyni@iki.fi schrieb: Show quoted text
> Hi, > > as seen in CPAN test reports at for example > > http://matrix.cpantesters.org/?dist=HTML-Template-Compiled+0.94 > > the HTML-Template-Compiled test suite does not pass from Perl 5.11.0 > onwards. > > The reason is > Can't store REGEXP items at ../../lib/Storable.pm (autosplit into > ../../lib/auto/Storable/_store.al) line 264, at > blib/lib/HTML/Template/Compiled.pm line 572 > > and there are tickets on Storable about this at > http://rt.perl.org/rt3/Public/Bug/Display.html?id=50608 > https://rt.cpan.org/Public/Bug/Display.html?id=57010 > > but as those have not seen any activity, perhaps a workaround is
needed? Show quoted text
> > Thanks for your work,
Thanks for the report. yes, I have been wondering what to do about that and just haven't had time for many months now. But recently I got a hint that one can tell Storable to just store dummy data if it detects an error, and the rest of the data stays correct. Now that I finally had time to install 5.12 I uploaded a developer version that includes that workaround. If it doesn't work for you please report. The test suite suceeds for me. regards, tina
Same here, please find attached the log. Using HTML-Template-Compiled-0.94_002, all installs fine. hth, Alex
Subject: htc.cpan.log.txt
cpan> install HTML::Template::Compiled Running install for module 'HTML::Template::Compiled' Running make for T/TI/TINITA/HTML-Template-Compiled-0.94.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\T\TI\TINITA\HTML-Template-Com piled-0.94.tar.gz ok CPAN.pm: Going to build T/TI/TINITA/HTML-Template-Compiled-0.94.tar.gz Creating new 'MYMETA.yml' with configuration results Creating new 'Build' script for 'HTML-Template-Compiled' version '0.94' Building HTML-Template-Compiled TINITA/HTML-Template-Compiled-0.94.tar.gz C:\strawberry\perl\bin\perl.exe ./Build -- OK Running Build test t\01_HTML-Template-Compiled.t .. 1/6 Can't store REGEXP items at ..\..\lib\Stora ble.pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at C:\strawb erry\cpan\build\HTML-Template-Compiled-0.94-uqSVne\blib\lib/HTML/Template/Compil ed.pm line 572 # Looks like you planned 6 tests but ran 1. # Looks like your test exited with 255 just after 1. t\01_HTML-Template-Compiled.t .. Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 5/6 subtests t\02_version.t ................. ok t\03_param.t ................... ok t\04_out_fh.t .................. 1/5 Can't store REGEXP items at ..\..\lib\Stora ble.pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at blib/lib/ HTML/Template/Compiled.pm line 572 # Looks like you planned 5 tests but ran 1. # Looks like your test exited with 255 just after 1. t\04_out_fh.t .................. Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 4/5 subtests t\05_filter.t .................. 1/5 Can't store REGEXP items at ..\..\lib\Stora ble.pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at blib/lib/ HTML/Template/Compiled.pm line 572 # Looks like you planned 5 tests but ran 1. # Looks like your test exited with 255 just after 1. t\05_filter.t .................. Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 4/5 subtests t\06_dyn_include.t ............. ok t\07_formatter.t ............... ok t\08_global_vars.t ............. ok t\09_wrong.t ................... ok t\10_if_else.t ................. ok t\11_dhtml.t ................... ok t\12_path.t .................... ok t\13_loop.t .................... 1/9 Can't store REGEXP items at ..\..\lib\Stora ble.pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at C:\strawb erry\cpan\build\HTML-Template-Compiled-0.94-uqSVne\blib\lib/HTML/Template/Compil ed.pm line 572 # Looks like you planned 9 tests but ran 7. # Looks like your test exited with 255 just after 7. t\13_loop.t .................... Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 2/9 subtests t\14_scalarref.t ............... 1/6 Can't store REGEXP items at ..\..\lib\Stora ble.pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at blib/lib/ HTML/Template/Compiled.pm line 572 # Looks like you planned 6 tests but ran 1. # Looks like your test exited with 255 just after 1. t\14_scalarref.t ............... Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 5/6 subtests t\15_comment.t ................. ok t\16_switch.t .................. ok t\17_escape.t .................. ok t\18_objects.t ................. ok t\19_query.t ................... Can't store REGEXP items at ..\..\lib\Storable. pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at blib/lib/HTML /Template/Compiled.pm line 572 # Looks like your test exited with 255 before it could output anything. t\19_query.t ................... Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 4/4 subtests t\20_precompile.t .............. 1/4 Can't store REGEXP items at ..\..\lib\Stora ble.pm (autosplit into ..\..\lib\auto\Storable\_store.al) line 264, at blib/lib/ HTML/Template/Compiled.pm line 572 # Looks like you planned 4 tests but ran 1. # Looks like your test exited with 255 just after 1. t\20_precompile.t .............. Dubious, test returned 255 (wstat 65280, 0xff00 ) Failed 3/4 subtests t\21_while.t ................... ok t\22_pod.t ..................... ok t\23_tagstyles.t ............... ok t\24_pod_cover.t ............... skipped: Test::Pod::Coverage required for testi ng pod coverage t\26_expr.t .................... ok t\27_chomp.t ................... ok t\28_perl.t .................... ok t\29_encoding.t ................ ok t\30_arrays.t .................. ok t\31_recurse.t ................. ok t\32_compile_plugin.t .......... ok t\33_plugins.t ................. ok t\34_loop_context_vars.t ....... ok t\35_debug.t ................... ok t\36_default.t ................. ok t\37_with.t .................... ok Test Summary Report ------------------- t\01_HTML-Template-Compiled.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 6 tests but ran 1. t\04_out_fh.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 5 tests but ran 1. t\05_filter.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 5 tests but ran 1. t\13_loop.t (Wstat: 65280 Tests: 7 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 9 tests but ran 7. t\14_scalarref.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 6 tests but ran 1. t\19_query.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 4 tests but ran 0. t\20_precompile.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 4 tests but ran 1. Files=36, Tests=163, 10 wallclock secs ( 0.14 usr + 0.14 sys = 0.28 CPU) Result: FAIL Failed 7/36 test programs. 0/163 subtests failed. TINITA/HTML-Template-Compiled-0.94.tar.gz C:\strawberry\perl\bin\perl.exe ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports TINITA/HTML-Template-Compiled-0.94.tar.gz Running Build install make test had returned bad status, won't install without force Failed during this command: TINITA/HTML-Template-Compiled-0.94.tar.gz : make_test NO cpan>
On Thu Aug 19 19:08:42 2010, TINITA wrote: Show quoted text
> Am Mi 12. Mai 2010, 15:06:56, ntyni@iki.fi schrieb:
> > Hi, > > > > as seen in CPAN test reports at for example > > > > http://matrix.cpantesters.org/?dist=HTML-Template-Compiled+0.94 > > > > the HTML-Template-Compiled test suite does not pass from Perl 5.11.0 > > onwards. > > > > The reason is > > Can't store REGEXP items at ../../lib/Storable.pm (autosplit into > > ../../lib/auto/Storable/_store.al) line 264, at > > blib/lib/HTML/Template/Compiled.pm line 572 > > > > and there are tickets on Storable about this at > > http://rt.perl.org/rt3/Public/Bug/Display.html?id=50608 > > https://rt.cpan.org/Public/Bug/Display.html?id=57010 > > > > but as those have not seen any activity, perhaps a workaround is
> needed?
> > > > Thanks for your work,
> > Thanks for the report. > > yes, I have been wondering what to do about that and just haven't had > time for many months now. But recently I got a hint that one can tell > Storable to just store dummy data if it detects an error, and the rest > of the data stays correct. > > Now that I finally had time to install 5.12 I uploaded a developer > version that includes that workaround. > > If it doesn't work for you please report. The test suite suceeds for me.
The test suite passes for me too with perl 5.12.3 when 0.94 doesn't. Please could you consider making a release version? Thanks, Dominic.
So after I added the workaround in 0.94_002 I changed the caching a little bit and the workaround is not needed any more. will add a new release soon.