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

qmllint: enhance warnings for missing import

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.12
    • 6.10
    • QML: Tooling
    • None

      We could enhance the warning for missing import.
      Currently we have "Did you add all imports and dependencies? [import]" when you use a type without its import.

      We could improve it by:

      • having a fixed mapping from typenames to candidate QML Modules that export it
      • loading all the QML modules accessible from the import paths and keeping a "typename to QML Module" map

      Then we could warn that "Type XXX can be imported from ModuleA, ModuleB or ModuleC".

        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