Does your navdata.yaml inherit from this Base by any chance?

Try making you navdata inherit from nothing.

Cheers,

J.

On 21 May 2014 11:44, A Kobame <kobam...@gmail.com> wrote:
> Hi Jonathan,
>
> What is wrong with the next line in the Base.mc?
>
> has 'navdata' => (default => sub { $m->scomp("navdata.yaml") } );
>
> Testcase:
>
> cd /tmp
> poet new testpoet
> cd testpoet
> vi comps/Base.mc  #add the above line after the has 'title'
> echo "aaa: bbb" >comps/navdata.yaml
> bin/run.pl
>
> It throws the next:
>
> Running plackup, -E, development, --port, 5000, -R,
> /private/tmp/testpoet/conf,/private/tmp/testpoet/lib,
> /private/tmp/testpoet/bin/app.psgi
> Watching /private/tmp/testpoet/conf /private/tmp/testpoet/lib
> /private/tmp/testpoet/bin/lib /private/tmp/testpoet/bin/app.psgi for file
> updates.
> HTTP::Server::PSGI: Accepting connections at http://0:5000/
> Deep recursion on anonymous subroutine at constructor MC0::navdata_yaml::new
> (defined at
> /Users/ak/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mason/Interp.pm
> line 309) line 43.
> Deep recursion on subroutine "Mason::Request::scomp" at
> /private/tmp/testpoet/comps/Base.mc line 3.
> Deep recursion on subroutine "Mason::Request::capture" at
> /Users/ak/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mason/Request.pm
> line 190.
> Deep recursion on subroutine "Mason::Request::comp" at
> /Users/ak/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mason/Request.pm
> line 190.
> Deep recursion on subroutine "Mason::Request::construct" at
> /Users/ak/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mason/Request.pm
> line 105.
> Deep recursion on subroutine "MC0::navdata_yaml::new" at
> /Users/ak/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Mason/Request.pm
> line 116.
>
> And eating up memory.
>
> My versions: cpanm Mason Poet
> Mason is up to date. (2.22)
> Poet is up to date. (0.15)
>
> thanx for some insights.. ;)
>
> ak.
>
>
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>



-- 
Jerome Eteve
+44(0)7738864546
http://www.eteve.net/

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to