Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5992

Using groovy compiler for parsing, code completion and navigation in NetBeans IDE

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • groovy - Editor
    • None

    Description

      NetBeans IDE has a tradition of using the real compiler for each language to provide the best user experience in its editor. A famous example is nb-javac - NetBeans fork of the javac compiler. Using the real Java compiler allowed NetBeans to keep the WYSIWYG experience (the errors reported in the editor are exactly the same as on command line or continuous integration) with relatively low effort. However maintaining a fork turned out to be costly and we are looking forward to reuse javac unmodified. With Groovy, we'd like to do even better. We want to contribute the IDE related fixes to the Groovy compiler to begin with!

      This issue is an umbrella collecting various issues filed against Groovy. Fixing them would make the user experience of writing Groovy in the NetBeans IDE (and its derivatives like VSCode) better, richer, easier to use, faster to gain response and overall more reliable. In particular the IDE has to be able to deal with broken code (user code in editor is broken most of the time) - as such we expect fixes in the area of error recovery to make the parser more bulletproof and robust.

      Some of the reported issues may feel strange from a plain Groovy point of view. Please take into account that the IDE needs to compute all the info without running the user code. As such it uses type checking and static compilation heavily. It would be ideal if the IDE could just use the static compilation info/errors and present them to the user in a reasonable and valuable way.

      Attachments

        Issue Links

          Activity

            People

              sdedic Svatopluk Dedic
              sdedic Svatopluk Dedic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: