Skip Menu |

This queue is for tickets about the MooseX-Method-Signatures CPAN distribution.

Report information
The Basics
Id: 74986
Status: resolved
Priority: 0/
Queue: MooseX-Method-Signatures

People
Owner: Nobody in particular
Requestors: CMCKAY [...] cpan.org
outerrimlogging [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.37
Fixed in: 0.44



Subject: t/errors.t fails with Eval::Closure > 0.06
I'm not sure if this bug is something to do with this module or something better attributed to Eval::Closure, but this is the only example I have so far. With Eval::Closure 0.07 and 0.08 this test fails. I haven't seen any impact on normal operation of the module since I updated Eval::Closure, but then I haven't extensively exercised it either since finding that the tests fail. Everything works fine with Eval::Closure 0.06. Tested on centos with perlbrewed 5.12.3 5.14.0 ubuntu with perlbrewed 5.14.2 # Failed test 'Sane error message for syntax error' # at t/errors.t line 11. # 'Failed to compile source: Compilation error # # source: # sub { ( do { do {my $check = $_[0];ref($check) eq "ARRAY" && &List::MoreUtils::all(sub { ( do { 1 } ) }, @{$check})} } ) } at /home/cmckay/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/i686-linux-thread-multi/Moose/Meta/TypeConstraint.pm line 320 # Compilation failed in require at (eval 10) line 1. # BEGIN failed--compilation aborted at (eval 10) line 1. # ' # doesn't match '(?^:^Global symbol "\$op" requires explicit package name at .*?\bInvalidCase01.pm line 8\b)' # Looks like you failed 1 test of 4. t/errors.t ........................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests
I'm getting the same error on Mac OS X 10.7.3 with Perl 5.14.2 after attempting to install for the first time (using cpan). I'm also using perlbrew. cpan[15]> install MooseX::Method::Signatures Running install for module 'MooseX::Method::Signatures' Running make for I/IL/ILMARI/MooseX-Method-Signatures-0.37.tar.gz Has already been unwrapped into directory /Users/ken/.cpan/build/MooseX-Method- Signatures-0.37-ysB4z3 Has already been made Running make test PERL_DL_NONLAZY=1 /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/bin/perl "- MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t .......................... ok t/attributes.t ....................... ok t/author-pod.t ....................... skipped: these tests are for testing by the author t/author-transactional-authorized.t .. skipped: these tests are for testing by the author t/basic.t ............................ ok t/caller.t ........................... ok t/closure.t .......................... ok t/declarators.t ...................... ok t/errors.t ........................... 1/? # Failed test 'Sane error message for syntax error' # at t/errors.t line 11. # 'Failed to compile source: Compilation error # # source: # sub { ( do { do {my $check = $_[0];ref($check) eq "ARRAY" && &List::MoreUtils::all(sub { ( do { 1 } ) }, @{$check})} } ) } at /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/ site_perl/5.14.2/darwin-thread-multi-2level/Moose/Meta/TypeConstraint.pm line 320 # Compilation failed in require at (eval 10) line 1. # BEGIN failed--compilation aborted at (eval 10) line 1. # ' # doesn't match '(?^:^Global symbol "\$op" requires explicit package name at .*? \bInvalidCase01.pm line 8\b)' # Looks like you failed 1 test of 4. t/errors.t ........................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests t/eval.t ............................. ok t/list.t ............................. ok t/meta.t ............................. ok t/method-trait.t ..................... ok t/named_defaults.t ................... ok t/no_signature.t ..................... ok t/placeholders.t ..................... ok t/precedence.t ....................... ok t/quoted_name.t ...................... ok t/release-eol.t ...................... skipped: these tests are for release candidate testing t/release-no-tabs.t .................. skipped: these tests are for release candidate testing t/release-pod-syntax.t ............... skipped: these tests are for release candidate testing t/return_value.t ..................... ok t/signatures.t ....................... ok t/sigs-optional.t .................... ok t/structured.t ....................... ok t/synopsis.t ......................... ok t/too_many_args.t .................... ok t/traits.t ........................... ok t/type_alias.t ....................... ok t/types.t ............................ ok t/undef_method_arg.t ................. ok t/where.t ............................ ok Test Summary Report ------------------- t/errors.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=32, Tests=262, 21 wallclock secs ( 0.13 usr 0.07 sys + 18.14 cusr 1.11 csys = 19.45 CPU) Result: FAIL Failed 1/32 test programs. 1/262 subtests failed. make: *** [test_dynamic] Error 255 ILMARI/MooseX-Method-Signatures-0.37.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ILMARI/MooseX-Method-Signatures-0.37.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: ILMARI/MooseX-Method-Signatures-0.37.tar.gz : make_test NO cpan[20]> reports ILMARI/MooseX-Method-Signatures-0.37.tar.gz Distribution: I/IL/ILMARI/MooseX-Method-Signatures-0.37.tar.gz Fetching 'http://www.cpantesters.org/show/MooseX-Method-Signatures.yaml'...DONE Catching error: "CPAN::Exception::yaml_process_error=HASH(0x7ff7cb166600)" at /Users/ken/ perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/5.14.2/CPAN.pm line 392 CPAN::shell() called at /Users/ken/perl5/perlbrew/perls/ perl-5.14.2_WITH_THREADS/lib/5.14.2/App/Cpan.pm line 295 App::Cpan::_process_options('App::Cpan') called at /Users/ken/perl5/perlbrew/perls/ perl-5.14.2_WITH_THREADS/lib/5.14.2/App/Cpan.pm line 364 App::Cpan::run('App::Cpan') called at /Users/ken/perl5/perlbrew/perls/ perl-5.14.2_WITH_THREADS/bin/cpan line 11 Versions: cpan 1.57 App::perlbrew 0.30 Eval::Closure 0.08 Moose 2.0402 Moose::Meta::TypeConstraint 2.0402 $ uname -a Darwin ganymede 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 $ perl -V Summary of my perl5 (revision 5 version 14 subversion 2) configuration: Platform: osname=darwin, osvers=11.3.0, archname=darwin-thread-multi-2level uname='darwin ganymede 11.3.0 darwin kernel version 11.3.0: thu jan 12 18:47:41 pst 2012; root:xnu-1699.24.23~1release_x86_64 x86_64 ' config_args='-de -Dprefix=/Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS - Dusethreads' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack- protector -I/usr/local/include -I/opt/local/include', optimize='-O3', cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/ usr/local/include -I/opt/local/include' ccversion='', gccversion='4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/ lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/ lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under darwin Compiled at Feb 16 2012 16:58:49 %ENV: PERL5LIB="/Users/ken/local/lib/perl" PERLBREW_BASHRC_VERSION="0.30" PERLBREW_HOME="/Users/ken/.perlbrew" PERLBREW_PATH="/Users/ken/perl5/perlbrew/bin:/Users/ken/perl5/perlbrew/perls/ perl-5.14.2_WITH_THREADS/bin" PERLBREW_PERL="perl-5.14.2_WITH_THREADS" PERLBREW_ROOT="/Users/ken/perl5/perlbrew" PERLBREW_VERSION="0.30" @INC: /Users/ken/local/lib/perl /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/site_perl/5.14.2/darwin- thread-multi-2level /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/site_perl/5.14.2 /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/5.14.2/darwin-thread- multi-2level /Users/ken/perl5/perlbrew/perls/perl-5.14.2_WITH_THREADS/lib/5.14.2 .
Subject: Failed test 'Sane error message for syntax error' # at t/errors.t line 10. Version 0.37, Version 0.41, and git version
Date: Mon, 26 Mar 2012 23:47:21 -0500
To: bug-MooseX-Method-Signatures [...] rt.cpan.org
From: Myra Nelson <outerrimlogging [...] gmail.com>
When trying to install MooseX::Method::Signatures I get the following error during testing. I've tried the build and install with version 0.37, version 0.41, and the git version. t/closure.t ............ ok t/declarators.t ........ ok # Failed test 'Sane error message for syntax error' # at t/errors.t line 10. # 'Failed to compile source: Compilation error # # source: # sub { ( do { do {my $check = $_[0];ref($check) eq "ARRAY" && &List::MoreUtils::all(sub { ( do { 1 } ) }, @{$check})} } ) } at /usr/lib/perl5/vendor_perl/Moose/Meta/TypeConstraint.pm line 320. # Compilation failed in require at (eval 158) line 1. # BEGIN failed--compilation aborted at (eval 158) line 1. # ' # doesn't match '(?^:^Global symbol "\$op" requires explicit package name at .*?\bInvalidCase01.pm line 8\b)' # 1 test of 4 failed. t/errors.t ............. Dubious, test returned 1 (wstat 256, 0x100) from t/errors.t 10 -> like($@, qr/^Global symbol "\$op" requires explicit package name at .*?\bInvalidCase01.pm line 8\b/, "Sane error message for syntax error"); /usr/lib/perl5/vendor_perl/Moose/Meta/TypeConstraint.pm line 320 320 -> if ( $self->can_be_inlined ) { return eval_closure( source => 'sub { ' . $self->_inline_check('$_[0]') . ' }', environment => $self->inline_environment, ); } from t/lib/InvalidCase01.pm line 8 method meth1{ 8 -> croak "Binary operator $op expects 2 children, got " . $#$_ if @{$_} > 3; } My system Linux gandalf 3.3.0-1-ARCH #1 SMP PREEMPT Mon Mar 19 10:03:33 CET 2012 x86_64 AMD Phenom(tm) 8450 Triple-Core Processor AuthenticAMD GNU/Linux perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi gcc 4.7.01 glibc 2.15.9 Dependencies installed aliased v 0.30 B::Hooks::EndOfScope v 0.01 Class::Load v 0.18 Context::Preserve v 0.01 Devel::Declare List::MoreUtils v 0.33 Moose v 2.042 MooseX::LazyRequire v 0.07 MooseX::AuthorizedMethods v 0.006 MooseX::TranactionalMethods v 0.008 MooseX::AuthorizedMethods MooseX::Meta::TypeConstraint::ForceCoercion v 0.01 MooseX::Types MooseX::Types::Structured namespace::clean v 0.23 namespace::autoclean v 0.13 Parse::Methods::Signatures v 1.003014 Sub::Name v 0.05 Test::Exception v 0.31 Test::Pod v 1.45 Test::Simple which contains Test::More v 0.37 v 0.41 v 1.005000_004 Task::Weaken v 1.04 If anyone has a quick solution I would appreciate it. Otherwise I'll see if I can work out a patch when I sort my way through it. Myra Nelson -- Chaos! Panic! Disaster! (My work here is done)
Test failures when trying to install in perl 5.14 on ubuntu 11.10. It seems we are not getting the error message we are expecting: [ Mon Apr 02 12:41:31 ionyiah@newstarter MooseX-Method-Signatures-0.41 ] $ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for MooseX::Method::Signatures Writing MYMETA.yml and MYMETA.json [ Mon Apr 02 12:41:40 ionyiah@newstarter MooseX-Method-Signatures-0.41 ] $ make cp lib/MooseX/Method/Signatures/Types.pm blib/lib/MooseX/Method/Signatures/Types.pm cp lib/MooseX/Method/Signatures.pm blib/lib/MooseX/Method/Signatures.pm cp lib/MooseX/Method/Signatures/Meta/Method.pm blib/lib/MooseX/Method/Signatures/Meta/Method.pm Manifying blib/man3/MooseX::Method::Signatures::Types.3 Manifying blib/man3/MooseX::Method::Signatures::Meta::Method.3 Manifying blib/man3/MooseX::Method::Signatures.3 [ Mon Apr 02 12:41:43 ionyiah@newstarter MooseX-Method-Signatures-0.41 ] $ make test PERL_DL_NONLAZY=1 /home/ionyiah/.perlbrew/perls/perl-5.14.0/bin/perl5.14.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t .......................... ok t/attributes.t ....................... ok t/author-pod.t ....................... skipped: these tests are for testing by the author t/author-transactional-authorized.t .. skipped: these tests are for testing by the author t/basic.t ............................ ok t/caller.t ........................... ok t/closure.t .......................... ok t/declarators.t ...................... ok t/errors.t ........................... 1/? # Failed test 'Sane error message for syntax error' # at t/errors.t line 10. # 'Failed to compile source: Compilation error # # source: # sub { ( do { do {my $check = $_[0];ref($check) eq "ARRAY" && &List::MoreUtils::all(sub { ( do { 1 } ) }, @{$check})} } ) } at /home/ionyiah/.perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/i686-linux/Moose/Meta/TypeConstraint.pm line 320. # Compilation failed in require at (eval 8) line 1. # BEGIN failed--compilation aborted at (eval 8) line 1. # ' # doesn't match '(?^:^Global symbol "\$op" requires explicit package name at .*?\bInvalidCase01.pm line 8\b)' # Looks like you failed 1 test of 4. t/errors.t ........................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests t/eval.t ............................. ok t/list.t ............................. ok t/meta.t ............................. ok t/method-trait.t ..................... ok t/named_defaults.t ................... ok t/no_signature.t ..................... ok t/placeholders.t ..................... ok t/precedence.t ....................... ok t/quoted_name.t ...................... ok t/release-eol.t ...................... skipped: these tests are for release candidate testing t/release-no-tabs.t .................. skipped: these tests are for release candidate testing t/release-pod-syntax.t ............... skipped: these tests are for release candidate testing t/return_value.t ..................... ok t/signatures.t ....................... ok t/sigs-optional.t .................... ok t/structured.t ....................... ok t/synopsis.t ......................... ok t/too_many_args.t .................... ok t/traits.t ........................... ok t/type_alias.t ....................... ok t/types.t ............................ ok t/undef_method_arg.t ................. ok t/undef_method_arg2.t ................ ok t/where.t ............................ ok Test Summary Report ------------------- t/errors.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=33, Tests=292, 32 wallclock secs ( 0.18 usr 0.05 sys + 29.22 cusr 1.11 csys = 30.56 CPU) Result: FAIL Failed 1/33 test programs. 1/292 subtests failed. make: *** [test_dynamic] Error 255 [ Mon Apr 02 12:42:18 ionyiah@newstarter MooseX-Method-Signatures-0.41 ] $ uname -a Linux newstarter 3.0.0-17-generic-pae #30-Ubuntu SMP Thu Mar 8 17:53:35 UTC 2012 i686 i686 i386 GNU/Linux [ Mon Apr 02 12:43:09 ionyiah@newstarter MooseX-Method-Signatures-0.41 ] $ perl -v This is perl 5, version 14, subversion 0 (v5.14.0) built for i686-linux Copyright 1987-2011, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Just a quick update to advise: cpan[2]> install MooseX::Method::Signatures ... ETHER/MooseX-Method-Signatures-0.44.tar.gz /usr/bin/make install -- OK Related version info: perl 5.14.2 Eval::Closure 0.08 MacOS X 10.7.5 (Also, successfully installed under perl 5.18.0)
Subject: Re: [rt.cpan.org #74986] t/errors.t fails with Eval::Closure > 0.06
Date: Sun, 26 May 2013 19:37:25 -0700
To: Ken Cotterill via RT <bug-MooseX-Method-Signatures [...] rt.cpan.org>
From: Karen Etheridge <ether [...] cpan.org>
On Sun, May 26, 2013 at 06:56:35PM -0400, Ken Cotterill via RT wrote: Show quoted text
> (Also, successfully installed under perl 5.18.0)
I was also able to install MXMS under 5.19.0. I'll leave this ticket open for another few days, and then close it if we haven't heard back from any of the original reporters.
From: myra.nelson [...] hughes.net
On Sun May 26 22:37:43 2013, ETHER wrote: Show quoted text
> On Sun, May 26, 2013 at 06:56:35PM -0400, Ken Cotterill via RT wrote:
> > (Also, successfully installed under perl 5.18.0)
> > I was also able to install MXMS under 5.19.0. > > I'll leave this ticket open for another few days, and then close it if we > haven't heard back from any of the original reporters. >
I humbly apologize for failing to keep up. I just installed MXMS v 0.44 under 5.18.0 and all tests passed. I sent a report in via cpanm-reporter. --> Working on MooseX::Method::Signatures Fetching http://www.cpan.org/authors/id/E/ET/ETHER/MooseX-Method-Signatures-0.44.tar.gz ... OK Configuring MooseX-Method-Signatures-0.44 ... OK Building and testing MooseX-Method-Signatures-0.44 ... OK Successfully reinstalled MooseX-Method-Signatures-0.44 1 distribution installed Myra
It sounds like this is fixed now... please reopen if there are further issues!