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

qmlls crashes when encountering a function inside a binding

XMLWordPrintable

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

      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.

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

            qtqmlteam Qt Qml Team User
            jirauser69088 user-b4e76 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes