-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add config squiggles for mismatching compilerPath vs intelliSenseMode #2983
Comments
Can you enable Debug logging and check if the WSL versus MSVC header paths are being used? It's possible something is causing the cl.exe to not be used and it's falling back to the WSL stuff. |
Yes. WSL header paths are used. Here is the log:
Here is c_cpp_properties.json:
|
It's caused by your intelliSenseMode being "clang-x64" -- can you change it to msvc-x64? We could improve the experience to make it less confusing later. |
Thanks @sean-mcmanus! msvc-x64 solves the problem. But I'm pretty sure that it is not documented so! |
I've set
compilerPath
to VC++ 2017 location, but always "Goto Definition" went to WSL header files.Setting
compilerPath
to MinGW or WSL works fine (correct headers are identified).Extension version: 0.20.1
VS Code version: Code 1.30.1 (dea8705087adb1b5e5ae1d9123278e178656186a, 2018-12-18T18:12:07.165Z)
OS version: Windows_NT x64 10.0.17763
The text was updated successfully, but these errors were encountered: