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

qmllint can not detect "Error: Cannot assign to non-existent property"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • 6.9.1
    • QML: Tooling

      If I run code bellow, I got error from "qml": 'Error: Cannot assign to non-existent property "boo"'',
      but for some reason qmlllint from 6.9.1 do not produce any warnings about this.

      import QtQuick 2.15
      
      Item {
          id: item
      
          property int foo
      
          Component.onCompleted: {
              item.foo = 17;
              console.log("set foo to ", item.foo);
              item.boo = 18;// !!! ERROR HERE !!!
          }
      }
      

        For Gerrit Dashboard: QTBUG-139114
        # Subject Branch Project Status CR V

            qtqmlteam Qt Qml Team User
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change
                • WIP
                  -2 Gerrit Review: