in reply to Re^2: Class::MOP won't load a class!!
in thread Class::MOP won't load a class!!
does is a sugar function exported by Moose. It's job is to check if a given Moose class 'does' a role.
Yes, I know, I am the (original) author of Moose and Class::MOP :)
And actually, does is not part of the exported sugar, it is a method of Moose::Object.
I am more inclined to believe that the class hasn't been loaded because in the output of t/Parser.t, I don't see the line finished loading plugin.
Yes, but the failure is saying there is no does method, and you don't call the does until after that line would be printed. There is no reason why Class::MOP::is_class_loaded would be calling does as does is a Moose thing and not a Class::MOP thing. Perhaps you are calling or loading an older version of the Admin_server::Parser module?
Admin_server::Parser::Plugin::FeedHandler has four functions - none of which is does. I could list them out but not sure if they are relevant to the discussion.
Perhaps it wouldn't be helpful, but it wouldn't hurt either. It also might be good to let us know the version of Moose/Class::MOP your running too.
For what its worth, it works on my machine when I reproduced your code and setup.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Class::MOP won't load a class!!
by MarkovChain (Sexton) on Oct 07, 2009 at 15:36 UTC | |
|
Re^4: Class::MOP won't load a class!!
by MarkovChain (Sexton) on Oct 07, 2009 at 20:41 UTC | |
by stvn (Monsignor) on Oct 07, 2009 at 21:07 UTC | |
by MarkovChain (Sexton) on Oct 08, 2009 at 15:17 UTC | |
by MarkovChain (Sexton) on Oct 08, 2009 at 16:07 UTC | |
by stvn (Monsignor) on Oct 09, 2009 at 13:27 UTC | |
by MarkovChain (Sexton) on Oct 09, 2009 at 16:16 UTC | |
by MarkovChain (Sexton) on Nov 12, 2009 at 16:51 UTC | |
by Wolfgang (Novice) on Nov 20, 2009 at 13:09 UTC | |
|