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:01:00 UTC

[jira] [Updated] (GROOVY-10817) Incorrect line number reporting

     [ https://issues.apache.org/jira/browse/GROOVY-10817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Ekholm updated GROOVY-10817:
----------------------------------
    Affects Version/s: 3.0.13
                       4.0.4

> 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.4, 3.0.13, 4.0.6
>         Environment: jAlbum skin
>            Reporter: David Ekholm
>            Priority: Major
>         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)