Re: ![PATCH] Moose::Util

[email protected] ("Chris Prather")
Newsgroups perl.moose
Message-ID <[email protected]>
On Fri, Oct 24, 2008 at 9:52 AM, Ovid <[email protected]>wrote:

> --- On Fri, 24/10/08, John Napiorkowski <[email protected]> wrote:
>
> > Is the problem that Moose is underperforming for you, or is
> > there a test case we can try to make it fail?
>
> This was reported by another team member and I don't have a minimumn test
> case I can send.  We've a fairly large code base and it's very hard to pare
> down at this point (it deals with a role we apply which alters the attribute
> metaclass).  Trying to 'fix' the Moose::Util to use !/^Moose/ resulted in:
>
>   Could not load class (Pips3::Domain::Base::ContentObjectResource)
>   because : Could not load class (Collection::Hash) because : Can't
>   locate Collection/Hash.pm in @INC (@INC contains:
>
> We stopped debugging there because we're trying to get a new release of our
> software our and we just don't have the time to debug this.  I was just
> hoping this might be a known issue that someone might be able to comment on.
>  I know I'm not giving enough information to debug this.
>
>
Well that's relatively straight forward.
Pips3::Domain::Base::ContentObjectResource looks like it is trying to use
MooseX::AttributeHelpers without MX::AH being properly loaded (so that the
Collection::Hash attribute metaclass is loaded). Try !/^(?:Moose|MooseX)/.

-Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.