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

q:to and “Corresponding … was at line” #6581

Open
p6rt opened this issue Oct 7, 2017 · 1 comment
Open

q:to and “Corresponding … was at line” #6581

p6rt opened this issue Oct 7, 2017 · 1 comment
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Oct 7, 2017

Migrated from rt.perl.org#132239 (status was 'new')

Searchable as RT132239$

@p6rt
Copy link
Author

p6rt commented Oct 7, 2017

From @AlexDaniel

See https://rt-archive.perl.org/perl6/Ticket/Display.html?id=125641 for the history of this problem.

This ticket is about this particular case​:

perl6 -e 'my $x = q​:to/foo/;
blah
'
===SORRY!=== Error while compiling -e
Ending delimiter foo not found
at -e​:3
------> <BOL>�<EOL>
  expecting any of​:
  whitespace

Arguably it shouldn't be hard to find â��fooâ�� in your code, but in some cases it may be more obscure. We can do better by mentioning where this construct was started, like we do in other cases​:
perl6 -e '

(

'
===SORRY!=== Error while compiling -e
Unable to parse expression in parenthesized expression; couldn't find final ')' (corresponding starter was at line 3)
at -e​:5
------> <BOL>�<EOL>

Also, it should either omit �expecting any of� section, or do something useful there.

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label 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
Projects
None yet
Development

No branches or pull requests

1 participant