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

qmlls crashes when encountering a function inside a binding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.8.1
    • 6.8.0
    • QML: Tooling
    • None

    Description

      qmlls crashes when a file contains a function inside a binding, or any file imported directly or indirectly by the current file contains one.

       

      Typing either of the below bindings will instantly cause a crash:

      import QtQuick
      
      MouseArea {
          onClicked: {
              function test() {}
          }
      
          property var prop: {
              function test() {}
          }
      }
      

      A backtrace from a debug build of qtdeclarative is attached. It is also worth noting that qmllint does not crash.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes