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

groovy code formater rips code appart in certain cases

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.5.0.M3
    • Fix Version/s: 2.5.0.RC1
    • Component/s: None
    • Labels:
      None
    • Environment:
      ubuntu 10.04, sts 2.5.0.M3 (pre), jvm 1.6.20, grails 1.3.4

      Description

      If you let STS format the attached code the list:

      def gender = ["unknown","female","male"]

      gets ripped appart into

      def gender = [
      "unknown",
      "female",
      "mal
      ]

      I get this kind of behaviour only under certain circumstances/nestings ... I already minored the code to something pretty useless ... but good enough to make the point/show the error.

      1. BootStrap.groovy
        0.4 kB
        Konstantinos Kostarellis

        Activity

        Hide
        kdvolder Kris De Volder added a comment -

        Hmmm... interesting. When I put this same code into a class it doesn't misbehave. Only when I have this line all by itself.

        Thanks for the example. I will look into it. But this bug should be moved to the Groovy Eclipse issue tracker, since I think it is a Groove Eclipse issue. Not an STS issue.

        Show
        kdvolder Kris De Volder added a comment - Hmmm... interesting. When I put this same code into a class it doesn't misbehave. Only when I have this line all by itself. Thanks for the example. I will look into it. But this bug should be moved to the Groovy Eclipse issue tracker, since I think it is a Groove Eclipse issue. Not an STS issue.
        Hide
        kdvolder Kris De Volder added a comment -

        I'm closing this issue here. I opened an issue for this on the Greclipse issue tracker instead:

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

        Show
        kdvolder Kris De Volder added a comment - I'm closing this issue here. I opened an issue for this on the Greclipse issue tracker instead: http://jira.codehaus.org/browse/GRECLIPSE-827

          People

          • Assignee:
            Unassigned
            Reporter:
            kosta Konstantinos Kostarellis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: