# New Ticket Created by   
# Please include the string:  [perl #124027]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124027 >


OS: Ubuntu Linux 10.04.4 LTS (Running in Linode)
Rakudo: commit cd7c31c6b50b2819faa1795c4a0bf3016dfa04e0
Date:   Mon Mar 9 00:14:17 2015 +0100

The compile-time error generated by the script below is missing the 
(filename:line) where the error occurred, which may be different than 
the file being compiled.

--cut here--
#!/usr/bin/perl6

my $i = UndeclaredClass.new;
--cut here--

The error that is reported is missing (filename:line) on line 4 of the 
error text:

--cut here--
===SORRY!=== Error while compiling 
/home/jgoff/Documents/cluj_20150305.js/test/polar.t
Undeclared name:
     UndeclaredClass used at line 5
--cut here--

It should read something like this (with the last line being the 
important bit):

--cut here--
===SORRY!=== Error while compiling 
/home/jgoff/Documents/cluj_20150305.js/test/polar.t
Undeclared name:
     UndeclaredClass used
at /home/jgoff/Documents/cluj_20150305.js/test/polar.t:5
--cut here--

Compare the error to one with the (filename:line) appearing correctly on 
line 3 of the error text:

--cut here--
===SORRY!=== Error while compiling 
/home/jgoff/Documents/cluj_20150305.js/test/polar.t
Variable '$i' is not declared
at /home/jgoff/Documents/cluj_20150305.js/test/polar.t:6
------> $i⏏ = 1;
     expecting any of:
         postfix
--cut here--

Reply via email to