Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20211

Autocomplete sources seem not to update when switching between active projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.6.0
    • Quick / QML Support
    • None

    Description

      Hi,

      following situation to recreate the bug:

      I have 2 projects , projA and projB, both with a QML based Ui and c+-backend class(es). In both projects I have c+ based Enumeration that I register in the following way:

      qmlRegisterUncreatableType<Modbus>("CppEnums",1,0,"Enums","Enum is not a type");

       

      in projA, at the QML side, I type "Enums." and the autocompleter correctly shows me all valid options.

      I now open projB and, at the QML side, type "Enums." and the autocompleter shows the options from projA!

      After closing projA, only projB is open, the autocompleter still shows the options from projA, the only solution is to completly close QtCreator and restart it. Than the autocompleter in projB will show the correct options.

      When I now open projA the autocompleter will always show the options from projB. 

       

      Seems like a first come, first served situation. Not a world breaking bug, but highly irritating.

       

      Greetings.

      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
            jhilk Jonas Hilk
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes