Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31526

Missing QML dependency not included in qmllint output in Issues pane

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 14.0.0
    • Quick / QML Support
    • 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
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes