Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Moose error?

by Anonymous Monk
on Feb 23, 2012 at 12:12 UTC ( [id://955716]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone interpret this for me?

perl Reprove.pl Could not create the 'reader' method for variable_name because : Could + not generate inline reader because : Could not create writer for 'va +riable_name' because Failed to compile source: Compilation error source: sub { if (@_ > 1) { die Moose::Error::Util::create_error(message => "Cannot assign a value + to a read-only accessor", depth => -1, ); } return $_[0]->{"variable_name"}; } at C:/Perl64/site/lib/Class/MOP/Method/Generated.pm line 63 at C:/Perl64/site/lib/Moose/Meta/Method/Accessor.pm line 41 Moose::Meta::Method::Accessor::__ANON__[C:/Perl64/site/lib/Moo +se/Meta/Method/Accessor.pm:47]('Failed to compile source: Compilation + error\x{a}\x{a}source:\x{a}sub {\x{a}if...') called at C:/Perl64/sit +e/lib/Try/Tiny.pm line 100 Try::Tiny::try('CODE(0x7ae5268)', 'Try::Tiny::Catch=REF(0x7ae4 +da0)') called at C:/Perl64/site/lib/Moose/Meta/Method/Accessor.pm lin +e 47 Moose::Meta::Method::Accessor::_compile_code('Moose::Meta::Met +hod::Accessor=HASH(0x7ae3ae8)', 'ARRAY(0x7ae4ea8)') called at C:/Perl +64/site/lib/Class/MOP/Method/Accessor.pm line 142 Class::MOP::Method::Accessor::__ANON__[C:/Perl64/site/lib/Clas +s/MOP/Method/Accessor.pm:154]() called at C:/Perl64/site/lib/Try/Tiny +.pm line 74 eval {...} called at C:/Perl64/site/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x7ae3a88)', 'Try::Tiny::Catch=REF(0x7ae3 +938)') called at C:/Perl64/site/lib/Class/MOP/Method/Accessor.pm line + 157 Class::MOP::Method::Accessor::_generate_reader_method_inline(' +Moose::Meta::Method::Accessor=HASH(0x7ae3ae8)') called at C:/Perl64/s +ite/lib/Moose/Meta/Method/Accessor.pm line 62 Moose::Meta::Method::Accessor::_generate_reader_method('Moose: +:Meta::Method::Accessor=HASH(0x7ae3ae8)') called at C:/Perl64/site/li +b/Class/MOP/Method/Accessor.pm line 90 Class::MOP::Method::Accessor::_initialize_body('Moose::Meta::M +ethod::Accessor=HASH(0x7ae3ae8)') called at C:/Perl64/site/lib/Class/ +MOP/Method/Accessor.pm line 42 Class::MOP::Method::Accessor::new('Moose::Meta::Method::Access +or', 'attribute', 'Moose::Meta::Attribute=HASH(0x7ae36c8)', 'is_inlin +e', undef, 'accessor_type', 'reader', 'package_name', 'MooseX::Traits +::__ANON__::SERIAL::2', 'name', 'variable_name', 'associated_metaclas +s', 'Moose::Meta::Class=HASH(0x7ae1558)', 'definition_co Class::MOP::Attribute::__ANON__[C:/Perl64/site/lib/Class/MOP/A +ttribute.pm:398]() called at C:/Perl64/site/lib/Try/Tiny.pm line 76 eval {...} called at C:/Perl64/site/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x7ae5118)', 'Try::Tiny::Catch=REF(0x7ae5 +058)') called at C:/Perl64/site/lib/Class/MOP/Attribute.pm line 401 Class::MOP::Attribute::_process_accessors('Moose::Meta::Attrib +ute=HASH(0x7ae36c8)', 'reader', 'variable_name', undef) called at C:/ +Perl64/site/lib/Moose/Meta/Attribute.pm line 1074 Moose::Meta::Attribute::_process_accessors('Moose::Meta::Attri +bute=HASH(0x7ae36c8)', 'reader', 'variable_name', undef) called at C: +/Perl64/site/lib/Class/MOP/Attribute.pm line 428 Class::MOP::Attribute::install_accessors('Moose::Meta::Attribu +te=HASH(0x7ae36c8)') called at C:/Perl64/site/lib/Moose/Meta/Attribut +e.pm line 1013 Moose::Meta::Attribute::install_accessors('Moose::Meta::Attrib +ute=HASH(0x7ae36c8)') called at C:/Perl64/site/lib/Class/MOP/Class.pm + line 891 Class::MOP::Class::__ANON__[C:/Perl64/site/lib/Class/MOP/Class +.pm:892]() called at C:/Perl64/site/lib/Try/Tiny.pm line 76 eval {...} called at C:/Perl64/site/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x7ae3338)', 'Try::Tiny::Catch=REF(0x7adf +b38)') called at C:/Perl64/site/lib/Class/MOP/Class.pm line 896 Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HAS +H(0x7ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') called at C: +/Perl64/site/lib/Class/MOP/Mixin/HasAttributes.pm line 44 Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta:: +Class=HASH(0x7ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') cal +led at C:/Perl64/site/lib/Moose/Meta/Class.pm line 570 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x7 +ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') called at C:/Perl +64/site/lib/Moose/Meta/Role/Application/ToClass.pm line 152 Moose::Meta::Role::Application::ToClass::apply_attributes('Moo +se::Meta::Role::Application::ToClass=HASH(0x7ae11e0)', 'Moose::Meta:: +Role::Composite=HASH(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558) +') called at C:/Perl64/site/lib/Moose/Meta/Role/Application.pm line 5 +8 Moose::Meta::Role::Application::apply('Moose::Meta::Role::Appl +ication::ToClass=HASH(0x7ae11e0)', 'Moose::Meta::Role::Composite=HASH +(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)') called at C:/Perl +64/site/lib/Moose/Meta/Role/Application/ToClass.pm line 36 Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::R +ole::Application::ToClass=HASH(0x7ae11e0)', 'Moose::Meta::Role::Compo +site=HASH(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)', 'HASH(0x +7a0afd8)') called at C:/Perl64/site/lib/Moose/Meta/Role.pm line 470 Moose::Meta::Role::apply('Moose::Meta::Role::Composite=HASH(0x +7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)') called at C:/Perl64/ +site/lib/Moose/Util.pm line 163 Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x7ae15 +58)', undef, 'Parse::Method::Signatures::Param::Bindable', 'Parse::Me +thod::Signatures::Param::Positional') called at C:/Perl64/site/lib/Mo +ose/Util.pm line 99 Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x7ae155 +8)', 'Parse::Method::Signatures::Param::Bindable', 'Parse::Method::Si +gnatures::Param::Positional') called at C:/Perl64/site/lib/Moose/Meta +/Class.pm line 105 Moose::Meta::Class::create('Class::MOP::Class::Immutable::Moos +e::Meta::Class=HASH(0x79df710)', 'MooseX::Traits::__ANON__::SERIAL::2 +', 'superclasses', 'ARRAY(0x7ae0710)', 'roles', 'ARRAY(0x79e6a50)', ' +cache', 1) called at C:/Perl64/site/lib/MooseX/Traits/Util.pm line 68 MooseX::Traits::Util::new_class_with_traits('Parse::Method::Si +gnatures::Param', 'Bindable', 'Positional') called at C:/Perl64/site/ +lib/MooseX/Traits.pm line 24 MooseX::Traits::with_traits('Parse::Method::Signatures::Param' +, 'Bindable', 'Positional') called at C:/Perl64/site/lib/MooseX/Trait +s.pm line 46 MooseX::Traits::new_with_traits('Parse::Method::Signatures::Pa +ram', 'traits', 'ARRAY(0x7a05b38)', 'required', 1, 'type_constraints' +, 'Parse::Method::Signatures::TypeConstraint=HASH(0x7ae1000)', 'varia +ble_name', '$file', 'sigil', '$') called at C:/Perl64/site/lib/Parse/ +Method/Signatures.pm line 113 Parse::Method::Signatures::create_param('Parse::Method::Signat +ures=HASH(0x7ae04d0)', 'HASH(0x7ae04b8)') called at C:/Perl64/site/li +b/Parse/Method/Signatures.pm line 359 Parse::Method::Signatures::param('Parse::Method::Signatures=HA +SH(0x7ae04d0)') called at C:/Perl64/site/lib/Parse/Method/Signatures. +pm line 248 Parse::Method::Signatures::signature('Parse::Method::Signature +s', 'input', '(Str $file, $fh)', 'from_namespace', 'Module::Reprove') + called at C:/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm + line 199 MooseX::Method::Signatures::Meta::Method::_build_parsed_signat +ure('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') calle +d at (eval 400)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::parsed_signature('Mo +oseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C: +/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 319 MooseX::Method::Signatures::Meta::Method::_build__positional_a +rgs('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') calle +d at (eval 404)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::_positional_args('Mo +oseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C: +/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 369 MooseX::Method::Signatures::Meta::Method::_build_type_constrai +nt('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called + at (eval 409)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::type_constraint('Moo +seX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C:/ +Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 174 Class::MOP::Class:::around('CODE(0x4533e28)', 'MooseX::Method: +:Signatures::Meta::Method', 'CODE(0x7adff90)', 'signature', '(Str $fi +le, $fh)', 'name', '_getfile_to_handle', 'package_name', 'Module::Rep +rove') called at C:/Perl64/site/lib/Class/MOP/Method/Wrapped.pm line +162 Class::MOP::Method::Wrapped::__ANON__[C:/Perl64/site/lib/Class +/MOP/Method/Wrapped.pm:162]('MooseX::Method::Signatures::Meta::Method +', 'CODE(0x7adff90)', 'signature', '(Str $file, $fh)', 'name', '_getf +ile_to_handle', 'package_name', 'Module::Reprove') called at C:/Perl6 +4/site/lib/Class/MOP/Method/Wrapped.pm line 91 MooseX::Method::Signatures::Meta::Method::wrap('MooseX::Method +::Signatures::Meta::Method', 'CODE(0x7adff90)', 'signature', '(Str $f +ile, $fh)', 'name', '_getfile_to_handle', 'package_name', 'Module::Re +prove') called at C:/Perl64/site/lib/MooseX/Method/Signatures.pm line + 259 MooseX::Method::Signatures::_parser('MooseX::Method::Signature +s=HASH(0x7adffa8)') called at C:/Perl64/site/lib/MooseX/Method/Signat +ures.pm line 200 eval {...} called at C:/Perl64/site/lib/MooseX/Method/Signatur +es.pm line 200 MooseX::Method::Signatures::parser('MooseX::Method::Signatures +=HASH(0x7adffa8)') called at C:/Perl64/site/lib/MooseX/Declare/Syntax +/MethodDeclaration.pm line 51 MooseX::Declare::Syntax::MethodDeclaration::parse('MooseX::Dec +lare::Syntax::Keyword::Method=HASH(0x6e2e658)', 'MooseX::Declare::Con +text=HASH(0x7adfe28)') called at C:/Perl64/site/lib/MooseX/Declare/Sy +ntax/KeywordHandling.pm line 97 MooseX::Declare::Syntax::KeywordHandling::parse_declaration('M +ooseX::Declare::Syntax::Keyword::Method=HASH(0x6e2e658)', 'C:/Perl64/ +site/lib/Module/Reprove.pm', 'HASH(0x6e2eca0)', 'method', 1) called a +t C:/Perl64/site/lib/MooseX/Declare/Syntax/KeywordHandling.pm line 51 MooseX::Declare::Syntax::KeywordHandling::__ANON__[C:/Perl64/s +ite/lib/MooseX/Declare/Syntax/KeywordHandling.pm:51]('method', 1) cal +led at C:/Perl64/site/lib/Devel/Declare.pm line 279 Devel::Declare::linestr_callback('const', 'method', 1) called +at C:/Perl64/site/lib/Module/Reprove.pm line 109 require Module/Reprove.pm called at C:/Perl64/site/lib/App/Rep +rove.pm line 16 App::Reprove::BEGIN() called at C:/Perl64/site/lib/Module/Repr +ove.pm line 109 eval {...} called at C:/Perl64/site/lib/Module/Reprove.pm line + 109 require App/Reprove.pm called at Reprove.pl line 3 main::BEGIN() called at C:/Perl64/site/lib/Module/Reprove.pm l +ine 109 eval {...} called at C:/Perl64/site/lib/Module/Reprove.pm line + 109 at C:/Perl64/site/lib/Class/MOP/Method/Accessor.pm line 156 Class::MOP::Method::Accessor::__ANON__[C:/Perl64/site/lib/Clas +s/MOP/Method/Accessor.pm:157]('Could not create writer for \'variable +_name\' because Failed ...') called at C:/Perl64/site/lib/Try/Tiny.pm + line 100 Try::Tiny::try('CODE(0x7ae3a88)', 'Try::Tiny::Catch=REF(0x7ae3 +938)') called at C:/Perl64/site/lib/Class/MOP/Method/Accessor.pm line + 157 Class::MOP::Method::Accessor::_generate_reader_method_inline(' +Moose::Meta::Method::Accessor=HASH(0x7ae3ae8)') called at C:/Perl64/s +ite/lib/Moose/Meta/Method/Accessor.pm line 62 Moose::Meta::Method::Accessor::_generate_reader_method('Moose: +:Meta::Method::Accessor=HASH(0x7ae3ae8)') called at C:/Perl64/site/li +b/Class/MOP/Method/Accessor.pm line 90 Class::MOP::Method::Accessor::_initialize_body('Moose::Meta::M +ethod::Accessor=HASH(0x7ae3ae8)') called at C:/Perl64/site/lib/Class/ +MOP/Method/Accessor.pm line 42 Class::MOP::Method::Accessor::new('Moose::Meta::Method::Access +or', 'attribute', 'Moose::Meta::Attribute=HASH(0x7ae36c8)', 'is_inlin +e', undef, 'accessor_type', 'reader', 'package_name', 'MooseX::Traits +::__ANON__::SERIAL::2', ...) called at C:/Perl64/site/lib/Class/MOP/A +ttribute.pm line 389 Class::MOP::Attribute::__ANON__[C:/Perl64/site/lib/Class/MOP/A +ttribute.pm:398]() called at C:/Perl64/site/lib/Try/Tiny.pm line 76 eval {...} called at C:/Perl64/site/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x7ae5118)', 'Try::Tiny::Catch=REF(0x7ae5 +058)') called at C:/Perl64/site/lib/Class/MOP/Attribute.pm line 401 Class::MOP::Attribute::_process_accessors('Moose::Meta::Attrib +ute=HASH(0x7ae36c8)', 'reader', 'variable_name', undef) called at C:/ +Perl64/site/lib/Moose/Meta/Attribute.pm line 1074 Moose::Meta::Attribute::_process_accessors('Moose::Meta::Attri +bute=HASH(0x7ae36c8)', 'reader', 'variable_name', undef) called at C: +/Perl64/site/lib/Class/MOP/Attribute.pm line 428 Class::MOP::Attribute::install_accessors('Moose::Meta::Attribu +te=HASH(0x7ae36c8)') called at C:/Perl64/site/lib/Moose/Meta/Attribut +e.pm line 1013 Moose::Meta::Attribute::install_accessors('Moose::Meta::Attrib +ute=HASH(0x7ae36c8)') called at C:/Perl64/site/lib/Class/MOP/Class.pm + line 891 Class::MOP::Class::__ANON__[C:/Perl64/site/lib/Class/MOP/Class +.pm:892]() called at C:/Perl64/site/lib/Try/Tiny.pm line 76 eval {...} called at C:/Perl64/site/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x7ae3338)', 'Try::Tiny::Catch=REF(0x7adf +b38)') called at C:/Perl64/site/lib/Class/MOP/Class.pm line 896 Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HAS +H(0x7ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') called at C: +/Perl64/site/lib/Class/MOP/Mixin/HasAttributes.pm line 44 Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta:: +Class=HASH(0x7ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') cal +led at C:/Perl64/site/lib/Moose/Meta/Class.pm line 570 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x7 +ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') called at C:/Perl +64/site/lib/Moose/Meta/Role/Application/ToClass.pm line 152 Moose::Meta::Role::Application::ToClass::apply_attributes('Moo +se::Meta::Role::Application::ToClass=HASH(0x7ae11e0)', 'Moose::Meta:: +Role::Composite=HASH(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558) +') called at C:/Perl64/site/lib/Moose/Meta/Role/Application.pm line 5 +8 Moose::Meta::Role::Application::apply('Moose::Meta::Role::Appl +ication::ToClass=HASH(0x7ae11e0)', 'Moose::Meta::Role::Composite=HASH +(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)') called at C:/Perl +64/site/lib/Moose/Meta/Role/Application/ToClass.pm line 36 Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::R +ole::Application::ToClass=HASH(0x7ae11e0)', 'Moose::Meta::Role::Compo +site=HASH(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)', 'HASH(0x +7a0afd8)') called at C:/Perl64/site/lib/Moose/Meta/Role.pm line 470 Moose::Meta::Role::apply('Moose::Meta::Role::Composite=HASH(0x +7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)') called at C:/Perl64/ +site/lib/Moose/Util.pm line 163 Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x7ae15 +58)', undef, 'Parse::Method::Signatures::Param::Bindable', 'Parse::Me +thod::Signatures::Param::Positional') called at C:/Perl64/site/lib/Mo +ose/Util.pm line 99 Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x7ae155 +8)', 'Parse::Method::Signatures::Param::Bindable', 'Parse::Method::Si +gnatures::Param::Positional') called at C:/Perl64/site/lib/Moose/Meta +/Class.pm line 105 Moose::Meta::Class::create('Class::MOP::Class::Immutable::Moos +e::Meta::Class=HASH(0x79df710)', 'MooseX::Traits::__ANON__::SERIAL::2 +', 'superclasses', 'ARRAY(0x7ae0710)', 'roles', 'ARRAY(0x79e6a50)', ' +cache', 1) called at C:/Perl64/site/lib/MooseX/Traits/Util.pm line 68 MooseX::Traits::Util::new_class_with_traits('Parse::Method::Si +gnatures::Param', 'Bindable', 'Positional') called at C:/Perl64/site/ +lib/MooseX/Traits.pm line 24 MooseX::Traits::with_traits('Parse::Method::Signatures::Param' +, 'Bindable', 'Positional') called at C:/Perl64/site/lib/MooseX/Trait +s.pm line 46 MooseX::Traits::new_with_traits('Parse::Method::Signatures::Pa +ram', 'traits', 'ARRAY(0x7a05b38)', 'required', 1, 'type_constraints' +, 'Parse::Method::Signatures::TypeConstraint=HASH(0x7ae1000)', 'varia +ble_name', '$file', ...) called at C:/Perl64/site/lib/Parse/Method/Si +gnatures.pm line 113 Parse::Method::Signatures::create_param('Parse::Method::Signat +ures=HASH(0x7ae04d0)', 'HASH(0x7ae04b8)') called at C:/Perl64/site/li +b/Parse/Method/Signatures.pm line 359 Parse::Method::Signatures::param('Parse::Method::Signatures=HA +SH(0x7ae04d0)') called at C:/Perl64/site/lib/Parse/Method/Signatures. +pm line 248 Parse::Method::Signatures::signature('Parse::Method::Signature +s', 'input', '(Str $file, $fh)', 'from_namespace', 'Module::Reprove') + called at C:/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm + line 199 MooseX::Method::Signatures::Meta::Method::_build_parsed_signat +ure('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') calle +d at (eval 400)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::parsed_signature('Mo +oseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C: +/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 319 MooseX::Method::Signatures::Meta::Method::_build__positional_a +rgs('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') calle +d at (eval 404)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::_positional_args('Mo +oseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C: +/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 369 MooseX::Method::Signatures::Meta::Method::_build_type_constrai +nt('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called + at (eval 409)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::type_constraint('Moo +seX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C:/ +Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 174 Class::MOP::Class:::around('CODE(0x4533e28)', 'MooseX::Method: +:Signatures::Meta::Method', 'CODE(0x7adff90)', 'signature', '(Str $fi +le, $fh)', 'name', '_getfile_to_handle', 'package_name', 'Module::Rep +rove', ...) called at C:/Perl64/site/lib/Class/MOP/Method/Wrapped.pm +line 162 Class::MOP::Method::Wrapped::__ANON__[C:/Perl64/site/lib/Class +/MOP/Method/Wrapped.pm:162]('MooseX::Method::Signatures::Meta::Method +', 'CODE(0x7adff90)', 'signature', '(Str $file, $fh)', 'name', '_getf +ile_to_handle', 'package_name', 'Module::Reprove') called at C:/Perl6 +4/site/lib/Class/MOP/Method/Wrapped.pm line 91 MooseX::Method::Signatures::Meta::Method::wrap('MooseX::Method +::Signatures::Meta::Method', 'CODE(0x7adff90)', 'signature', '(Str $f +ile, $fh)', 'name', '_getfile_to_handle', 'package_name', 'Module::Re +prove') called at C:/Perl64/site/lib/MooseX/Method/Signatures.pm line + 259 MooseX::Method::Signatures::_parser('MooseX::Method::Signature +s=HASH(0x7adffa8)') called at C:/Perl64/site/lib/MooseX/Method/Signat +ures.pm line 200 eval {...} called at C:/Perl64/site/lib/MooseX/Method/Signatur +es.pm line 200 MooseX::Method::Signatures::parser('MooseX::Method::Signatures +=HASH(0x7adffa8)') called at C:/Perl64/site/lib/MooseX/Declare/Syntax +/MethodDeclaration.pm line 51 MooseX::Declare::Syntax::MethodDeclaration::parse('MooseX::Dec +lare::Syntax::Keyword::Method=HASH(0x6e2e658)', 'MooseX::Declare::Con +text=HASH(0x7adfe28)') called at C:/Perl64/site/lib/MooseX/Declare/Sy +ntax/KeywordHandling.pm line 97 MooseX::Declare::Syntax::KeywordHandling::parse_declaration('M +ooseX::Declare::Syntax::Keyword::Method=HASH(0x6e2e658)', 'C:/Perl64/ +site/lib/Module/Reprove.pm', 'HASH(0x6e2eca0)', 'method', 1) called a +t C:/Perl64/site/lib/MooseX/Declare/Syntax/KeywordHandling.pm line 51 MooseX::Declare::Syntax::KeywordHandling::__ANON__[C:/Perl64/s +ite/lib/MooseX/Declare/Syntax/KeywordHandling.pm:51]('method', 1) cal +led at C:/Perl64/site/lib/Devel/Declare.pm line 279 Devel::Declare::linestr_callback('const', 'method', 1) called +at C:/Perl64/site/lib/Module/Reprove.pm line 109 require Module/Reprove.pm called at C:/Perl64/site/lib/App/Rep +rove.pm line 16 App::Reprove::BEGIN() called at C:/Perl64/site/lib/Module/Repr +ove.pm line 109 eval {...} called at C:/Perl64/site/lib/Module/Reprove.pm line + 109 require App/Reprove.pm called at Reprove.pl line 3 main::BEGIN() called at C:/Perl64/site/lib/Module/Reprove.pm l +ine 109 eval {...} called at C:/Perl64/site/lib/Module/Reprove.pm line + 109 at C:/Perl64/site/lib/Class/MOP/Attribute.pm line 400 Class::MOP::Attribute::__ANON__[C:/Perl64/site/lib/Class/MOP/A +ttribute.pm:401]('Could not generate inline reader because : Could no +t create w...') called at C:/Perl64/site/lib/Try/Tiny.pm line 100 Try::Tiny::try('CODE(0x7ae5118)', 'Try::Tiny::Catch=REF(0x7ae5 +058)') called at C:/Perl64/site/lib/Class/MOP/Attribute.pm line 401 Class::MOP::Attribute::_process_accessors('Moose::Meta::Attrib +ute=HASH(0x7ae36c8)', 'reader', 'variable_name', undef) called at C:/ +Perl64/site/lib/Moose/Meta/Attribute.pm line 1074 Moose::Meta::Attribute::_process_accessors('Moose::Meta::Attri +bute=HASH(0x7ae36c8)', 'reader', 'variable_name', undef) called at C: +/Perl64/site/lib/Class/MOP/Attribute.pm line 428 Class::MOP::Attribute::install_accessors('Moose::Meta::Attribu +te=HASH(0x7ae36c8)') called at C:/Perl64/site/lib/Moose/Meta/Attribut +e.pm line 1013 Moose::Meta::Attribute::install_accessors('Moose::Meta::Attrib +ute=HASH(0x7ae36c8)') called at C:/Perl64/site/lib/Class/MOP/Class.pm + line 891 Class::MOP::Class::__ANON__[C:/Perl64/site/lib/Class/MOP/Class +.pm:892]() called at C:/Perl64/site/lib/Try/Tiny.pm line 76 eval {...} called at C:/Perl64/site/lib/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x7ae3338)', 'Try::Tiny::Catch=REF(0x7adf +b38)') called at C:/Perl64/site/lib/Class/MOP/Class.pm line 896 Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HAS +H(0x7ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') called at C: +/Perl64/site/lib/Class/MOP/Mixin/HasAttributes.pm line 44 Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta:: +Class=HASH(0x7ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') cal +led at C:/Perl64/site/lib/Moose/Meta/Class.pm line 570 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x7 +ae1558)', 'Moose::Meta::Attribute=HASH(0x7ae36c8)') called at C:/Perl +64/site/lib/Moose/Meta/Role/Application/ToClass.pm line 152 Moose::Meta::Role::Application::ToClass::apply_attributes('Moo +se::Meta::Role::Application::ToClass=HASH(0x7ae11e0)', 'Moose::Meta:: +Role::Composite=HASH(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558) +') called at C:/Perl64/site/lib/Moose/Meta/Role/Application.pm line 5 +8 Moose::Meta::Role::Application::apply('Moose::Meta::Role::Appl +ication::ToClass=HASH(0x7ae11e0)', 'Moose::Meta::Role::Composite=HASH +(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)') called at C:/Perl +64/site/lib/Moose/Meta/Role/Application/ToClass.pm line 36 Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::R +ole::Application::ToClass=HASH(0x7ae11e0)', 'Moose::Meta::Role::Compo +site=HASH(0x7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)', 'HASH(0x +7a0afd8)') called at C:/Perl64/site/lib/Moose/Meta/Role.pm line 470 Moose::Meta::Role::apply('Moose::Meta::Role::Composite=HASH(0x +7ae15b8)', 'Moose::Meta::Class=HASH(0x7ae1558)') called at C:/Perl64/ +site/lib/Moose/Util.pm line 163 Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x7ae15 +58)', undef, 'Parse::Method::Signatures::Param::Bindable', 'Parse::Me +thod::Signatures::Param::Positional') called at C:/Perl64/site/lib/Mo +ose/Util.pm line 99 Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x7ae155 +8)', 'Parse::Method::Signatures::Param::Bindable', 'Parse::Method::Si +gnatures::Param::Positional') called at C:/Perl64/site/lib/Moose/Meta +/Class.pm line 105 Moose::Meta::Class::create('Class::MOP::Class::Immutable::Moos +e::Meta::Class=HASH(0x79df710)', 'MooseX::Traits::__ANON__::SERIAL::2 +', 'superclasses', 'ARRAY(0x7ae0710)', 'roles', 'ARRAY(0x79e6a50)', ' +cache', 1) called at C:/Perl64/site/lib/MooseX/Traits/Util.pm line 68 MooseX::Traits::Util::new_class_with_traits('Parse::Method::Si +gnatures::Param', 'Bindable', 'Positional') called at C:/Perl64/site/ +lib/MooseX/Traits.pm line 24 MooseX::Traits::with_traits('Parse::Method::Signatures::Param' +, 'Bindable', 'Positional') called at C:/Perl64/site/lib/MooseX/Trait +s.pm line 46 MooseX::Traits::new_with_traits('Parse::Method::Signatures::Pa +ram', 'traits', 'ARRAY(0x7a05b38)', 'required', 1, 'type_constraints' +, 'Parse::Method::Signatures::TypeConstraint=HASH(0x7ae1000)', 'varia +ble_name', '$file', ...) called at C:/Perl64/site/lib/Parse/Method/Si +gnatures.pm line 113 Parse::Method::Signatures::create_param('Parse::Method::Signat +ures=HASH(0x7ae04d0)', 'HASH(0x7ae04b8)') called at C:/Perl64/site/li +b/Parse/Method/Signatures.pm line 359 Parse::Method::Signatures::param('Parse::Method::Signatures=HA +SH(0x7ae04d0)') called at C:/Perl64/site/lib/Parse/Method/Signatures. +pm line 248 Parse::Method::Signatures::signature('Parse::Method::Signature +s', 'input', '(Str $file, $fh)', 'from_namespace', 'Module::Reprove') + called at C:/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm + line 199 MooseX::Method::Signatures::Meta::Method::_build_parsed_signat +ure('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') calle +d at (eval 400)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::parsed_signature('Mo +oseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C: +/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 319 MooseX::Method::Signatures::Meta::Method::_build__positional_a +rgs('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') calle +d at (eval 404)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::_positional_args('Mo +oseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C: +/Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 369 MooseX::Method::Signatures::Meta::Method::_build_type_constrai +nt('MooseX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called + at (eval 409)[C:/Perl64/site/lib/Eval/Closure.pm:125] line 12 MooseX::Method::Signatures::Meta::Method::type_constraint('Moo +seX::Method::Signatures::Meta::Method=HASH(0x7ae0608)') called at C:/ +Perl64/site/lib/MooseX/Method/Signatures/Meta/Method.pm line 174 Class::MOP::Class:::around('CODE(0x4533e28)', 'MooseX::Method: +:Signatures::Meta::Method', 'CODE(0x7adff90)', 'signature', '(Str $fi +le, $fh)', 'name', '_getfile_to_handle', 'package_name', 'Module::Rep +rove', ...) called at C:/Perl64/site/lib/Class/MOP/Method/Wrapped.pm +line 162 Class::MOP::Method::Wrapped::__ANON__[C:/Perl64/site/lib/Class +/MOP/Method/Wrapped.pm:162]('MooseX::Method::Signatures::Meta::Method +', 'CODE(0x7adff90)', 'signature', '(Str $file, $fh)', 'name', '_getf +ile_to_handle', 'package_name', 'Module::Reprove') called at C:/Perl6 +4/site/lib/Class/MOP/Method/Wrapped.pm line 91 MooseX::Method::Signatures::Meta::Method::wrap('MooseX::Method +::Signatures::Meta::Method', 'CODE(0x7adff90)', 'signature', '(Str $f +ile, $fh)', 'name', '_getfile_to_handle', 'package_name', 'Module::Re +prove') called at C:/Perl64/site/lib/MooseX/Method/Signatures.pm line + 259 MooseX::Method::Signatures::_parser('MooseX::Method::Signature +s=HASH(0x7adffa8)') called at C:/Perl64/site/lib/MooseX/Method/Signat +ures.pm line 200 eval {...} called at C:/Perl64/site/lib/MooseX/Method/Signatur +es.pm line 200 MooseX::Method::Signatures::parser('MooseX::Method::Signatures +=HASH(0x7adffa8)') called at C:/Perl64/site/lib/MooseX/Declare/Syntax +/MethodDeclaration.pm line 51 MooseX::Declare::Syntax::MethodDeclaration::parse('MooseX::Dec +lare::Syntax::Keyword::Method=HASH(0x6e2e658)', 'MooseX::Declare::Con +text=HASH(0x7adfe28)') called at C:/Perl64/site/lib/MooseX/Declare/Sy +ntax/KeywordHandling.pm line 97 MooseX::Declare::Syntax::KeywordHandling::parse_declaration('M +ooseX::Declare::Syntax::Keyword::Method=HASH(0x6e2e658)', 'C:/Perl64/ +site/lib/Module/Reprove.pm', 'HASH(0x6e2eca0)', 'method', 1) called a +t C:/Perl64/site/lib/MooseX/Declare/Syntax/KeywordHandling.pm line 51 MooseX::Declare::Syntax::KeywordHandling::__ANON__[C:/Perl64/s +ite/lib/MooseX/Declare/Syntax/KeywordHandling.pm:51]('method', 1) cal +led at C:/Perl64/site/lib/Devel/Declare.pm line 279 Devel::Declare::linestr_callback('const', 'method', 1) called +at C:/Perl64/site/lib/Module/Reprove.pm line 109 require Module/Reprove.pm called at C:/Perl64/site/lib/App/Rep +rove.pm line 16 App::Reprove::BEGIN() called at C:/Perl64/site/lib/Module/Repr +ove.pm line 109 eval {...} called at C:/Perl64/site/lib/Module/Reprove.pm line + 109 require App/Reprove.pm called at Reprove.pl line 3 main::BEGIN() called at C:/Perl64/site/lib/Module/Reprove.pm l +ine 109 eval {...} called at C:/Perl64/site/lib/Module/Reprove.pm line + 109 Compilation failed in require at C:/Perl64/site/lib/App/Reprove.pm lin +e 16. BEGIN failed--compilation aborted at C:/Perl64/site/lib/App/Reprove.pm + line 16. Compilation failed in require at Reprove.pl line 3. BEGIN failed--compilation aborted at Reprove.pl line 3.

Replies are listed 'Best First'.
Re: Moose error?
by tobyink (Canon) on Feb 23, 2012 at 13:42 UTC

    Is Reprove.pl the same script that comes with Module::Reprove, or is it a script you've written. If the latter, can you post the source code?

    What versions of Moose, MooseX::Declare and MooseX::Method::Signatures are you using?

      Yes, the its the same script unchanged.

      perl -MMoose -E"say $Moose::VERSION" 2.0402 perl -MMooseX::Declare -E"say $MooseX::Declare::VERSION" 0.35 perl -MMooseX::Method::Signatures -E"say $MooseX::Method::Signatures:: +VERSION" 0.37

        What is output from running perl Makefile.PL?

        You should probably upgrade all Moose* modules to their latest versions

Re: Moose error?
by viento (Initiate) on Mar 12, 2013 at 11:26 UTC
    Hi,

    You have probable some syntax error in source code.

    But,
    the deepest reason of this error is the circular depencency.

    So remove this depedency. Yes remove it, move some functions to external module or something. It is always good idea to do it.

    If you want fast workaround - use 'require' for this circular module.

    The difference between use and require is that require is including module during the execution time, and use at the compilation time (equivalent to use 'require' in BEGIN section). And this is a problem for Moose

Re: Moose error?
by Anonymous Monk on Mar 07, 2013 at 09:58 UTC
    Probable you have some syntax error. In some cases (not yet detected when), in place of, for example undeclared variable error you are getting such error. example:
    use # put all modules you are using # and only this line $testing; # this should repeat your error # # so start searching for misspelled variable

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://955716]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found