New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The curious case of the one-off line number in Rakudo #1795
Comments
From @masak<masak> I've found a case where a line number is one-off. should I nopaste it? (inlined here) $ cat one-off bar $ perl6 one-off <jnthn> masak: curious |
From @jnthnOn Sun May 30 05:44:14 2010, masak wrote:
We needed a Parrot tweak which I did a couple of days back - but that C:\Consulting\rakudo>type test.p6 bar C:\Consulting\rakudo>perl6 test.p6 Which is spot on. \o/ Given to moritz++ for testing. Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/integration/error-reporting.t commit cc81e350331b3b471eb2b9a6c79f1959406b8619 [t/spec] test for RT #75446, offby1 line number report for non-existing sub calls Inline Patchdiff --git a/t/spec/integration/error-reporting.t b/t/spec/integration/error-reporting.t
index b3fc71f..1167dfc 100644
--- a/t/spec/integration/error-reporting.t
+++ b/t/spec/integration/error-reporting.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 3;
+plan 4;
BEGIN { @*INC.push('t/spec/packages') };
@@ -23,5 +23,18 @@ is_run "use v6;\n\nsay 'Hello';\nsay 'a'.my_non_existent_method_6R5();",
{
status => { $_ != 0 },
out => /Hello\r?\n/,
- err => all(rx/my_non_existent_method_6R5/ & rx/:i 'line 4'/),
+ err => all(rx/my_non_existent_method_6R5/, rx/:i 'line 4'/),
}, 'Method not found error mentions method name and line number';
+
+# RT #75446
+is_run 'use v6;
+sub bar {
+ pfff();
+}
+
+bar()',
+ {
+ status => { $_ != 0 },
+ out => '',
+ err => all(rx/pfff/, rx/'line 3'>>/),
+ }, 'got the right line number for nonexisting sub inside another sub'; |
Migrated from rt.perl.org#75446 (status was 'resolved')
Searchable as RT75446$
The text was updated successfully, but these errors were encountered: