Skip Menu |

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

Report information
The Basics
Id: 47718
Status: resolved
Priority: 0/
Queue: Template-Declare

People
Owner: Nobody in particular
Requestors: TRENDELS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.39
Fixed in: (no value)



Subject: Template::Declare and Devel::NYTProf don't play nice together
If Devel::NYTProf is loaded before Template::Declare::Tags, strange things happen to the tag names in T::Ds output (this is Template::Declare 0.39 and Devel::NYTProf 2.10): #!/usr/bin/perl use strict; use warnings; use Devel::NYTProf; use Template::Declare::Tags 'HTML'; my $html = html { head { title { "hello, world!" } } }; print $html; __DATA__ output: <__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:507]> <__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]> <__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]>hello, world!</__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]> </__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]> </__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:507]>
Subject: Re: [rt.cpan.org #47718] Template::Declare and Devel::NYTProf don't play nice together
Date: Wed, 8 Jul 2009 16:18:32 -0400
To: Stanis Trendelenburg via RT <bug-Template-Declare [...] rt.cpan.org>
From: jesse <jesse [...] fsck.com>
I suspect that this will be more useful if reported to the Devel::NYTProf developers. On Wed, Jul 08, 2009 at 04:17:05PM -0400, Stanis Trendelenburg via RT wrote: Show quoted text
> Wed Jul 08 16:17:05 2009: Request 47718 was acted upon. > Transaction: Ticket created by TRENDELS > Queue: Template-Declare > Subject: Template::Declare and Devel::NYTProf don't play nice together > Broken in: 0.39 > Severity: Normal > Owner: Nobody > Requestors: TRENDELS@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47718 > > > > If Devel::NYTProf is loaded before Template::Declare::Tags, strange > things happen to the tag names in T::Ds output (this is > Template::Declare 0.39 and Devel::NYTProf 2.10): > > #!/usr/bin/perl > use strict; > use warnings; > > use Devel::NYTProf; > use Template::Declare::Tags 'HTML'; > > my $html = html { head { title { "hello, world!" } } }; > print $html; > > __DATA__ > output: > > <__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:507]> > <__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]> > > <__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]>hello, > world!</__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]> > </__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:513]> > </__ANON__[/home/st/perl5/lib/perl5/Template/Declare/Tags.pm:507]> >
--
Hi Stanis, We actually fixed this a few months ago but the fix never made it to CPAN. Rectifying. In the meantime, you can get a checkout of our source with: svn co http://svn.jifty.org/svn/jifty.org/Template-Declare/trunk Template-Declare Thanks! Shawn
0.40 uploaded to CPAN. Thanks. Shawn