Skip Menu |

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

Report information
The Basics
Id: 68078
Status: resolved
Priority: 0/
Queue: Template-Benchmark

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: srezic [...] iconmobile.com
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.09
Fixed in: (no value)



Subject: TemplateToolkit benchmark not working
Running benchmark_template_engines gives the following failure, using the latest available Template Toolkit (2.22): TemplateToolkit - Error calling benchmark_functions_for_instance_reuse(): Can't use an undefined value as a HASH reference at /usr/perl5.12.3/lib/site_perl/5.12.3/i686-linux/Template /Stash.pm line 115. Regards, Slaven
On 2011-05-10 09:00:24, SREZIC wrote: Show quoted text
> Running benchmark_template_engines gives the following failure, using > the latest available Template Toolkit (2.22): > > TemplateToolkit - Error calling > benchmark_functions_for_instance_reuse(): > Can't use an undefined value as a HASH reference at > > /usr/perl5.12.3/lib/site_perl/5.12.3/i686-linux/Template > /Stash.pm line 115. >
It seems that another plugin is disturbing the TT2 plugin. Running "benchmark_template_engines --onlyplugin TemplateToolkit" does not show any errors. So up to find the disturbing module... Regards, Slaven
On 2011-05-10 09:43:15, SREZIC wrote: Show quoted text
> On 2011-05-10 09:00:24, SREZIC wrote:
> > Running benchmark_template_engines gives the following failure, using > > the latest available Template Toolkit (2.22): > > > > TemplateToolkit - Error calling > > benchmark_functions_for_instance_reuse(): > > Can't use an undefined value as a HASH
reference at Show quoted text
> > > > /usr/perl5.12.3/lib/site_perl/5.12.3/i686-linux/Template > > /Stash.pm line 115. > >
> > It seems that another plugin is disturbing the TT2 plugin. Running > "benchmark_template_engines --onlyplugin TemplateToolkit" does not show > any errors. So up to find the disturbing module... >
Found it: --skipplugin TextXslateTT Regards, Slaven
On Tue May 10 09:46:05 2011, SREZIC wrote: Show quoted text
> Found it: --skipplugin TextXslateTT
Hi, Thanks for the bug report and the work on tracking down the cause. I'll have to see if there's something I can do to prevent this conflict, or at the least give some feedback about the clash. Ideally I need to rearchitect the way the benchmarks are run so that different engines can't interfere with each other, which would solve this and a few other issues, free time hasn't been cooperative in this venture however. At the very least I'll make sure that the next version produces some kind of warning on conflict between TemplateToolkit and TextXslateTT.
Took somewhat longer than I anticipated to return to working on this module, but thanks to your debugging I was able to track down the issue and work around it. The fix is commited to github and will be in the next release to CPAN.