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

qmlls: lints out-of-date versions of files in the linter

XMLWordPrintable

    • 5b5888587 (dev), 2c41f8ac7 (6.9), 1f8039ae8 (6.8)

      Reproducer steps:

      1. Have a Main.qml file with this content:
        import QtQuick
        
        Item {
            enum Qwer { ASDF, INCORRECT, ZXCV }
        
            property var myEnum: Main.CORRECT
        }
        
      2. save the file
      3. modify {{enum Qwer { ASDF, INCORRECT, ZXCV }

        }} to {{enum Qwer

        { ASDF, CORRECT, ZXCV }

        }}

      4. See that the qmlls linter still complains about the unknown enum value
      5. Save the file
      6. Now the qmlls linter knows about the enum value

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

            sami.shalayel Sami Shalayel
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes