microsoft / microsoft/vscode-cmake-tools
[Bug] "CMake: Run Without Debugging" just clears terminal
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
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
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
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