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

Do not rewrite cmake-tools-kits.json each time on start, throwing away user changes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P2: Important
    • None
    • None
    • CMake
    • None
    • Windows

    Description

      Each time I start VS Code, the extension seems to rescan Qt versions and rewrite cmake-tools-kits.json in my user settings. It also discards any changes I make to the detected Qt kits.

      My use case is this: I'm cross-compiling an app from Windows to Linux ARM board, so I built Qt from source. I registered my Qt installation, providing a path to qmake executable. But I'm unable to specify cross-compilers paths for that kit (my local compiler is invoked instead), nor am I able to add an extra CMake variable.

      I worked around this issue by using the cross-compiler kit detected by CMake Tools extension itself, and adding extra CMake variable in settings.json file in my workspace.

      Attachments

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

        Activity

          People

            orkun.tokdemir Orkun Tokdemir
            azarubkin Alexandr Zarubkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes