UPD: all true, except the thing which reload modules in dev mode was not Catalyst's but our code, which simply "do $modulefile".

I am running Catalyst in dev mode. It's able to reload packages when package's file modified.

One of my packages:

package SRS::MyTest; use parent 'File::Find'; our @ISA; BEGIN { print STDERR "HEREISIT @ISA\n"}; 1;

If i modify it, catalyst will reload it, and then I see in console:

HEREISIT File::Find File::Find - /somepath/MyTest.pm reloaded 2343

That means File::Find is now twice in @ISA. Not a big problem until you use MRO C3

With mro C3 it fails with error: "Inconsistent hierarchy during C3 merge of class"

I believe these are separate part of this problem:

PoC of problem without catalyst:

$ cat s1.pl package XXX; BEGIN { require mro; mro::set_mro( "XXX", 'c3' ); } use parent qw( File::Find ); use parent qw( File::Find ); 1; $ perl s1.pl Inconsistent hierarchy during C3 merge of class 'XXX': current merge results [ XXX, ] merging failed on 'File::Find' at /usr/share/perl/5.14/parent.pm l +ine 26. BEGIN failed--compilation aborted at s1.pl line 4.

Questions are:


In reply to Catalyst reload, 'use parent' and mro c3 (UPD: NOT Catalyst) by vsespb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.