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

Potentially misleading error text #4285

Closed
p6rt opened this issue Jun 1, 2015 · 4 comments
Closed

Potentially misleading error text #4285

p6rt opened this issue Jun 1, 2015 · 4 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jun 1, 2015

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

Searchable as RT125300$

@p6rt
Copy link
Author

p6rt commented Jun 1, 2015

From @drforr

I'm not even sure if the error text is correct, come to think of it. I'd
think that a leading '=' outside of a here-doc or multi-line string
regardless of q/qq/Q<[[ variant should be treated as a POD comment, so I
would expect this error to read​:

=end without matching =begin FOO

or "Preceding context expects a term, but found infix = instead. Maybe
you wanted a matching '=begin FOO' POD comment earlier?"

--cut here--
=end FOO
--cut here--

--cut here--
===SORRY!=== Error while compiling /home/jgoff/bug.t
Preceding context expects a term, but found infix = instead
at /home/jgoff/bug.t​:1
------> =⏏end FOO
--cut here--

@p6rt
Copy link
Author

p6rt commented Dec 14, 2017

From @zoffixznet

On Mon, 01 Jun 2015 05​:41​:01 -0700, drforr@​pobox.com wrote​:

I'm not even sure if the error text is correct, come to think of it. I'd
think that a leading '=' outside of a here-doc or multi-line string
regardless of q/qq/Q<[[ variant should be treated as a POD comment, so I
would expect this error to read​:

=end without matching =begin FOO

or "Preceding context expects a term, but found infix = instead. Maybe
you wanted a matching '=begin FOO' POD comment earlier?"

--cut here--
=end FOO
--cut here--

--cut here--
===SORRY!=== Error while compiling /home/jgoff/bug.t
Preceding context expects a term, but found infix = instead
at /home/jgoff/bug.t​:1
------> =⏏end FOO
--cut here--

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@2c951798a2162ce
Test​: rakudo/rakudo@2c951798a2162ce

@p6rt
Copy link
Author

p6rt commented Dec 14, 2017

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

@p6rt p6rt closed this as completed Dec 14, 2017
@p6rt
Copy link
Author

p6rt commented Dec 14, 2017

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

@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