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

qmllint debug code cause qmllint skip problems

    XMLWordPrintable

    Details

    • Commits:
      d8e73b588a4d5a6f3ee38acd455fb8aa3f0cc190 (qt/qtdeclarative/dev)

      Description

      For such code qmllint reports problem

      import QtQuick 2.15
      
      Item {
          id: myItem
      
          Component.onCompleted: {
      //        console.log("AAA");
              myItem.up33date();        
          }
      }
      
      Warning: Test.qml:8:16: Property "up33date" not found on type "Item"
              myItem.up33date();        
                     ^^^^^^^^
      

      but if I uncomment line with console then qmllint reports nothing:

      $ /usr/local/qt6_tools/bin/qmllint Test.qml 
      $
      

      This is regression, qmllint (a1c91787264f6f535b5cf094b57ee53058856df4) reports warning in both cases, but for fe59c788a65579bbeeb550fcad96cf26443df77a "console.log" somehow hide warning.

        Attachments

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

          Activity

            People

            Assignee:
            max.goldstein Maximilian Goldstein
            Reporter:
            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