Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.12.0 Beta 4
-
None
Description
I am not able to generate working <plugin>.qmltypes files for my plugins.
By 'working' I mean files, that can be successfully loaded in QtCreator for syntax highlighting for my custom types.
The error I am getting says:
Warnings while parsing QML type information of C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/Release/5.12.0/MSVC/x64/IzAuthorization: Failed to parse "C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/Release/5.12.0/MSVC/x64/IzAuthorization/IzAuthorization.qmltypes". Error: 17:40: Expected token `;'
In generated files I see that qmlplugindump parses properties of my types as follows:
Property { name: "permissions" type: "QStringList" }
When I manually edit it and add ';' between properties:
Property { name: "permissions"; type: "QStringList" }
file is loading ok in QtC.
I generate .qmltypes with:
'qmlplugindump -nonrelocatable IzAuthorization 1.0 C:/Users/jakubn/Documents/projekty/qt-projects/iz-authorization/../deploy/plugins/Release/5.12.0/MSVC/x64'
using custom CMake script.
I have tried QtC 4.7.3 and 4.8.0-beta1 from maintenance tool - both with same results.
I am using latest Qt 5.12.4 Qt 5.12.0 -- beta4 version of the Qt from maintenance tool in fully updated Windows 7
I am additionaly attaching screenshot of the error from QtC, two variants of the generated files: original and edited by hand and my hacky CMake script to generate them.