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

Run the same diagnostics in qmllint, qmlcachegen(plus), and qmlcompiler

    XMLWordPrintable

    Details

    • Type: Task
    • Status: In Progress
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.3
    • Component/s: QML: Compiler, QML: Tooling
    • Labels:

      Description

      Currently all of these tools accept different dialects of QML.

      qmlcachegen accepts almost everything the QML runtime does, even if it then results in runtime errors.

      qmlcachegenplus rejects everything it happens to be unable to compile, but it does a rather involved type inference that can give retrieve information.

      qmllint has its "findwarnings" pass which is the strictest, but also the messiest of the bunch.

      The solution is to move the type inference out of qmlcachegenplus, and employ it in the other tools, too. In turn, the good parts of qmllint's checks (e.g. the check for undeclared signal parameters) should also be moved out and run as an extra pass in the other tools.

      We can then decide which issues should cause diagnostics of what severeness in which tools. qmlcachegen might only warn about undeclared signal parameters, for example, but qmlcachegenplus should reject them.

        Attachments

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

          Activity

            People

            Assignee:
            max.goldstein Maximilian Goldstein
            Reporter:
            ulherman Ulf Hermann
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes