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

qmllint: search in directory not working?

    XMLWordPrintable

Details

    • 08c8e8ac3ba8eb23ae5c158990f5d029ac9988ed

    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

            ulherman Ulf Hermann
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes