Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3169

JAVASCRIPT: switch statement breaks formatting

    Details

      Description

      Aptana Studio 3 Plugin 3.0.5.201108011844

      try formatting the following js code

      function switchtest(e)
      {
      switch (e) {
      case "a":
      a="a";
      break;
      };
      }
      

      gives the error:
      error while formatting the code in your editor.
      Please submit a bug report through Studio's support and include the relevant code which triggered this error.

        Activity

        Hide
        ingo Ingo Muschenetz added a comment -

        Confirmed in 3.0.4

        Show
        ingo Ingo Muschenetz added a comment - Confirmed in 3.0.4
        Hide
        mxia Michael Xia added a comment -

        The code would format if the extra semicolon outside the switch statement is removed.

        Show
        mxia Michael Xia added a comment - The code would format if the extra semicolon outside the switch statement is removed.
        Hide
        sgibly Shalom Gibly added a comment -

        Fixed.
        The issue was with the semicolon at the end of the switch block.

        Show
        sgibly Shalom Gibly added a comment - Fixed. The issue was with the semicolon at the end of the switch block.
        Hide
        jwitt Joel Witt added a comment -

        Aptana Studio 3, build: 3.0.7.201111111843
        Ubuntu 11.10

        Replicated in 3.0.4 : confirmed JavaScript editor in current version successfully formats the Description content (please see the attached capture APSTUD-3169.png).

        Show
        jwitt Joel Witt added a comment - Aptana Studio 3, build: 3.0.7.201111111843 Ubuntu 11.10 Replicated in 3.0.4 : confirmed JavaScript editor in current version successfully formats the Description content (please see the attached capture APSTUD-3169 .png).

          People

          • Assignee:
            sgibly Shalom Gibly
            Reporter:
            mxmxm@gmx.de mxmxm
          • Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Poker Sessions

                This issue is currently not assigned to any Poker Session.