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

qmlls does not know about newly added properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 6.8
    • 6.8
    • QML: Tooling
    • None

      From the original bug report:

      Adding a property string foo to a component is not available to the QML LS until a) after the modified file has been saved and b) after the code has been built and c) after the enclosing QML file is subsequently edited. That's three steps necessary to let the code model know about a single string property addition.

      It seems that typing "property string foo" will be shortly colored correctly via semantic highlighting, and then the entire file will be uncolored. This stays this way until the qml file is modified again, see also attached movie.

      The highlighting should not jump around all the time, and it should not fail after the "foo" property was written entirely.

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

            qtqmlteam Qt Qml Team User
            sami.shalayel Sami Shalayel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes