Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-152

randomly generate duplicate kits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 1.3.1
    • C++, CMake
    • None
    • Windows

    Description

      EVERY time when restart vscode / reload window / restart extension host, Qt project's CMake cache ALWAYS treated out-dated, cause `CMake: Build` go through configure again (despite CMakeFiles/CMakeCache.txt still exists and configure just a quick passthrough) and trigger whole build instead of incremental build.
      However, aslong as I do not restart the extension, all incremental build works well.

       

      According to Qt C++ extension log(attachment), it seems that Qt kits are regenerated and selected despite it already existed in CMake kits, maybe it's the problem?

       


       

      I've tried in some projects, that incremental build works well after `CMake: Configure` without Qt kits.

      So I digged this case in several projects, found it occurs randomly in this situation:


      Sometimes, the extension generates duplicate Qt kits despite they're already exist. In this case, `CMake: Configure` will invalid any targets linking to Qt, so incremental build of these targets are invalidated.

      Attachments

        1. log.log
          34 kB
          Fei Chong
        2. image-2025-03-17-12-31-13-719.png
          45 kB
          Fei Chong
        3. qt-cpp.log
          42 kB
          Fei Chong
        4. cmake-tools-kits.json
          4 kB
          Fei Chong
        5. qt-cpp-reset.log
          54 kB
          Fei Chong
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            orkun.tokdemir Orkun Tokdemir
            fei.chong Fei Chong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes