Navigation Menu

Skip to content
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

error message caused by gather-take eating the line number (gather for ^3 -> $a, $b { take 1 }) #4917

Closed
p6rt opened this issue Dec 24, 2015 · 5 comments
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded

Comments

@p6rt
Copy link

p6rt commented Dec 24, 2015

Migrated from rt.perl.org#127012 (status was 'resolved')

Searchable as RT127012$

@p6rt
Copy link
Author

p6rt commented Dec 24, 2015

From @AlexDaniel

Code​:
gather for ^3 -> $a, $b { take 1 }

Result​:
===SORRY!===
Too few positionals passed; expected 2 arguments but got 1

The error message has no line number.

This snippet is from real code (although I've golfed it down), the question
was asked on #perl6​: http://irclog.perlgeek.de/perl6/2015-12-24#i_11767980

Running it with --ll-exception reveals the line number.

So, that's as short as I can golf it. In fact, if you change it a little
bit, like
Code​:
gather for ^1 -> $a, $b { take 1 }

Result​:
Too few positionals passed; expected 2 arguments but got 1
  in code at test3.pl​:2
  in block <unit> at test3.pl​:2

Then, as you can see, the stacktrace suddenly appears. Weird.

@p6rt
Copy link
Author

p6rt commented Aug 21, 2016

From @zoffixznet

Has been fixed per http://irclog.perlgeek.de/perl6-dev/2016-08-21#i_13062293

Tests needed

@p6rt
Copy link
Author

p6rt commented Aug 21, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 11, 2016

From @zoffixznet

Tests added in Raku/roast@4a02aaaa75

@p6rt
Copy link
Author

p6rt commented Sep 11, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 11, 2016
@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded
Projects
None yet
Development

No branches or pull requests

1 participant