Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3863

IDE shows @CompileStatic errors in the file, but not in Problems view, not on command line

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.6.0.RELEASE
    • Fix Version/s: None
    • Component/s: GRAILS
    • Labels:

      Description

      Using GGTS, look at a class like this:

      @CompileStatic
      class MyHelper {
      
          def someMethod() {
              // Person is a domain class
              // withSession is a method that is added to
              // Groovy domain classes by an AST transformation
              // provided by Grails
              Person.withSession {}
          }
      }
      

      There will be an error show in the source view.
      There will not be an error shown in the "Problems" panel.
      On the command line, using "grails compile" everything works fine.

      This issue was discussed with Jeff Brown and Kris De Volder.

        Attachments

          Activity

            People

            Assignee:
            denis_murashev Denis Murashev
            Reporter:
            candrews Craig
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: