vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

The CMake: Select a kit command does not work the first time you click on it.

Open v-frankwang opened this issue 1 year ago • 1 comments

Brief Issue Summary

Repro steps:

  1. Create a new folder named 'Test' and open it with vscode.
  2. Create a file named CMakeLists.txt with the following content:
cmake_minimum_required(VERSION 3.8) 
project(Test)
add_executable(Test "main.cpp")
  1. Create a file named main.cpp with the following content:
#include <iostream>

int main(int argc, char **argv)
{
    std::cout << "Hello World" << std::endl;
    return 0;
}
  1. Run command: “CMake:configure
  2. Run command: “CMake:Select a kit

Actual results: issue1

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

v-frankwang avatar Jun 28 '24 06:06 v-frankwang

@v-frankwang COuld you output the CMake Log Diagnostics when creating an issue? This gives us more information to help diagnose. Also, what OS's does this reproduce on?

gcampbell-msft avatar Aug 23 '24 18:08 gcampbell-msft

@gcampbell-msft Thank you very much for your reply, I will keep an eye on this issue when creating future issues :provide CMake Log Diagnostics . I verified this issue on previous releases and since CMake Tools: v1.19.20 (pre-release) this issue has not come back so I will close this issue!

v-frankwang avatar Aug 30 '24 08:08 v-frankwang