Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.1
-
None
-
PySide6-Essentials v6.5.1.1
-
115916f21 (dev), aa603e154 (6.6)
Description
Given code like this:
Component.onCompleted: ({x, y, width, height} = settings.coords)
pyside6-qmlformat outputs:
Error: qt.qmldom.writeOut: writeOut of MyFile.qml created invalid code:
...
Component.onCompleted: ({}{ "x":
"y":
"width":
"height":
}{}= settings.coords)
...
[Dom][QmlFile][Parsing] Error: Expected token `,' for .currentItem
qt.qmldom.writeOut: failure reformatting "MyFile.qml"
"Error while writing"