Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22241

Re-formater deletes code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.9.0-rc1
    • Fix Version/s: None
    • Component/s: Quick / QML Support
    • Labels:
      None

      Description

      Enter this into the QML code editor:
      property var members: [

      {"name": "member1"}

      ,

      {"name": "member2"}

      ]

      Tools/Qml/JS/Reformat file

      Result: property var members: [, ]

      The re-formater should not delete code.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              tjenssen Tim Jenssen
              Reporter:
              thohartm Thomas Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes