Open
Description
Brief Issue Summary
- open vscode, choose preset, configure cmake project
- set a keyboard shortcut to the command cmake extension command cmake.compileFile (in my case ctrl+F7).
- open a cpp file in that configured project
- press shortcut (here ctrl + F7)
Expected: compiles single file
Actual: Error popup with "Unable to find compilation information for this file"
CMake Tools Diagnostics
{
"os": "win32",
"vscodeVersion": "1.100.3",
"cmtVersion": "1.20.53",
"configurations": [
{
"folder": "d:\\workspace\\mdes1",
"cmakeVersion": "4.0.2",
"configured": true,
"generator": "Ninja",
"usesPresets": true,
"compilers": {
"C": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe",
"CXX": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"
}
}
],
"cpptoolsIntegration": {
"isReady": true,
"hasCodeModel": true,
"activeBuildType": "RelWithDebInfo",
"buildTypesSeen": [
"RelWithDebInfo"
],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 802,
"executablesCount": 186,
"librariesCount": 609,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": true
}
]
}
Debug Log
[main] Saving open files before configure/build
[extension] [2016] cmake.compileFile finished (returned undefined)
Additional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Blocked