Subject: | Moose's make_immutable call causes Devel::Cover to emit many warnings |
Install Moose (tested against 2.0007, but have seen this occuring on
earlier versions too).
Create following file:
========== Foo.pm ============
package Foo;
use Moose;
__PACKAGE__->meta->make_immutable;
1;
==============================
Now run this command:
perl -MDevel::Cover -e 'use Foo'
Observe that many pages of warnings are emitted, along the lines of:
Devel::Cover: Can't find file "-e" (-e): ignored.
Devel::Cover: Can't open generated method (unknown origin) for MD5
digest: No such file or directory
Devel::Cover: Can't find file "generated method (unknown origin)"
(generated method (unknown origin)): ignored.
Devel::Cover: Can't open constructor Moose::Meta::TypeConstraint::_new
(defined at /usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-
thread-multi/Moose/Util/TypeConstraints.pm line 695) for MD5 digest: No
such file or directory
Devel::Cover: Can't find file "constructor
Moose::Meta::TypeConstraint::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695)" (constructor
Moose::Meta::TypeConstraint::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695)): ignored.
Devel::Cover: Can't open constructor
Moose::Meta::TypeConstraint::Union::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695) for MD5 digest: No such
file or directory
Devel::Cover: Can't find file "constructor
Moose::Meta::TypeConstraint::Union::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695)" (constructor
Moose::Meta::TypeConstraint::Union::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695)): ignored.
Devel::Cover: Can't open constructor
Moose::Meta::TypeConstraint::Parameterized::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695) for MD5 digest: No such
file or directory
Devel::Cover: Can't find file "constructor
Moose::Meta::TypeConstraint::Parameterized::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695)" (constructor
Moose::Meta::TypeConstraint::Parameterized::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695)): ignored.
Devel::Cover: Can't open constructor
Moose::Meta::TypeConstraint::Parameterizable::_new (defined at
/usr/local/strategic/perl/lib/site_perl/5.12.2/x86_64-linux-thread-
multi/Moose/Util/TypeConstraints.pm line 695) for MD5 digest: No such
file or directory
etc etc