Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134523

qmllint: issue warnings about non-efficient code generation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.11
    • 6.9
    • QML: Tooling
    • None

      So it seems that there is a need to get more compiler warnings from qmllint. With the compiler category, one already gets a lot of the warnings that the compiler emits, but it seems that some compiler warnings are only emitted by the compiler and not by qmllint.
      Implement the missing compiler warnings in qmllint.

      One example of such a warning happens when using import QtQuick.Controls instead of import QtQuick.Controls.Basic:
      Cannot generate efficient code for call to untyped JavaScript function
      and
      'PageIndicator' is used but it is not resolved [unresolved-type]

      I guess that all the other Cannot generate efficient code for warnings are required too.

      The main reason for this is to make sure that compiled bindings stay compiled via qmllint. Currently there is no way to avoid "regressions" where compilable code get uncompilable because somebody changed it, except for doing weird stuff on the aotstats to detect such regressions.

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

            qtqmlteam Qt Qml Team User
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes