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

Implement a common mechanism for passing import paths to qmllint and qmlls

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • None
    • QML: Tooling
    • None

      Problem
      The tests at QTBUG-137199 show that qmllint and qmlls can receive different import paths and produce different warnings from each other.

      This is confusing: Developers rely on qmllint and qmlls to assess the correctness of their QML project. Having discrepancies between the code editor window and the compilation output does not inspire confidence.

       

      Suggestions

      We could simply try to ensure that the build system passes the same list of import paths to both qmllint and qmlls. However, there is still a risk that a future change causes divergence again.

      Is there a way to pass import paths to both tools via a shared mechanism? (Currently, qmllint reads *.rsp files while qmlls reads .qmlls.build.ini files - Could they read from a common file instead?)

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

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes