Skip Menu |
Report information
Id: 122022
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 nonexistent symbol in constant declaration in Rakudo (Moar, JVM)
From: Carl Mäsak <cmasak [...] gmail.com>
Date: Tue, 3 Jun 2014 11:30:13 +0200
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 642b
<masak> m: month <camelia> rakudo-moar d78b63: OUTPUT«===SORRY!=== Error while compiling /tmp/LaTRxwVvWt␤Undeclared routine:␤ month used at line 1␤␤» <masak> m: constant m = month <camelia> rakudo-moar d78b63: OUTPUT«===SORRY!===␤Cannot invoke null object␤» * masak submits LTA rakudobug <masak> r: constant m = month <camelia> rakudo-moar d78b63: OUTPUT«===SORRY!===␤Cannot invoke null object␤» <camelia> ..rakudo-parrot d78b63: OUTPUT«===SORRY!===␤Could not find sub &month␤» <camelia> ..rakudo-jvm d78b63: OUTPUT«===SORRY!===␤java.lang.NullPointerException␤» Expected behavior: Rakudo Parrot's above.
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 1.5k
On Tue Jun 03 02:30:32 2014, masak wrote: Show quoted text
> <masak> m: month > <camelia> rakudo-moar d78b63: OUTPUT«===SORRY!=== Error while > compiling /tmp/LaTRxwVvWt␤Undeclared routine:␤ month used at line > 1␤␤» > <masak> m: constant m = month > <camelia> rakudo-moar d78b63: OUTPUT«===SORRY!===␤Cannot invoke null > object␤» > * masak submits LTA rakudobug > <masak> r: constant m = month > <camelia> rakudo-moar d78b63: OUTPUT«===SORRY!===␤Cannot invoke null > object␤» > <camelia> ..rakudo-parrot d78b63: OUTPUT«===SORRY!===␤Could not find > sub &month␤» > <camelia> ..rakudo-jvm d78b63: > OUTPUT«===SORRY!===␤java.lang.NullPointerException␤» > > Expected behavior: Rakudo Parrot's above.
This is now better on the jvm than on moar, but is probably closable with tests (esp. if moar is updated to reference the the object in the error) 09:49 < [Coke]> r: constant m = month; 09:49 <+camelia> rakudo-jvm ba7027: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤An exception occurred while evaluating a constant␤at /tmp/tmpfile:1␤Exception details:␤ ===SORRY!=== Error while compiling ␤ Can not invoke object '&month'␤ at :␤» 09:49 <+camelia> ..rakudo-moar ba7027: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤An exception occurred while evaluating a constant␤at /tmp/tmpfile:1␤Exception details:␤ ===SORRY!=== Error while compiling ␤ Cannot invoke this object␤ at :␤» -- Will "Coke" Coleda


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