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

qmllint: enhance warnings for missing import

    XMLWordPrintable

Details

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

    Description

      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".

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes