microsoft / microsoft/vscode-cmake-tools

[Bug] "CMake: Run Without Debugging" just clears terminal

Open
#4,354 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug more info needed
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

It just clears the output and does nothing. If I'm not in the output tab already, it doesn't even switch to it, doing absolutely nothing. I'm on WSL Ubuntu using vcpkg.

### CMake Tools Diagnostics

```shell
{
"os": "linux",
"vscodeVersion": "1.98.2",
"cmtVersion": "1.20.53",
"configurations": [
{
"folder": "/home/pc/scene_text_edit",
"cmakeVersion": "3.28.3",
"configured": true,
"generator": "Ninja",
"usesPresets": true,
"compilers": {
"C": "/usr/bin/cc",
"CXX": "/usr/bin/c++"
}
}
],
"cpptoolsIntegration": {
"isReady": true,
"hasCodeModel": true,
"activeBuildType": "",
"buildTypesSeen": [
""
],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 1,
"executablesCount": 1,
"librariesCount": 0,
"targets": [
{
"name": "scene_text_edit",
"type": "EXECUTABLE"
}
]
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
```

### Debug Log

```shell
[Link](https://gist.github.com/rust-play/8828ba44b8d6306b92494091234d7b67)
```

### Additional Information

Output with debug I think:

`[extension] [7520] cmake.launchTarget finished (returned null)`

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

Reproduce the issue in VS Code CMake Tools on WSL Ubuntu using the reported Ninja preset, then start from the `cmake.launchTarget` entry shown in the debug log. Confirm the command launches the configured executable and switches to the output view instead of clearing the terminal; use the linked debug log and diagnostics to compare the failing path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.