Skip Menu |
 

This queue is for tickets about the Type-Tiny CPAN distribution.

Report information
The Basics
Id: 98159
Status: resolved
Priority: 0/
Queue: Type-Tiny

People
Owner: perl [...] toby.ink
Requestors: Support [...] RoxSoft.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.000002
Fixed in: (no value)



Download (untitled) / with headers
text/plain 3.3k
Installing Type::Tiny 1.0.2 and this - guessing it only works with newer versions of Moose t/30-integration/Moose/basic.t ............................ ok t/30-integration/Moose/coercion.t ......................... skipped: Moose version 2.12 required--this is only version 2.0802 at (eval 5) line 2. t/30-integration/Moose/inflate-then-inline.t .............. ok # Failed test 'pushing ok values' # at t/30-integration/Moose/native-attribute-traits.t line 210. # got: 'Attribute (things) does not pass the type constraint because: Undef did not pass type constraint at native delegation method MyCollection3::add (push) of attribute things (defined at t/30-integration/Moose/native-attribute-traits.t line 105) line 9. # MyCollection3::add('MyCollection3=HASH(0x2edc390)', 1) called at t/30-integration/Moose/native-attribute-traits.t line 205 # main::__ANON__() called at /root/.cpanm/work/1408399772.10881/Type-Tiny-1.000002/inc/Test/Fatal.pm line 23 # Test::Fatal::try {...} () called at /root/.cpanm/work/1408399772.10881/Type-Tiny-1.000002/inc/Try/Tiny.pm line 77 # eval {...} called at /root/.cpanm/work/1408399772.10881/Type-Tiny-1.000002/inc/Try/Tiny.pm line 73 # Try::Tiny::try('CODE(0x2edc0d8)', 'Try::Tiny::Catch=REF(0x2f42890)') called at /root/.cpanm/work/1408399772.10881/Type-Tiny-1.000002/inc/Test/Fatal.pm line 30 # Test::Fatal::exception('CODE(0x2ead590)') called at t/30-integration/Moose/native-attribute-traits.t line 210 # main::__ANON__() called at /usr/share/perl/5.10/Test/Builder.pm line 258 # Test::Builder::__ANON__() called at /usr/share/perl/5.10/Test/Builder.pm line 263 # eval {...} called at /usr/share/perl/5.10/Test/Builder.pm line 263 # Test::Builder::subtest('Test::Builder=HASH(0x1ab1b70)', 'Array trait with type ArrayRef[InstanceOf] and coercion and s...', 'CODE(0x2e81fe0)') called at /usr/share/perl/5.10/Test/More.pm line 770 # Test::More::subtest('Array trait with type ArrayRef[InstanceOf] and coercion and s...', 'CODE(0x2e81fe0)') called at t/30-integration/Moose/native-attribute-traits.t line 219 # main::__ANON__() called at /usr/local/lib/perl/5.10.1/Test/Moose.pm line 82 # Test::Moose::with_immutable('CODE(0x25bacd0)', 'MyCollection', 'MyHashes', 'Mini::Milk') called at t/30-integration/Moose/native-attribute-traits.t line 302 # ' # expected: undef # Failed test ''$things->[1]' isa 'Mini::Milk'' # at t/30-integration/Moose/native-attribute-traits.t line 216. # '$things->[1]' isn't defined Can't call method "i" on an undefined value at t/30-integration/Moose/native-attribute-traits.t line 217. # Child (Array trait with type ArrayRef[InstanceOf] and coercion and subtyping) exited without calling finalize() # Failed test 'Array trait with type ArrayRef[InstanceOf] and coercion and subtyping' # at /usr/share/perl/5.10/Test/Builder.pm line 276. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 29 just after 3. t/30-integration/Moose/native-attribute-traits.t .......... Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 1/3 subtests t/30-integration/MooseX-Getopt/coercion.t ................. skipped: MooseX::Getopt version 0.63 required--this is only version 0.56 at (eval 175) line 2.
Download (untitled) / with headers
text/plain 271b
Looks like an interesting bug. I'm on holiday right now, but should be able to take a look in a week or so. If it's just that test that fails, and you're not using Moose native attribute traits, then it should probably be safe for you to force install it and use anyway.
Download (untitled) / with headers
text/plain 268b
Although I haven't tried 2.0802 yet, I can confirm a working build with DOY/Moose-2.0604.tar.gz. See: https://travis-ci.org/tobyink/p5-type-tiny/jobs/33729524 I'm also going to try getting 2.0007 working, though that's currently broken and I need to investigate why.
Download (untitled) / with headers
text/plain 188b
On 2014-08-29T09:23:40+01:00, TOBYINK wrote: Show quoted text
> Moose 2.0802 on Perl 5.12.5 seems to work. Am going to try on Perl 5.8.9.
I've managed to reproduce the bug with Moose 2.0802 on Perl 5.8.9.
Download (untitled) / with headers
text/plain 293b
I think I've managed to track this down to an odd list/scalar context thing - a coercion was getting called in non-scalar context and causing badness. I'm being vague because I don't quite understand what was going wrong, but I've got the test case passing on Perl 5.8.9 with Moose 2.0802 now.
I think this should be resolved in 1.000004. Let me know if you're still having problems.
Fixed. All tests passing with older Moose on elderly Perl. Many thanks


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.