Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.3.0
-
-
43041ebbf3 (qt/qtdeclarative/dev) 43041ebbf3 (qt/tqtc-qtdeclarative/dev)
Description
When using Qt 6.3.0 built from the latest dev branch, qmlformat fails to format when a Javascript array has a trailing comma.
Repro.qml copied (from attachment) here:
import QtQuick Item { Component.onCompleted: { let someList = [ "item1", "item2", ]; } }
Running the attached minimally reproducible example:
qmlformat -i ./Repro.qml
This fails with a lot of output text and no clear explanation as to why (output log attached).
This level of output seems better reserved for a high verbosity level.