Skip Menu |
Report information
Id: 71482
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] LTA error message when referring to a non-existent class whose name contains a '::' in Rakudo
Date: Mon, 21 Dec 2009 01:06:37 +0100
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 235b
<masak> rakudo: A::B <p6eval> rakudo 8dc189: invoke() not implemented in class 'Undef' [...] * masak submits rakudobug No line number, no file, no indication of which class failed its lookup, or in fact that this was what went wrong.
Download (untitled) / with headers
text/plain 294b
With current Rakudo, the error message has improved, but the line number is still wrong: $ cat test.pl use v6; A::B $ ./perl6 test.pl Can not find sub A::B in main program body at line 1 $ ./perl6 --version This is Rakudo Perl 6, version 2010.07-115-g0839993 built on parrot 2.6.0 r48341
NOM bbkr:nom bbkr$ ./perl6 -e 'A::B' Could not find symbol 'A::&B'
Download (untitled) / with headers
text/plain 654b
2012.10 $ perl6 -e 'A::B' Could not find symbol '&B' in method <anon> at src/gen/CORE.setting:9956 in at src/gen/Metamodel.pm:2401 in any find_method_fallback at src/gen/Metamodel.pm:2389 in any find_method at src/gen/Metamodel.pm:925 in at src/gen/BOOTSTRAP.pm:827 in any at src/gen/BOOTSTRAP.pm:811 in block at -e:1 STD complaints about whole 'A::B' symbol, not just nonexistent B in A:: namespace. <bbkr_> std: A::B <p6eval> std 04216b1: OUTPUT«===SORRY!===␤Undeclared name:␤ 'A::B' used at line 1␤Check failed␤FAILED 00:00 41m␤» So IMO it cannot be considered fixed with current error message.
Download (untitled) / with headers
text/plain 1.1k
On Thu, 15 Nov 2012 04:51:17 -0800, bbkr wrote: Show quoted text
> 2012.10 > > $ perl6 -e 'A::B' > Could not find symbol '&B' > in method <anon> at src/gen/CORE.setting:9956 > in at src/gen/Metamodel.pm:2401 > in any find_method_fallback at src/gen/Metamodel.pm:2389 > in any find_method at src/gen/Metamodel.pm:925 > in at src/gen/BOOTSTRAP.pm:827 > in any at src/gen/BOOTSTRAP.pm:811 > in block at -e:1 > > STD complaints about whole 'A::B' symbol, not just nonexistent B in > A:: namespace. > > <bbkr_> std: A::B > <p6eval> std 04216b1: > OUTPUT«===SORRY!===␤Undeclared name:␤ > 'A::B' used at line 1␤Check failed␤FAILED 00:00 41m␤» > > So IMO it cannot be considered fixed with current error message.
$ ./perl6-m -e 'A::B' Could not find symbol '&B' in block <unit> at -e line 1 Actually thrown at: in block <unit> at -e line 1 $ cat tmp.p6 use v6; say "hi"; A::B; say "bye"; $ ./perl6-m tmp.p6 hi Could not find symbol '&B' in block <unit> at tmp.p6 line 4 Actually thrown at: in block <unit> at tmp.p6 line 4 $ ./perl6-m --version This is Rakudo version 2017.02-167-ge114d5204 built on MoarVM version 2017.02-24-gd9e0b4e2 Is this error message sufficient?


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

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org