Skip to content

Instantly share code, notes, and snippets.

@leto
Created June 7, 2009 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leto/125257 to your computer and use it in GitHub Desktop.
Save leto/125257 to your computer and use it in GitHub Desktop.
(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
use MooseX::Declare;
use feature 'say';
class HelloMooseXDeclare with MooseX::Getopt with MooseX::Runnable {
method run {
my ($name) = @_;
say "Hello, $name.";
return 0; # success
}
};
@dbolser
Copy link

dbolser commented Aug 18, 2011

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?

@dbolser
Copy link

dbolser commented Aug 18, 2011

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