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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes