Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. VSC: Qt kit found but not showing in CMake selection
QtWS25 Last Chance

VSC: Qt kit found but not showing in CMake selection

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 4 Posters 514 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by
    #1

    I'm trying the Qt extensions for VSCode, reading the guide here.

    I select the root path of Qt installation and it finds 2 kits:

    8051cac1-ba57-4979-a727-3629c67489b8-image.png

    but when I try to select one of them with "CMake: Select a Kit" they are not shown:

    be30a746-ff93-4fed-a256-0afb7cfa08bd-image.png

    am I missing any step?

    jsulmJ 1 Reply Last reply
    0
    • M Mark81

      I'm trying the Qt extensions for VSCode, reading the guide here.

      I select the root path of Qt installation and it finds 2 kits:

      8051cac1-ba57-4979-a727-3629c67489b8-image.png

      but when I try to select one of them with "CMake: Select a Kit" they are not shown:

      be30a746-ff93-4fed-a256-0afb7cfa08bd-image.png

      am I missing any step?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mark81 I never used Qt extensions. Did you check the Kits? In QtCreator you can do that, not sure about Qt extensions in VSCode. Also, are matching compiler and CMake installed?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Mark81 I never used Qt extensions. Did you check the Kits? In QtCreator you can do that, not sure about Qt extensions in VSCode. Also, are matching compiler and CMake installed?

        M Offline
        M Offline
        Mark81
        wrote on last edited by
        #3

        @jsulm the kits are installed correctly and I can use them from QtCreator.
        With the QtInstaller I have cmake 3.29.3.

        Sorry, I'm not sure to understand your last question.

        B 1 Reply Last reply
        0
        • M Mark81

          @jsulm the kits are installed correctly and I can use them from QtCreator.
          With the QtInstaller I have cmake 3.29.3.

          Sorry, I'm not sure to understand your last question.

          B Offline
          B Offline
          Bob3
          wrote on last edited by
          #4

          @Mark81 I'm having the same issue where 'Qt: Scan for Qt kits' finds the kits but 'CMake: Scan for kits' doesn't. Did you find a solution?

          M 1 Reply Last reply
          0
          • B Bob3

            @Mark81 I'm having the same issue where 'Qt: Scan for Qt kits' finds the kits but 'CMake: Scan for kits' doesn't. Did you find a solution?

            M Offline
            M Offline
            Mark81
            wrote on last edited by
            #5

            @Bob3 unfortunately not.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              seban
              wrote on last edited by
              #6

              @Mark81 If you are using Ubuntu it might be because the search path for the "cmake-tools-kits.json" file, which has all the kits configuration, for Qt is different than the actual path the vscode has. For my case the Qt was searching the above mentioned file in "~/.local/share/CMakeTools" but it was actually present inside the snap folder under "~/snap/code/188/.local/share/CMakeTools".

              M 1 Reply Last reply
              0
              • S seban

                @Mark81 If you are using Ubuntu it might be because the search path for the "cmake-tools-kits.json" file, which has all the kits configuration, for Qt is different than the actual path the vscode has. For my case the Qt was searching the above mentioned file in "~/.local/share/CMakeTools" but it was actually present inside the snap folder under "~/snap/code/188/.local/share/CMakeTools".

                M Offline
                M Offline
                Mark81
                wrote on last edited by
                #7

                @seban ok, I have the same situation. To fix I have to manually edit the snap json file? It would not be restored after an update?

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved