Skip Menu |

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

Report information
The Basics
Id: 73981
Status: resolved
Priority: 0/
Queue: Dancer-Template-TemplateDeclare

People
Owner: Nobody in particular
Requestors: charles.minc [...] wanadoo.fr
Cc:
AdminCc:

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



perl 5.12.3 and Win XP as environment. Running "basic_apps.t" not really ends even when we got the message "out of memory" after a long time. Seems to access hard disk very intensively and did not stop after killing the above program. (Only the firt instruction (response_content_is ...) is sufficient to obtain this situation, so this problem may be related to Dancer::Test.
Subject: Re: [rt.cpan.org #73981]
Date: Fri, 13 Jan 2012 15:13:52 -0500
To: Charles MINC via RT <bug-Dancer-Template-TemplateDeclare [...] rt.cpan.org>
From: yanick [...] babyl.dyndns.org
On Fri, Jan 13, 2012 at 01:29:37PM -0500, Charles MINC via RT wrote: Show quoted text
> Fri Jan 13 13:29:37 2012: Request 73981 was acted upon. > Transaction: Ticket created by CHESSKIT > Queue: Dancer-Template-TemplateDeclare > Subject: (No subject given) > Broken in: (no value) > Severity: Normal > Owner: Nobody > Requestors: charles.minc@wanadoo.fr > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=73981 > > > > perl 5.12.3 and Win XP as environment. > Running "basic_apps.t" not really ends even when we got the message "out > of memory" after a long time. Seems to access hard disk very intensively > and did not stop after killing the above program. > > (Only the firt instruction (response_content_is ...) is sufficient to > obtain this situation, so this problem may be related to Dancer::Test.
Got it. It worked with Dancer 1.3072, but bombs with 1.3091 with the output: t/basic_app.t .. Deep recursion on subroutine "Dancer::Error::_censor" at /home/yanick/perl5/perlbrew/perls/perl-5.12.0/lib/site_perl/5.12.0/Dancer/Error.pm line 149. I'll try to dive into this tonight. Wish me luck. :-) Joy, `/anick --
There were two problems here: 1) Dancer::Error::_censor() would go off the deep end if it censors a hash that has recursive loops. (that's why your computer what grinding like a financial advisor the morning after the crash of Wall Street). I submitted a patch to the main Dancer team. 2) Dancer::Template::Abstract was now checking that the templates are existing files. Of course, with TD it's classes, not files. So I had to be sneaky and work around the check. :-) New version of D::T:TD is on its way to CPAN. Enjoy!
Subject: Re: [rt.cpan.org #73981]
Date: Sun, 15 Jan 2012 20:47:27 +0100
To: bug-Dancer-Template-TemplateDeclare [...] rt.cpan.org
From: Charles <charles.minc [...] wanadoo.fr>
Thanks. I am trying to adapt an application from Jifty to Dancer because I have often Jifty installation problems with its latest CPAN released. Today I have run the dancer installation program "dancer.bat -a MyWeb". It is complaining about redefined main::dirname and main::path line 146 and test 002_index_route.t fails even after I have to install MyWeb.pm at the root application for checking it quickly around the bug. But MyWeb.pl is ok.:-) So it seems that I've not yet finished to report if I continue :-\ . So long. Charles Le 15/01/2012 16:56, Yanick Champoux via RT a écrit : Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=73981> > > There were two problems here: > > 1) Dancer::Error::_censor() would go off the deep end if it censors a > hash that has recursive loops. (that's why your computer what grinding > like a financial advisor the morning after the crash of Wall Street). I > submitted a patch to the main Dancer team. > > 2) Dancer::Template::Abstract was now checking that the templates are > existing files. Of course, with TD it's classes, not files. So I had to > be sneaky and work around the check. :-) > > New version of D::T:TD is on its way to CPAN. Enjoy! >
-- Les mouvements totalitaires avaient moins besoin de l'absence de structure d'une société de masse, que des conditions spécifiques d'une masse atomisée. Hannah Arendt Une idéologie est précisément ce que son nom indique : elle est la logique d’une idée. L’émancipation de la pensée à l’égard de l’expérience. Hannah Arendt
Subject: Re: [rt.cpan.org #73981]
Date: Sun, 15 Jan 2012 21:55:07 -0500
To: bug-Dancer-Template-TemplateDeclare [...] rt.cpan.org
From: Yanick Champoux <yanick [...] babyl.dyndns.org>
On 12-01-15 02:48 PM, Charles MINC via RT wrote: Show quoted text
> Today I have run the dancer installation program "dancer.bat -a MyWeb". > It is complaining about redefined main::dirname and main::path line 146 > and test 002_index_route.t > fails even after I have to install MyWeb.pm at the root application for > checking it quickly around the bug. > But MyWeb.pl is ok.:-)
That's strange. I've tried the same on my machine with the latest Dancer, and don't have those problems. On the other hand, I'm on linux, so I wouldn't be surprised if things are more... finicky on Windows. They usually are. ;-) In any case, if I may suggest something, it's not to lose hope. Dancer is, in my humble opinion, quite worth it. :-) Best o' luck! `/anick