Created
June 7, 2009 09:47
-
-
Save leto/125257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(kadath)(~/git/moosey)$ mx-run -Ilib App::HelloMooseXDeclare DukeLeto | |
Not inlining 'new' for MooseX::Meta::TypeCoercion::Structured since it is not inheriting the default Moose::Object::new | |
If you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to MooseX::Meta::TypeCoercion::Structured->meta->make_immutable | |
We can only work with Moose classes with "meta" methods at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Runnable/Invocation.pm line 70 | |
MooseX::Runnable::Invocation::load_class('MooseX::Runnable::Invocation=HASH(0xa24320)') called at /opt/local/lib/perl5/site_perl/5.10.0/MooseX/Runnable/Invocation.pm line 152 | |
MooseX::Runnable::Invocation::run('MooseX::Runnable::Invocation=HASH(0xa24320)', 'DukeLeto') called at /opt/local/bin/mx-run line 28 | |
main::run() called at /opt/local/bin/mx-run line 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use MooseX::Declare; | |
use feature 'say'; | |
class HelloMooseXDeclare with MooseX::Getopt with MooseX::Runnable { | |
method run { | |
my ($name) = @_; | |
say "Hello, $name."; | |
return 0; # success | |
} | |
}; |
Hmm... I found my 'package' declaration didn't match the name of the .pm, once I fixed that, it seems to be working fine.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is literally the only Google hit for the error:
"We can only work with Moose classes with "meta" methods at ..."
Any clue what it means or how to fix it?