Skip Menu |

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

Report information
The Basics
Id: 80356
Status: open
Priority: 0/
Queue: MooseX-Method-Signatures

People
Owner: Nobody in particular
Requestors: MAUKE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.43
Fixed in: (no value)



Subject: What the heck is this error message?

Message body is not shown because it is too large.

Subject: Foo.pm
package Foo; use strict; use MooseX::Method::Signatures; method get_record( $agent, $target_name ) { for my $record ( @$records ) { } } method get_ip( $agent ) { } 'ok'
Subject: script.pl
#!perl use warnings; use strict; use Foo;
Subject: wtf-is-this-shit
Download wtf-is-this-shit
application/octet-stream 29.1k

Message body not shown because it is not plain text.

A summary of the problem: The two attachments script.pl and Foo.pm form a very simple program. Foo.pm contains a trivial error (an undeclared variable) which is normally caught by strict. However, running 'perl script.pl' spits out this baffling error message: Could not create the 'reader' method for variable_name because : Could not generate inline reader because : Could not create writer for 'variable_name' because Failed to compile source: Compilation error ... which doesn't even mention the actual problem (Global symbol "$records" requires explicit package name at Foo.pm line 7.) and is further obscured by the 30kB stack trace that follows.