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

Save Action to Format source code munges Groovy files, introducing bugs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.0.M3
    • Fix Version/s: 2.5.0.RC1
    • Component/s: GRAILS
    • Labels:
      None
    • Environment:
      STS 2.5.0.M3 on Mac

      Description

      We have configured a project containing Groovy and Java files to do a "Format source code" when performing a file save. (Preferences -> Editor -> Save Actions -> Format source code -> Format all lines).

      Unfortunately, this has wrecked groovy files on several occasions, enough that we have disabled this feature to avoid wasting time. It is more than just impacting

        Activity

        Hide
        aclement Andy Clement added a comment -

        Hi Greg,

        We are aware of a couple of cases of this but it would be helpful if you could include specific cases of where things get broken - do you have some samples?

        Show
        aclement Andy Clement added a comment - Hi Greg, We are aware of a couple of cases of this but it would be helpful if you could include specific cases of where things get broken - do you have some samples?
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        It is likely that you are hitting this bug:

        http://jira.codehaus.org/browse/GRECLIPSE-827

        Can you please update to the latest snapshot build of Groovy-Eclipse and try again?

        If you continue to have problems, then it would be helpful to include a snippet that get formatted incorrectly.

        Show
        aeisenberg Andrew Eisenberg added a comment - It is likely that you are hitting this bug: http://jira.codehaus.org/browse/GRECLIPSE-827 Can you please update to the latest snapshot build of Groovy-Eclipse and try again? If you continue to have problems, then it would be helpful to include a snippet that get formatted incorrectly.
        Hide
        aeisenberg Andrew Eisenberg added a comment -

        We believe that this is fixed in the latest snapshot of Groovy-Eclipse. If you are still having problems after you update, please post them here.

        Show
        aeisenberg Andrew Eisenberg added a comment - We believe that this is fixed in the latest snapshot of Groovy-Eclipse. If you are still having problems after you update, please post them here.

          People

          • Assignee:
            Unassigned
            Reporter:
            gturnquist Greg Turnquist
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: