Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
Qt Creator 14.0.0
-
None
-
ae7419479 (dev)
Description
When running adding the qmllint build step to the build process for https://codereview.qt-project.org/c/qt/qtdeclarative/+/583426, the compile output shows all errors:
09:03:15: Running steps for project QtDeclarative... 09:03:15: Starting: "/usr/bin/cmake" --build /home/mitch/dev/qt-dev2-debug/qtdeclarative --target all ninja: no work to do. 09:03:16: The process "/usr/bin/cmake" exited normally. 09:03:16: Running steps for project tst_how-to-cpp-gauge... 09:03:16: Starting: "/usr/bin/cmake" --build /home/mitch/dev/qt-dev2-debug/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge --target all tst_how-to-cpp-gauge_qmllint [1/3 1.1/sec] cd /home/mitch/dev/qt-dev2/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge && /home/mitch/dev/qt-dev2-debug/qtbase/bin/qmllint @/home/mitch/dev/qt-dev2-debug/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge/.rcc/qmllint/tst_how-to-cpp-gauge.rsp Warning: /home/mitch/dev/qt-dev2/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge/Gauge.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: /home/mitch/dev/qt-dev2/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge/Gauge.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: /home/mitch/dev/qt-dev2/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge/Gauge.qml: QQuickItem was not found. Did you add all import paths? [import] Warning: /home/mitch/dev/qt-dev2/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge/Gauge.qml:131:9: 'TickmarkLabelContainer' is used but it is not resolved [unresolved-type] TickmarkLabelContainer { ^^^^^^^^^^^^^^^^^^^^^^ Warning: /home/mitch/dev/qt-dev2/qtdeclarative/tests/auto/quick/doc/how-tos/how-to-cpp-gauge/Gauge.qml:131:9: 'TickmarkLabelContainer' is used but it is not resolved [unresolved-type] TickmarkLabelContainer { ^^^^^^^^^^^^^^^^^^^^^^
The issues pane, however, misses the most important warnings about QQuickItem not being found (which itself causes almost all of the other warnings). As (AFAIK) the issues pane is what is shown to users by default, this leaves out vital information for users who want to improve their code with qmllint.
Product: Qt Creator 14.0.0 Based on: Qt 6.7.2 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64) Built on: Jul 24 2024 00:13:03 From revision: 370c2d7787