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

qmlls does not know about newly added properties

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes