develooper Front page | perl.perl5.porters | Postings from September 2014

[perl #121374] Wrong line number in signature errors

Thread Previous
From:
James E Keenan via RT
Date:
September 24, 2014 01:42
Subject:
[perl #121374] Wrong line number in signature errors
Message ID:
rt-4.0.18-3925-1411522960-1860.121374-15-0@perl.org
On Tue Mar 04 01:17:31 2014, jv wrote:
> Signature errors like "Too few arguments for subroutine" are shown
> with the line number of the subroutine definition. They should show
> the line number of the actual subroutine call.
> 
> The attached program shows:
> 
> The signatures feature is experimental at /home/jv/tmp/t.pl line 7.
> 
> This is correct, for that's the line the subroutine using the
> signature is defined. But then:
> 
> Testing call at line 13
> Too few arguments for subroutine at /home/jv/tmp/t.pl line 7.
> 
> This should be line 13.

Confirmed as present in blead.
#####
$ ./perl -v | head -2 | tail -1
This is perl 5, version 21, subversion 5 (v5.21.5 (v5.21.4-63-g0c7df90)) built for x86_64-linux
#####

This RT was not received any comment since it was filed 6 months ago.

Do people agree that we have a problem?

Can someone take a crack at providing a solution?

Thank you very much.

-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=121374

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About