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

qmllint: search in directory not working?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0 (Next Major Release)
    • Fix Version/s: 6.1
    • Component/s: QML: Tooling

      Description

      I tried current dev.

      Foo.qml:

      import QtQml 2.15
      
      QtObject {
          property int x: 5
      }
      

      and Main.qml in the same directory:

      import QtQuick 2.15
      
      Rectangle {
          Foo {
              x: "aaa"
              y: 5
          }
      }
      

      I expected error about not existing property "y" and wrong type of initializer of "x",
      but got no output and 0 exit code.
      While for example qmlscene report errors:

      qmlscene Main.qml
      file:///var/tmp/test_qml_simple/Main.qml:6 Cannot assign to non-existent property "y"
      

      and if I removed "y" it will report about wrong type of initializer of "x".

      I tried "qmllint Main.qml" and also "qmllint Foo.qml Main.qml".

      I also I tried to put Foo.qml into module, and import explicitly.
      But situation was the same not error about not existing property and "int" vs "string" for "x" init.

        Attachments

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

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes