Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 92770
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: ether [...] cpan.org
Requestors: POPEL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.1202
Fixed in: 2.1203



Subject: Misleading error messages (regression)
I tried the following code with three versions of Moose. Obviously, the newest Mooose outputs a completely misleading error message, while the oldest tested version of Moose produced a very helpful message. echo 'package C1; use Moose; use Notinstalled; has myattr=>(is=>"rw");1;' > C1.pm echo 'package C2; use Moose; extends "C1"; has "+myattr"=>(default=>42);1;' > C2.pm perl -MC2 -E1 # Moose 2.1202: Could not find an attribute by the name of 'myattr' to inherit from in C2 at... # Moose 2.08: Can't locate Notinstalled.pm in @INC... # Moose 2.02: Couldn't load class (C1) because: Can't locate Notinstalled.pm in @INC...
Confirmed, this looks to be caused by a change in Moose::Meta::Class::superclasses from Class::Load::load_class($class) to Module::Runtime::use_package_optimistically($class), without checking the success status.
Popel, could you please try installing the latest Module::Runtime (0.014) and see if things improve?
On 2014-02-06 15:22:19, ETHER wrote: Show quoted text
> Popel, could you please try installing the latest Module::Runtime > (0.014) and see if things improve?
hold that thought.. MR 0.014 introduces new issues (https://rt.cpan.org/Ticket/Display.html?id=92791) -- working on that now.
Should be fixed in 2.1203, releasing now.
On Thu Feb 06 19:02:28 2014, ETHER wrote: Show quoted text
> Should be fixed in 2.1203, releasing now.
I confirm, it is fixed. Thanks.