-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kit with preferredGenerator isn't finding generator #4031
Comments
My scenario is the following: I have a "configurePresets": [
{
"name": "windows",
"inherits": "base",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
}
}
] And base contains the following, that is relevant: "generator": "Ninja",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" I don't have the compiler in my In the |
Ah, it might be that the PR from #4028 fixes this? I'll try to reproduce your project, despite not having a full repro. Thanks |
@marcogmaia Could you test with the vsix from this comment: #4023 (comment)? After some investigation, I think I see what's happening. Could you try this vsix here? |
Still not working. Diagnostic log: {
"os": "win32",
"vscodeVersion": "1.92.2",
"cmtVersion": "1.13.0",
"configurations": [
{
"folder": "c:\\Users\\marco\\Documents\\dev\\random_folder",
"cmakeVersion": "3.30.0",
"configured": true,
"generator": "Ninja",
"usesPresets": true,
"compilers": {
"C": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe",
"CXX": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe"
}
}
],
"cpptoolsIntegration": {
"isReady": false,
"hasCodeModel": false,
"activeBuildType": "",
"buildTypesSeen": [],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 0,
"executablesCount": 0,
"librariesCount": 0,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": false
}
]
} Build log:
|
Could you please make a minimal repro so that I can directly test so that I can best investigate? I've confirmed with a test I made with your preset that the toolchain file is being correctly grabbed, and that the environment includes the developer environment. Therefore, I'll need more information and more concrete repro in order to see what's going on. Thanks. |
@marcogmaia I've tested that this configure preset works as expected: { |
I'll test it later with a clean repo to see if it works with a minimal setup. |
@marcogmaia Thank you, apologies for the confusion, we're working on a couple of different items that slightly regressed, I appreciate your patience and willingness to help test. If you can get me a CMakeLists.txt to go with a the presets you passed that would be helpful. As far as I currently can tell #4028 fixes the issue right now. We hope to merge that PR today sometime |
@KorkiFork Could you test with this vsix, modify the extension from .zip to .vsix? I believe that it may fix your issue and it would help if you could confirm |
The fix for this issue will be released in the next hour or so in v1.20.2. |
@gcampbell-msft, the pre-release version is working fine. Thanks. |
Install jom (https://wiki.qt.io/Jom).
Add jom.exe location to your system PATH.
In cmake-tools-kits.json add the following kit:
{"name": "JOM test kit", "preferredGenerator": {"name": "NMake Makefiles JOM"}}
Open a CMake project and try to configure it with the "JOM test kit".
You will get the error:
Originally posted by @KorkiFork in #4019 (comment)
The text was updated successfully, but these errors were encountered: