Subject: | "method '_generate_BUILDALL' was not found" in t/006-cooperative.t |
Moose 2.0002
MooseX::StrictConstructor 0.10
perl 5.10.1, Windows XP
upgrading to MooseX::StrictConstructor 0.16 solves problem
Error:
The method '_generate_BUILDALL' was not found in the inheritance
hierarchy for Moose::Meta::Class::__ANON__::SERIAL::5 at
C:/strawberry/perl/site/lib/Class/MOP/Class.pm line 1034
Class::MOP::Class::__ANON__('Moose::Meta::Class=HASH(0x12715fc)',
'_generate_BUILDALL') called at
C:/strawberry/perl/site/lib/Class/MOP/Class.pm line 1079
Class::MOP::Class::add_around_method_modifier('Moose::Meta::Class=HASH(0x12715fc)', '_generate_BUILDALL', 'CODE(0x11d9554)') called at C:/strawberry/perl/site/lib/Moose/Meta/Role/Application/ToClass.pm line 222
Moose::Meta::Role::Application::ToClass::apply_method_modifiers('Moose::Meta::Role::Application::ToClass=HASH(0x1239b94)', 'around', 'Moose::Meta::Role=HASH(0x11d9a44)', 'Moose::Meta::Class=HASH(0x12715fc)') called at C:/strawberry/perl/site/lib/Moose/Meta/Role/Application.pm line 76
Moose::Meta::Role::Application::apply_around_method_modifiers('Moose::Meta::Role::Application::ToClass=HASH(0x1239b94)', 'Moose::Meta::Role=HASH(0x11d9a44)', 'Moose::Meta::Class=HASH(0x12715fc)') called at C:/strawberry/perl/site/lib/Moose/Meta/Role/Application.pm line 62
Moose::Meta::Role::Application::apply('Moose::Meta::Role::Application::ToClass=HASH(0x1239b94)', 'Moose::Meta::Role=HASH(0x11d9a44)', 'Moose::Meta::Class=HASH(0x12715fc)') called at C:/strawberry/perl/site/lib/Moose/Meta/Role/Application/ToClass.pm line 33
Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::Role::Application::ToClass=HASH(0x1239b94)', 'Moose::Meta::Role=HASH(0x11d9a44)', 'Moose::Meta::Class=HASH(0x12715fc)', 'HASH(0x12713ec)') called at C:/strawberry/perl/site/lib/Moose/Meta/Role.pm line 482
Moose::Meta::Role::apply('Moose::Meta::Role=HASH(0x11d9a44)',
'Moose::Meta::Class=HASH(0x12715fc)') called at
C:/strawberry/perl/site/lib/Moose/Util.pm line 139
Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x12715fc)',
undef, 'MooseX::StrictConstructor::Role::Meta::Method::Constructor')
called at C:/strawberry/perl/site/lib/Moose/Util.pm line 93
Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x12715fc)',
'MooseX::StrictConstructor::Role::Meta::Method::Constructor') called at
C:/strawberry/perl/site/lib/Moose/Meta/Class.pm line 98
Moose::Meta::Class::create('Moose::Meta::Class',
'Moose::Meta::Class::__ANON__::SERIAL::5', 'roles', 'ARRAY(0xaad4d4)',
'weaken', '', 'superclasses', 'ARRAY(0x12785c4)') called at
C:/strawberry/perl/site/lib/Class/MOP/Package.pm line 119
Class::MOP::Package::create_anon('Moose::Meta::Class', 'superclasses',
'ARRAY(0x12785c4)', 'roles', 'ARRAY(0xaad4d4)', 'cache', 1) called at
C:/strawberry/perl/site/lib/Class/MOP/Class.pm line 473
Class::MOP::Class::create_anon_class('Moose::Meta::Class',
'superclasses', 'ARRAY(0x12785c4)', 'roles', 'ARRAY(0xaad4d4)', 'cache',
1) called at C:/strawberry/perl/site/lib/Moose/Util/MetaRole.pm line 206
Moose::Util::MetaRole::_make_new_class('Moose::Meta::Class::__ANON__::SERIAL::2', 'ARRAY(0xaad4d4)') called at C:/strawberry/perl/site/lib/Moose/Util/MetaRole.pm line 167
Moose::Util::MetaRole::_make_new_metaclass('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1270bcc)', 'HASH(0x10e2b3c)', 'class') called at C:/strawberry/perl/site/lib/Moose/Util/MetaRole.pm line 41
Moose::Util::MetaRole::apply_metaroles('for', 'MySingleton',
'class_metaroles', 'HASH(0x10e2b3c)') called at
C:/strawberry/perl/site/lib/Moose/Exporter.pm line 624
Moose::Exporter::__ANON__('MooseX::StrictConstructor', 'for_class',
'MySingleton', 'metaclass', undef, 'meta_name', 'meta') called at
C:/strawberry/perl/site/lib/Moose/Exporter.pm line 420
Moose::Exporter::__ANON__('MooseX::StrictConstructor') called at
t/006-cooperative.t line 15
MySingleton::BEGIN() called at t/006-cooperative.t line 15
eval {...} called at t/006-cooperative.t line 15
BEGIN failed--compilation aborted at t/006-cooperative.t line 15.
t/006-cooperative.t ..........
--
Alexandr Ciornii, http://chorny.net