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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.6.0.RELEASE
    • None
    • GRAILS

    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 kdvolder.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: