-
Bug
-
Resolution: Done
-
P2: Important
-
6.3.0
-
-
43041ebbf3 (qt/qtdeclarative/dev) 43041ebbf3 (qt/tqtc-qtdeclarative/dev)
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.
| For Gerrit Dashboard: QTBUG-99449 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 391228,5 | qmlformat: Fix bug when trailing comma occurs in array | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |