[Catalyst] problem extending Plugin::I18N

Rodrigo rodrigolive at gmail.com
Wed Aug 26 19:05:23 GMT 2009


On Wed, Aug 26, 2009 at 7:47 PM, Tomas Doran <bobtfish at bobtfish.net> wrote:

> Rodrigo wrote:
>
>> The problem is that the original Plugin::I18N::setup() gets called twice,
>> which breaks it, I guess due to the "eval Locale::Maketext::Simple" part.
>>
>> I've tried to use Moose and around 'setup' =3D> sub { ... } and it gets
>> loaded twice also.
>>
>> What am I missing?
>>
>
> Not sure.
>
> Can you:
>
> 1) Add a Carp::cluck to your setup method, and so get a full stack trace =
of
> both calls.
>
> 2) print Dumper(mro::get_linear_mro(ref($self) ? ref($self) : $self)); so
> that we can get what perl thinks your application's method resolution ord=
er
> is
>

Found it. Should have "clucked" to myself before clucking in public...

...
Catalyst::Plugin::Session::setup('MyApp') called at
C:/strawberry/perl/lib/NEXT.pm line 75
NEXT::AUTOLOAD('MyApp') called at
C:/strawberry/perl/site/lib/Catalyst/Plugin/Session.pm line 42
Catalyst::Plugin::Session::setup('MyApp') called at
C:/strawberry/perl/site/lib/Catalyst/Plugin/Cache.pm line 28
...

And that NEXT::AUTOLOAD hurt the eye real bad. Things were just going round
and round, from NEXT to mro::next, etc.

An upgrade of Plugin::Session did it.

Thanks.
  -rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090826/cee81=
596/attachment.htm


More information about the Catalyst mailing list