microsoft / microsoft/vscode-cmake-tools

The logic of the run button is incorrect

Open
#3,293 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Feature: debug/launch
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.
image

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.