You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "David Ekholm (Jira)" <ji...@apache.org> on 2022/11/08 17:00:00 UTC
[jira] [Created] (GROOVY-10817) Incorrect line number reporting
David Ekholm created GROOVY-10817:
-------------------------------------
Summary: Incorrect line number reporting
Key: GROOVY-10817
URL: https://issues.apache.org/jira/browse/GROOVY-10817
Project: Groovy
Issue Type: Bug
Components: parser
Affects Versions: 4.0.6
Environment: jAlbum skin
Reporter: David Ekholm
Attachments: onload.groovy
We often see incorrect line number reports for Groovy scripts. The attached "onload.groovy" script (builds a Swing UI) has a syntax error on line 103: The "new StateMonitor()" instantiation is missing "()". When parsing we however get an error on line 15:
Unexpected input: '{' @ line 15, column 38.
ControlPanel ui = new ControlPanel() {
This poor error line detection makes it very hard to debug larger scripts :(
--
This message was sent by Atlassian Jira
(v8.20.10#820010)