Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Catalyst/C:M:Adaptor/Moose/Moosex::Declare bug?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


iainhubbard at googlemail

Jan 27, 2010, 4:35 AM

Post #1 of 4 (1015 views)
Permalink
Catalyst/C:M:Adaptor/Moose/Moosex::Declare bug?

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.

Thanks,

Iain.




_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


iainhubbard at googlemail

Jan 28, 2010, 3:22 AM

Post #2 of 4 (939 views)
Permalink
Re: Catalyst/C:M:Adaptor/Moose/Moosex::Declare bug? [In reply to]

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.

Iain Hubbard.



_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


iainhubbard at googlemail

Jan 31, 2010, 6:29 AM

Post #3 of 4 (850 views)
Permalink
Re: Catalyst/C:M:Adaptor/Moose/Moosex::Declare bug? [In reply to]

On 28 January 2010 11:22, iain <iainhubbard [at] googlemail> 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 :-)

Iain Hubbard.


iainhubbard at googlemail

Feb 2, 2010, 1:39 AM

Post #4 of 4 (793 views)
Permalink
Re: Catalyst/C:M:Adaptor/Moose/Moosex::Declare bug? [In reply to]

iain hubbard wrote:
> On 28 January 2010 11:22, iain <iainhubbard [at] googlemail
> <mailto:iainhubbard [at] googlemail>> 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.

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.