VSC: Qt kit found but not showing in CMake selection
-
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:
but when I try to select one of them with "CMake: Select a Kit" they are not shown:
am I missing any step?
-
@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?
-
@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.
-
@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?
-
@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".
-
@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".