Whenever you suspect that a tool (module, perl compiler, whatever) has a problem, try to boil down the problem to the absolutely minimal case that could exhibit the problem. I've tried it here:
package Local::Quickbooks; use Moose; sub getnew { } package Local::Quickbooks::GetNewTicketData; use Moose::Role; override 'getnew' => sub { }; package Local::Quickbooks::InvoiceAdd; use Moose; extends qw(Local::Quickbooks); with 'Local::Quickbooks::GetNewTicketData';
On a perl 5.14.1 with Moose 2.0009 this doesn't produce an error.
So I guess it's a metaperl bug rather than a Moose bug (or fixed, and your Moose is too old), and some of the other hundred classes in your code do something odd, and causes some odd behavior on Moose along the way.
So, create a copy of your project, and successively delete stuff from it until the error goes away. When the error goes away, press "undo" in your editor, and look closely at the just restored code.
In reply to Re: You cannot override 'getnew' because it has no super method
by moritz
in thread You cannot override 'getnew' because it has no super method
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |