On Wed, Aug 26, 2009 at 7:47 PM, Tomas Doran <[email protected]> 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' => 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 order
> 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
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to