-
Notifications
You must be signed in to change notification settings - Fork 461
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
Not finding the Visual C++ 2015 compiler from CMakePresets.json #2516
Comments
Thanks for reporting this. We haven't tested this codepath with VS 2015 and it sounds like there are some deficiencies. We'll need to install it and see what's going on. We may not get to this immediately, so if you're blocked and have a chance to help us debug it, I would set a breakpoint here. This is where we attempt to locate the script that sets the MSVC environment variables. vscode-cmake-tools/src/preset.ts Line 976 in 277123f
|
I found that I have VS 2015 installed on my laptop, but as I started to look at this, I saw that a toolchain is being used in your configure command. Are you able to share the relevant portions of that and/or any |
I am; though I also tried removing the toolchain file reference altogether; and that didn't seem to have any effect on the outcome. There's nothing sensitive in the toolchain file, though. Here are its contents:
There is just one cache variable set in the preset:
As far as debugging this myself, I'm happy to do so; but I've never written/debugged a VSCode extension before; so, I'll have to read up on how to do that. |
Thanks for the extra info! I plan to take a look at this on Monday. As far as debugging the extension goes, it's actually really easy. It's basically: install Nodejs, install yarnpkg, open the repo in VS Code and press F5. Our guide with links to the tools mentioned is here: https://github.com/microsoft/vscode-cmake-tools/blob/main/CONTRIBUTING.md |
Unfortunately, the machine where I've got all this set up is normally on a corporate VPN, which is apparently a scenario where corepack/yarn does not play nicely. Even temporarily shutting off my VPN didn't seem to get me anywhere. |
Ok. I haven't tried using corepack. I just use In any case, I have a fix for this issue which is out for review now. |
The fix for this will be available in tomorrow's pre-release version. |
Brief Issue Summary
My
configurePreset
includes:...and I have Visual Studio 2015 installed. But when I try to build using this configuration, CMake configure fails to find the C++ compiler.
CMake Tools Diagnostics
Debug Log
Additional Information
I've used
BUILDDIR
andSRCDIR
above to redact potentially sensitive information.The text was updated successfully, but these errors were encountered: