microsoft / microsoft/vscode-cmake-tools
The logic of the run button is incorrect
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
Brief Issue Summary
Windows version: windows 10 22H2
VS Code version: 1.81.0
CMake tools version: 1.61.0
When using the CMake extension, if I launch an executable using the start button on the status bar, according to the normal usage logic, the CMake extension should only compile the executable and its related build options. However, the extensionalso compiles the selected build options in the build button, which clearly contradicts the usual usage habit and expectation.
As shown in the figure below, I have selected the program "camera_with_mouse" to run. In the build options, I have selected "camera_practice_two". Based on the output, it can be seen that CMake Tools compiled both of the above options. However, the executable program in the build option does not require compilation.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CMake Tools status-bar start button and the build-button selection behavior, reproducing the report on Windows 10 22H2 with the listed VS Code and CMake Tools versions. Compare which targets are compiled when running camera_with_mouse while camera_practice_two is selected for building. Done means the run action compiles only the executable and related build options required for that run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript, vscode
- Domain
- build-system, developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100