[Catalyst] Re: Catalyst/C:M:Adaptor/Moose/Moosex::Declare bug?

iain iainhubbard at googlemail.com
Tue Feb 2 09:39:46 GMT 2010


iain hubbard wrote:
> On 28 January 2010 11:22, iain <iainhubbard at googlemail.com 
> <mailto:iainhubbard at googlemail.com>> wrote:
>
>     iain wrote:
>
>         Hi all,
>
>         This is probably going to end up being nothing to do with
>         catalyst but as this is where I am seeing the problem its
>         where im starting.
>
>         I have a standalone set of objects that work as expected. When
>         I wrap these with Catalyst::Model::Adaptor for use as a model
>         they fail with the error. http://pastebin.com/m2e87571c (this
>         is a simple test app to highlight the problem)
>
>         The cat app that generates this error is here
>         http://tinyurl.com/y9vyfmz. I have included two tests one that
>         passes (standalone) and the normal 01app.t test that fails.
>         Just unzip and "prove -l t".
>
>         I am using the latest CPAN versions of Catalyst (5.80018),
>         Catalyst::Model::Adaptor (0.06),  Moose (0.94),
>         MooseX::Declare (0.32) and the Perl version is 5.10.0 on ubuntu.
>
>         Hopefully somebody with more knowledge of the inner workings
>         can shed some light on the problem.
>
>
>     Now that i have finished reading all the responses to my first
>     post :) I have had time to de MooseX::Declare my objects. This
>     fixes the problem.
>
>     So, this is a problem with Moosex::Decalre and
>     Catalyst/Catalyst::Model::Adaptor.
>
>
> For anybody thats interested this problem appears to be caused by 
> Catalyst::Plugin::Static::Simple specifically version 0.28. Removing 
> this plugin or rolling back to 0.26 makes the error go away.
>
> So, if you have a MooseX::Declare style object that loads a class at 
> runtime and you wrap it as a catalyst model and you use 
> C:P:Static::Simple it will error :-)
For the archives.

This is now fixed by Catalyst::Plugin::Static::Simple 0.29 and was 
caused by the use of override in a Moose role.

Thanks for the help in IRC.

fade++
t0m++
mst++

Iain Hubbard.



More information about the Catalyst mailing list