microsoft / microsoft/vscode-cmake-tools

No Debug or Launch Targets with empty Build type

Open
#3,968 9 comments 1 reaction 0 assignees View on GitHub
bug Feature: debug/launch
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

Configuring a Project without a [CMAKE_BUILD_TYPE](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html) result in this extension not being able to Select a Debug or Launch Target in the CMake Window.
And because of that its not possible to run or Debug any Target.

Note that I use a single-configuration Generator (`Ninja`), so atleast for this case there should be no ambiguity.

Pic with the non-working Debug Selector, note that the plugin has no trouble listing targets or running tests.

![VsCode](https://github.com/user-attachments/assets/89434c3c-0224-45cf-90c8-adb4c8496a14)

### CMake Tools Diagnostics

```shell
{
"os": "linux",
"vscodeVersion": "1.91.1",
"cmtVersion": "1.18.43",
"configurations": [
{
"folder": "/home/noppl/git/llvm-mingw/test/cmake/tests",
"cmakeVersion": "3.30.1",
"configured": true,
"generator": "Ninja",
"usesPresets": true,
"compilers": {}
}
],
"cpptoolsIntegration": {
"isReady": false,
"hasCodeModel": false,
"activeBuildType": "",
"buildTypesSeen": [],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 0,
"executablesCount": 0,
"librariesCount": 0,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": null
}
]
}
```

### Debug Log

```shell
2024-08-08T21:09:45.991Z [info] [proc] Executing command: /usr/bin/cmake --version
2024-08-08T21:09:46.030Z [info] [proc] Executing command: /usr/bin/cmake -E capabilities
2024-08-08T21:09:46.201Z [debug] [main] Safe constructing new CMakeProject instance
2024-08-08T21:09:46.202Z [debug] [variant] Constructing VariantManager
2024-08-08T21:09:46.203Z [debug] [main] Constructing new CMakeProject instance
2024-08-08T21:09:46.204Z [debug] [main] Starting CMake Tools second-phase init
2024-08-08T21:09:46.206Z [debug] [expand] expanded ${workspaceFolder}
2024-08-08T21:09:46.390Z [info] [variant] Loaded new set of variants
2024-08-08T21:09:46.400Z [debug] [kit] Reading kits file /home/noppl/.local/share/CMakeTools/cmake-tools-kits.json
2024-08-08T21:09:46.428Z [info] [kit] Successfully loaded 3 kits from /home/noppl/.local/share/CMakeTools/cmake-tools-kits.json
2024-08-08T21:09:46.431Z [debug] [expand] expanded ${userHome}/.hipase/clang-toolchainfile.cmake
2024-08-08T21:09:46.441Z [debug] [kit] Not reading non-existent kits file: /home/noppl/git/llvm-mingw/test/cmake/tests/.vscode/cmake-kits.json
2024-08-08T21:09:46.443Z [debug] [presetController] Reading presets file /home/noppl/git/llvm-mingw/test/cmake/tests/CMakePresets.json
2024-08-08T21:09:46.444Z [info] [presetController] Reading and validating the presets "file /home/noppl/git/llvm-mingw/test/cmake/tests/CMakePresets.json"
2024-08-08T21:09:46.535Z [info] [presetController] Successfully validated presets in /home/noppl/git/llvm-mingw/test/cmake/tests/CMakePresets.json
2024-08-08T21:09:46.558Z [info] [proc] Executing command: uname -s
2024-08-08T21:09:46.574Z [debug] [expand] expanded ${hostSystemName}
2024-08-08T21:09:46.576Z [debug] [expand] expanded ${hostSystemName}
2024-08-08T21:09:46.577Z [debug] [main] Resolving the selected configure preset
2024-08-08T21:09:46.590Z [debug] [expand] expanded _build/${presetName}
2024-08-08T21:09:46.594Z [debug] [main] Loading new configure preset into CMake driver
2024-08-08T21:09:46.631Z [debug] [main] Resolving the selected build preset
2024-08-08T21:09:46.645Z [debug] [expand] expanded _build/${presetName}
2024-08-08T21:09:46.655Z [debug] [main] Loading new build preset into CMake driver
2024-08-08T21:09:46.680Z [debug] [main] Resolving the selected test preset
2024-08-08T21:09:46.681Z [debug] [main] Resolving the selected test preset
2024-08-08T21:09:46.692Z [debug] [expand] expanded _build/${presetName}
2024-08-08T21:09:46.704Z [debug] [main] Loading new test preset into CMake driver
2024-08-08T21:09:46.730Z [debug] [main] Resolving the selected package preset
2024-08-08T21:09:46.730Z [debug] [main] Resolving the selected package preset
2024-08-08T21:09:46.743Z [debug] [expand] expanded _build/${presetName}
2024-08-08T21:09:46.753Z [debug] [main] Loading new package preset into CMake driver
2024-08-08T21:09:46.760Z [debug] [main] Resolving the selected workflow preset
2024-08-08T21:09:46.760Z [debug] [main] Resolving the selected workflow preset
2024-08-08T21:09:46.772Z [debug] [expand] expanded _build/${presetName}
2024-08-08T21:09:46.773Z [debug] [main] Loading new workflow preset into CMake driver
2024-08-08T21:09:46.789Z [debug] [main] CMakeProject instance initialization complete.
2024-08-08T21:09:46.829Z [debug] [extension] Attempting to use cache to configure workspace file:///home/noppl/git/llvm-mingw/test/cmake/tests
2024-08-08T21:09:46.867Z [debug] [main] Starting new CMake driver
2024-08-08T21:09:46.868Z [debug] [main] Starting CMake driver
2024-08-08T21:09:46.868Z [debug] [cmakefileapi-driver] Creating instance of CMakeFileApiDriver
2024-08-08T21:09:46.868Z [debug] [driver] Initializing base driver using preset
2024-08-08T21:09:46.869Z [debug] [driver] CMakeDriver configure preset set to llvm-mingw
2024-08-08T21:09:46.870Z [debug] [driver] CMakeDriver build preset set to __defaultBuildPreset__
2024-08-08T21:09:46.870Z [debug] [driver] CMakeDriver test preset set to __defaultTestPreset__
2024-08-08T21:09:46.871Z [debug] [driver] CMakeDriver package preset set to __defaultPackagePreset__
2024-08-08T21:09:46.871Z [debug] [driver] CMakeDriver workflow preset set to __defaultWorkflowPreset__
2024-08-08T21:09:46.878Z [debug] [cache] Reading CMake cache file /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/CMakeCache.txt
2024-08-08T21:09:46.879Z [debug] [cache] Parsing CMake cache string
2024-08-08T21:09:46.900Z [debug] [cache] Reading CMake cache file /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/CMakeCache.txt
2024-08-08T21:09:46.906Z [debug] [cache] Parsing CMake cache string
2024-08-08T21:09:46.922Z [debug] [cmakefileapi-parser] Read reply folder: /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/.cmake/api/v1/reply
2024-08-08T21:09:47.212Z [debug] [cmakefileapi-parser] Found index files: ["cache-v2-d5efbaeedb4e2f342c76.json","cmakeFiles-v1-7328133fa6dee4d34d7c.json","codemodel-v2-3db6f96b02b63efa9463.json","directory-.-RelWithDebInfo-2c06a07ab7ac161dd863.json","index-2024-08-08T21-08-46-0187.json","target-Continuous-RelWithDebInfo-a14b16289953bcbfa23d.json","target-ContinuousBuild-RelWithDebInfo-8c0dd7f14054a9d941da.json","target-ContinuousConfigure-RelWithDebInfo-2975eee064636551a852.json","target-ContinuousCoverage-RelWithDebInfo-5bbb2a07d5c17856fd0e.json","target-ContinuousMemCheck-RelWithDebInfo-89c5d6d936b672f32f10.json","target-ContinuousStart-RelWithDebInfo-661304db76dca823c733.json","target-ContinuousSubmit-RelWithDebInfo-f1301c2a57e2f3a1b576.json","target-ContinuousTest-RelWithDebInfo-6da4177bc663175a7862.json","target-ContinuousUpdate-RelWithDebInfo-b08e2518e6cda8a3c16a.json","target-Experimental-RelWithDebInfo-26c1fd641bf510830a2b.json","target-ExperimentalBuild-RelWithDebInfo-4ff0632ab96062bdef56.json","target-ExperimentalConfigure-RelWithDebInfo-55870c00f0684cf8fa6d.json","target-ExperimentalCoverage-RelWithDebInfo-d0ae24caec3eca4493c1.json","target-ExperimentalMemCheck-RelWithDebInfo-9f1b85e0f1cd5a972c08.json","target-ExperimentalStart-RelWithDebInfo-323576005af7c7382a3f.json","target-ExperimentalSubmit-RelWithDebInfo-a43562abea4523ca4969.json","target-ExperimentalTest-RelWithDebInfo-bb0c908c0a7db27be5d9.json","target-ExperimentalUpdate-RelWithDebInfo-f8823a0546eac246fac6.json","target-Nightly-RelWithDebInfo-ac19a6612dd5cb5faf0a.json","target-NightlyBuild-RelWithDebInfo-3ae9ac960f536a9263ae.json","target-NightlyConfigure-RelWithDebInfo-f802e9a2c791f6556a0d.json","target-NightlyCoverage-RelWithDebInfo-e3d029d374ea68b3e8e3.json","target-NightlyMemCheck-RelWithDebInfo-b236afff39118314be66.json","target-NightlyMemoryCheck-RelWithDebInfo-3cc8a0b5a7558bbac674.json","target-NightlyStart-RelWithDebInfo-d6bb1c68bccb5a54b177.json","target-NightlySubmit-RelWithDebInfo-69c94b830a2c1d2ebd3c.json","target-NightlyTest-RelWithDebInfo-96edbd22147e660bb57f.json","target-NightlyUpdate-RelWithDebInfo-f59f0d48903c68fb79f6.json","target-atomic-helpers-RelWithDebInfo-a77a26e650408305ecb7.json","target-autoimport-lib-RelWithDebInfo-dd3367020f59b6112d6d.json","target-autoimport-main-RelWithDebInfo-3ab3df725f8167a7d857.json","target-bufferoverflow-fortify-RelWithDebInfo-8d2122ca8cfee559b4a9.json","target-cfguard-test-RelWithDebInfo-72432fa00f2bc72a4f1c.json","target-crt-test-RelWithDebInfo-c42f47fd059ea828c29c.json","target-crt-test-ansi-stdio-RelWithDebInfo-c0d1e335069cc1bfa343.json","target-crt-test-fortify-RelWithDebInfo-758fc2ce02e8c7db1a9d.json","target-crt-test-no-builtin-RelWithDebInfo-f35249cd37db8c333aec.json","target-exception-locale-RelWithDebInfo-2f5c640e687641f78dbe.json","target-exception-reduced-RelWithDebInfo-e0e49b1ad7b57ff7a124.json","target-global-terminate-RelWithDebInfo-172042011850642cf28a.json","target-hello-RelWithDebInfo-01512e8e4d0eeefe0eee.json","target-hello-cpp-RelWithDebInfo-12a5e88852a6a1f7194b.json","target-hello-exception-RelWithDebInfo-dd67c03aa5b58dc46f4f.json","target-hello-exception-static-RelWithDebInfo-0a59911d0657cbf029ab.json","target-hello-mingw32uwp-RelWithDebInfo-1d4f3dbca86758e93e4d.json","target-hello-omp-RelWithDebInfo-77bb63a1a458f86c0b09.json","target-hello-res-RelWithDebInfo-3e5cbda4d974cfb37137.json","target-hello-tls-RelWithDebInfo-b60f89fd415352a055a7.json","target-hello-tls-mingw32uwp-RelWithDebInfo-951358484014a5cda7b5.json","target-idltest-RelWithDebInfo-62b86cf05a8fa46ce6f9.json","target-idltest_headers-RelWithDebInfo-03767ad67c407424e684.json","target-longjmp-cleanup-RelWithDebInfo-562e063080db75dde3d0.json","target-setjmp-RelWithDebInfo-b20f7ae485b2115e8a9d.json","target-stacksmash-RelWithDebInfo-caaee27ba24a08d2e4d0.json","target-stacksmash-asan-RelWithDebInfo-d3821b9abe311cadce74.json","target-stacksmash-asan-cfguard-RelWithDebInfo-b2739ea37d5e2b4954a9.json","target-throwcatch-lib-RelWithDebInfo-b07220da780a4253136f.json","target-throwcatch-main-RelWithDebInfo-875cac5751ae6d0a5317.json","target-tlstest-lib-RelWithDebInfo-c62d533b9ed1170647a2.json","target-tlstest-main-RelWithDebInfo-983ff8e05d0f80e747e9.json","target-ubsan-RelWithDebInfo-3c096260b630d4f8a963.json","target-uwp-error-mingw32-RelWithDebInfo-7fa98c7934fd2b0f4dce.json","toolchains-v1-d0a2e8d5038f9c79f050.json"]
2024-08-08T21:09:47.292Z [debug] [driver] Setting new variant Debug
2024-08-08T21:09:47.296Z [debug] [driver] Use cached configuration
2024-08-08T21:09:47.296Z [debug] [driver] Running pre-configure checks and steps
2024-08-08T21:09:47.304Z [debug] [cmakefileapi-parser] Read reply folder: /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/.cmake/api/v1/reply
2024-08-08T21:09:47.308Z [debug] [cmakefileapi-parser] Found index files: ["cache-v2-d5efbaeedb4e2f342c76.json","cmakeFiles-v1-7328133fa6dee4d34d7c.json","codemodel-v2-3db6f96b02b63efa9463.json","directory-.-RelWithDebInfo-2c06a07ab7ac161dd863.json","index-2024-08-08T21-08-46-0187.json","target-Continuous-RelWithDebInfo-a14b16289953bcbfa23d.json","target-ContinuousBuild-RelWithDebInfo-8c0dd7f14054a9d941da.json","target-ContinuousConfigure-RelWithDebInfo-2975eee064636551a852.json","target-ContinuousCoverage-RelWithDebInfo-5bbb2a07d5c17856fd0e.json","target-ContinuousMemCheck-RelWithDebInfo-89c5d6d936b672f32f10.json","target-ContinuousStart-RelWithDebInfo-661304db76dca823c733.json","target-ContinuousSubmit-RelWithDebInfo-f1301c2a57e2f3a1b576.json","target-ContinuousTest-RelWithDebInfo-6da4177bc663175a7862.json","target-ContinuousUpdate-RelWithDebInfo-b08e2518e6cda8a3c16a.json","target-Experimental-RelWithDebInfo-26c1fd641bf510830a2b.json","target-ExperimentalBuild-RelWithDebInfo-4ff0632ab96062bdef56.json","target-ExperimentalConfigure-RelWithDebInfo-55870c00f0684cf8fa6d.json","target-ExperimentalCoverage-RelWithDebInfo-d0ae24caec3eca4493c1.json","target-ExperimentalMemCheck-RelWithDebInfo-9f1b85e0f1cd5a972c08.json","target-ExperimentalStart-RelWithDebInfo-323576005af7c7382a3f.json","target-ExperimentalSubmit-RelWithDebInfo-a43562abea4523ca4969.json","target-ExperimentalTest-RelWithDebInfo-bb0c908c0a7db27be5d9.json","target-ExperimentalUpdate-RelWithDebInfo-f8823a0546eac246fac6.json","target-Nightly-RelWithDebInfo-ac19a6612dd5cb5faf0a.json","target-NightlyBuild-RelWithDebInfo-3ae9ac960f536a9263ae.json","target-NightlyConfigure-RelWithDebInfo-f802e9a2c791f6556a0d.json","target-NightlyCoverage-RelWithDebInfo-e3d029d374ea68b3e8e3.json","target-NightlyMemCheck-RelWithDebInfo-b236afff39118314be66.json","target-NightlyMemoryCheck-RelWithDebInfo-3cc8a0b5a7558bbac674.json","target-NightlyStart-RelWithDebInfo-d6bb1c68bccb5a54b177.json","target-NightlySubmit-RelWithDebInfo-69c94b830a2c1d2ebd3c.json","target-NightlyTest-RelWithDebInfo-96edbd22147e660bb57f.json","target-NightlyUpdate-RelWithDebInfo-f59f0d48903c68fb79f6.json","target-atomic-helpers-RelWithDebInfo-a77a26e650408305ecb7.json","target-autoimport-lib-RelWithDebInfo-dd3367020f59b6112d6d.json","target-autoimport-main-RelWithDebInfo-3ab3df725f8167a7d857.json","target-bufferoverflow-fortify-RelWithDebInfo-8d2122ca8cfee559b4a9.json","target-cfguard-test-RelWithDebInfo-72432fa00f2bc72a4f1c.json","target-crt-test-RelWithDebInfo-c42f47fd059ea828c29c.json","target-crt-test-ansi-stdio-RelWithDebInfo-c0d1e335069cc1bfa343.json","target-crt-test-fortify-RelWithDebInfo-758fc2ce02e8c7db1a9d.json","target-crt-test-no-builtin-RelWithDebInfo-f35249cd37db8c333aec.json","target-exception-locale-RelWithDebInfo-2f5c640e687641f78dbe.json","target-exception-reduced-RelWithDebInfo-e0e49b1ad7b57ff7a124.json","target-global-terminate-RelWithDebInfo-172042011850642cf28a.json","target-hello-RelWithDebInfo-01512e8e4d0eeefe0eee.json","target-hello-cpp-RelWithDebInfo-12a5e88852a6a1f7194b.json","target-hello-exception-RelWithDebInfo-dd67c03aa5b58dc46f4f.json","target-hello-exception-static-RelWithDebInfo-0a59911d0657cbf029ab.json","target-hello-mingw32uwp-RelWithDebInfo-1d4f3dbca86758e93e4d.json","target-hello-omp-RelWithDebInfo-77bb63a1a458f86c0b09.json","target-hello-res-RelWithDebInfo-3e5cbda4d974cfb37137.json","target-hello-tls-RelWithDebInfo-b60f89fd415352a055a7.json","target-hello-tls-mingw32uwp-RelWithDebInfo-951358484014a5cda7b5.json","target-idltest-RelWithDebInfo-62b86cf05a8fa46ce6f9.json","target-idltest_headers-RelWithDebInfo-03767ad67c407424e684.json","target-longjmp-cleanup-RelWithDebInfo-562e063080db75dde3d0.json","target-setjmp-RelWithDebInfo-b20f7ae485b2115e8a9d.json","target-stacksmash-RelWithDebInfo-caaee27ba24a08d2e4d0.json","target-stacksmash-asan-RelWithDebInfo-d3821b9abe311cadce74.json","target-stacksmash-asan-cfguard-RelWithDebInfo-b2739ea37d5e2b4954a9.json","target-throwcatch-lib-RelWithDebInfo-b07220da780a4253136f.json","target-throwcatch-main-RelWithDebInfo-875cac5751ae6d0a5317.json","target-tlstest-lib-RelWithDebInfo-c62d533b9ed1170647a2.json","target-tlstest-main-RelWithDebInfo-983ff8e05d0f80e747e9.json","target-ubsan-RelWithDebInfo-3c096260b630d4f8a963.json","target-uwp-error-mingw32-RelWithDebInfo-7fa98c7934fd2b0f4dce.json","toolchains-v1-d0a2e8d5038f9c79f050.json"]
2024-08-08T21:09:47.449Z [debug] [expand] expanded ${workspaceFolder}/build/compile_commands.json
2024-08-08T21:09:47.450Z [debug] [main] Copying compile_commands.json from /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/compile_commands.json to /home/noppl/git/llvm-mingw/test/cmake/tests/build/compile_commands.json
2024-08-08T21:10:02.338Z [debug] [extension] [9480] cmake.selectLaunchTarget started
2024-08-08T21:10:02.349Z [info] [main] Configuring project: tests
2024-08-08T21:10:02.350Z [debug] [main] Saving open files before configure/build
2024-08-08T21:10:02.357Z [debug] [driver] Start configure
2024-08-08T21:10:02.357Z [debug] [driver] Running pre-configure checks and steps
2024-08-08T21:10:02.359Z [info] [driver] NOTE: You are configuring with preset LLVM Mingw Toolchain, but there are some overrides being applied from your VS Code settings.
2024-08-08T21:10:02.364Z [debug] [cmakefileapi-driver] Configuring using preset
2024-08-08T21:10:02.364Z [debug] [cmakefileapi-driver] Invoking CMake /usr/bin/cmake with arguments ["-DCMAKE_TOOLCHAIN_FILE=/opt/llvm-mingw/share/cmake/llvm-mingw_toolchainfile.cmake","-DCMAKE_EXPORT_COMPILE_COMMANDS=ON","-S/home/noppl/git/llvm-mingw/test/cmake/tests","-B/home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw","-G","Ninja"]
2024-08-08T21:10:02.367Z [info] [proc] Executing command: /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/opt/llvm-mingw/share/cmake/llvm-mingw_toolchainfile.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -S/home/noppl/git/llvm-mingw/test/cmake/tests -B/home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw -G Ninja
2024-08-08T21:10:02.367Z [debug] [proc] with environment: {"CHROME_DESKTOP":"codium-url-handler.desktop","CMAKE_BUILD_TYPE":"RelWithDebInfo","CMAKE_GENERATOR":"Ninja","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DEBUGINFOD_URLS":"https://debuginfod.debian.net https://debuginfod-rd3.sat-hy.com","DESKTOP_SESSION":"gnome","DISPLAY":":0","GDK_BACKEND":"x11","GDMSESSION":"gnome","GDM_LANG":"en_GB.UTF-8","GIO_LAUNCHED_DESKTOP_FILE":"/usr/share/applications/codium.desktop","GIO_LAUNCHED_DESKTOP_FILE_PID":"3561","GJS_DEBUG_OUTPUT":"stderr","GJS_DEBUG_TOPICS":"JS ERROR;JS LOG","GNOME_DESKTOP_SESSION_ID":"this-is-deprecated","GNOME_SETUP_DISPLAY":":1","GTK_MODULES":"gail:atk-bridge","HOME":"/home/noppl","INVOCATION_ID":"25c5759e45cc489f937b20d8414d5665","JOURNAL_STREAM":"8:25973","LANG":"en_GB.UTF-8","LANGUAGE":"en_GB:en","LOGNAME":"noppl","MANAGERPID":"1491","OLDPWD":"/home/noppl","ORIGINAL_XDG_CURRENT_DESKTOP":"GNOME","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","PWD":"/home/noppl","QT_ACCESSIBILITY":"1","SESSION_MANAGER":"local/debian-noppl:@/tmp/.ICE-unix/1665,unix/debian-noppl:/tmp/.ICE-unix/1665","SHELL":"/usr/bin/zsh","SHLVL":"0","SSH_AGENT_LAUNCHER":"openssh","SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","SYSTEMD_EXEC_PID":"1708","USER":"noppl","USERNAME":"noppl","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CODE_CACHE_PATH":"/home/noppl/.config/VSCodium/CachedData/8512cb3341b26a5dba985a9a17eed8d7c3362886","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/noppl","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-08f87f08-1.91-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en-gb\",\"osLocale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"3561","WAYLAND_DISPLAY":"wayland-0","XAUTHORITY":"/run/user/1000/.mutter-Xwaylandauth.OC8JS2","XDG_CURRENT_DESKTOP":"GNOME","XDG_MENU_PREFIX":"gnome-","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"gnome","XDG_SESSION_TYPE":"wayland","_":"/usr/share/codium/codium","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":""}
2024-08-08T21:10:02.608Z [info] [cmake] -- Configuring done (0.2s)
2024-08-08T21:10:02.656Z [info] [cmake] -- Generating done (0.0s)
2024-08-08T21:10:02.682Z [info] [cmake] -- Build files have been written to: /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw
2024-08-08T21:10:02.686Z [debug] [cmakefileapi-parser] Read reply folder: /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/.cmake/api/v1/reply
2024-08-08T21:10:02.692Z [debug] [cmakefileapi-parser] Found index files: ["cache-v2-d5efbaeedb4e2f342c76.json","cmakeFiles-v1-7328133fa6dee4d34d7c.json","codemodel-v2-3db6f96b02b63efa9463.json","directory-.-RelWithDebInfo-2c06a07ab7ac161dd863.json","index-2024-08-08T21-10-02-0681.json","target-Continuous-RelWithDebInfo-a14b16289953bcbfa23d.json","target-ContinuousBuild-RelWithDebInfo-8c0dd7f14054a9d941da.json","target-ContinuousConfigure-RelWithDebInfo-2975eee064636551a852.json","target-ContinuousCoverage-RelWithDebInfo-5bbb2a07d5c17856fd0e.json","target-ContinuousMemCheck-RelWithDebInfo-89c5d6d936b672f32f10.json","target-ContinuousStart-RelWithDebInfo-661304db76dca823c733.json","target-ContinuousSubmit-RelWithDebInfo-f1301c2a57e2f3a1b576.json","target-ContinuousTest-RelWithDebInfo-6da4177bc663175a7862.json","target-ContinuousUpdate-RelWithDebInfo-b08e2518e6cda8a3c16a.json","target-Experimental-RelWithDebInfo-26c1fd641bf510830a2b.json","target-ExperimentalBuild-RelWithDebInfo-4ff0632ab96062bdef56.json","target-ExperimentalConfigure-RelWithDebInfo-55870c00f0684cf8fa6d.json","target-ExperimentalCoverage-RelWithDebInfo-d0ae24caec3eca4493c1.json","target-ExperimentalMemCheck-RelWithDebInfo-9f1b85e0f1cd5a972c08.json","target-ExperimentalStart-RelWithDebInfo-323576005af7c7382a3f.json","target-ExperimentalSubmit-RelWithDebInfo-a43562abea4523ca4969.json","target-ExperimentalTest-RelWithDebInfo-bb0c908c0a7db27be5d9.json","target-ExperimentalUpdate-RelWithDebInfo-f8823a0546eac246fac6.json","target-Nightly-RelWithDebInfo-ac19a6612dd5cb5faf0a.json","target-NightlyBuild-RelWithDebInfo-3ae9ac960f536a9263ae.json","target-NightlyConfigure-RelWithDebInfo-f802e9a2c791f6556a0d.json","target-NightlyCoverage-RelWithDebInfo-e3d029d374ea68b3e8e3.json","target-NightlyMemCheck-RelWithDebInfo-b236afff39118314be66.json","target-NightlyMemoryCheck-RelWithDebInfo-3cc8a0b5a7558bbac674.json","target-NightlyStart-RelWithDebInfo-d6bb1c68bccb5a54b177.json","target-NightlySubmit-RelWithDebInfo-69c94b830a2c1d2ebd3c.json","target-NightlyTest-RelWithDebInfo-96edbd22147e660bb57f.json","target-NightlyUpdate-RelWithDebInfo-f59f0d48903c68fb79f6.json","target-atomic-helpers-RelWithDebInfo-a77a26e650408305ecb7.json","target-autoimport-lib-RelWithDebInfo-dd3367020f59b6112d6d.json","target-autoimport-main-RelWithDebInfo-3ab3df725f8167a7d857.json","target-bufferoverflow-fortify-RelWithDebInfo-8d2122ca8cfee559b4a9.json","target-cfguard-test-RelWithDebInfo-72432fa00f2bc72a4f1c.json","target-crt-test-RelWithDebInfo-c42f47fd059ea828c29c.json","target-crt-test-ansi-stdio-RelWithDebInfo-c0d1e335069cc1bfa343.json","target-crt-test-fortify-RelWithDebInfo-758fc2ce02e8c7db1a9d.json","target-crt-test-no-builtin-RelWithDebInfo-f35249cd37db8c333aec.json","target-exception-locale-RelWithDebInfo-2f5c640e687641f78dbe.json","target-exception-reduced-RelWithDebInfo-e0e49b1ad7b57ff7a124.json","target-global-terminate-RelWithDebInfo-172042011850642cf28a.json","target-hello-RelWithDebInfo-01512e8e4d0eeefe0eee.json","target-hello-cpp-RelWithDebInfo-12a5e88852a6a1f7194b.json","target-hello-exception-RelWithDebInfo-dd67c03aa5b58dc46f4f.json","target-hello-exception-static-RelWithDebInfo-0a59911d0657cbf029ab.json","target-hello-mingw32uwp-RelWithDebInfo-1d4f3dbca86758e93e4d.json","target-hello-omp-RelWithDebInfo-77bb63a1a458f86c0b09.json","target-hello-res-RelWithDebInfo-3e5cbda4d974cfb37137.json","target-hello-tls-RelWithDebInfo-b60f89fd415352a055a7.json","target-hello-tls-mingw32uwp-RelWithDebInfo-951358484014a5cda7b5.json","target-idltest-RelWithDebInfo-62b86cf05a8fa46ce6f9.json","target-idltest_headers-RelWithDebInfo-03767ad67c407424e684.json","target-longjmp-cleanup-RelWithDebInfo-562e063080db75dde3d0.json","target-setjmp-RelWithDebInfo-b20f7ae485b2115e8a9d.json","target-stacksmash-RelWithDebInfo-caaee27ba24a08d2e4d0.json","target-stacksmash-asan-RelWithDebInfo-d3821b9abe311cadce74.json","target-stacksmash-asan-cfguard-RelWithDebInfo-b2739ea37d5e2b4954a9.json","target-throwcatch-lib-RelWithDebInfo-b07220da780a4253136f.json","target-throwcatch-main-RelWithDebInfo-875cac5751ae6d0a5317.json","target-tlstest-lib-RelWithDebInfo-c62d533b9ed1170647a2.json","target-tlstest-main-RelWithDebInfo-983ff8e05d0f80e747e9.json","target-ubsan-RelWithDebInfo-3c096260b630d4f8a963.json","target-uwp-error-mingw32-RelWithDebInfo-7fa98c7934fd2b0f4dce.json","toolchains-v1-d0a2e8d5038f9c79f050.json"]
2024-08-08T21:10:02.825Z [debug] [expand] expanded ${workspaceFolder}/build/compile_commands.json
2024-08-08T21:10:02.832Z [debug] [main] Copying compile_commands.json from /home/noppl/git/llvm-mingw/test/cmake/tests/_build/llvm-mingw/compile_commands.json to /home/noppl/git/llvm-mingw/test/cmake/tests/build/compile_commands.json
2024-08-08T21:10:02.956Z [debug] [extension] [9480] cmake.selectLaunchTarget finished (returned null)
2024-08-08T21:12:53.333Z [debug] [extension] [7195] cmake.launchTarget started
2024-08-08T21:12:53.352Z [debug] [extension] [7195] cmake.launchTarget finished (returned null)
```

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with a single-configuration Ninja preset that leaves CMAKE_BUILD_TYPE empty. Then inspect how CMake Tools processes CMakePresets.json, CMakeCache.txt, and CMake File API replies; done means Debug and Launch target selectors populate while target listing and test execution continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
build-system, devtools
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.