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

regexes and “Corresponding … was at line” #6579

Open
p6rt opened this issue Oct 7, 2017 · 2 comments
Open

regexes and “Corresponding … was at line” #6579

p6rt opened this issue Oct 7, 2017 · 2 comments
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#132237 (status was 'new')

Searchable as RT132237$

@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.

perl6 -e '/

 
'
===SORRY!===
Regex not terminated.
at -e​:4
------> <BOL>�<EOL>
Regex not terminated.
at -e​:4
------> <BOL>�<EOL>
Unable to parse regex; couldn't find final '/'
at -e​:4
------> <BOL>�<EOL>
  expecting any of​:
  infix stopper
  term

The error message is *really* LTA, but for this particular ticket I'd like to see �Corresponding '/' was at line 1�. Also, please remove �expecting any of� section.

Code​: https://github.com/rakudo/rakudo/blob/f62ae60c48d1372df18b49aca44e10af44ead2d6/src/Perl6/Grammar.nqp#L3741

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@JJ
Copy link

JJ commented Dec 30, 2020

Possibly related #6581 #6582 #6583

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

2 participants