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

Trailing commas in array literals break JS formatter

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.0.9
    • Fix Version/s: Release 3.7.0
    • Component/s: Formatting
    • Labels:
      None
    • Environment:

      eclipse.buildId=I20110613-1736
      java.version=1.6.0_24
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Command-line arguments: -os linux -ws gtk -arch x86_64

    • Story Points:
      8

      Description

      In the JS editor, trailing commas are not considered a syntax error, but they do break the formatter:

      Example:

      var x = ['a',];

      (Build 3.0.0.1326742432) [ERROR] com.aptana.formatter.epl/debug 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.

      An exception stack trace is not available.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                bananer Philip Frank
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Integration