microsoft / microsoft/vscode-cpptools
C code can not be parsed correctly when upgrade c/c++ plugin to v1.17.x and v1.18.x version
@sean-mcmanus is already working on this.
Since Nov 13, 2023.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
For the attached socket project, the issue can be reproduced above C/C++ 1.17.x. When open the project, the output window will show the following errors. Maybe the IntelliSenseMode and compilerPath were detected incorrectly.
[11/12/2023, 5:14:25 PM] For C++ source files, IntelliSenseMode was changed from "linux-gcc-x64" to "linux-clang-x64" based on compiler args and querying compilerPath: "/usr/bin/clang"
[11/12/2023, 5:14:25 PM] IntelliSenseMode was changed because it didn't match the detected compiler. Consider setting "compilerPath" instead. Set "compilerPath" to "" to disable detection of system includes and defines.
[11/12/2023, 5:14:25 PM] For C source files, IntelliSenseMode was changed from "linux-gcc-x64" to "linux-clang-x64" based on compiler args and querying compilerPath: "/usr/bin/clang"
[11/12/2023, 5:14:25 PM] IntelliSenseMode was changed because it didn't match the detected compiler. Consider setting "compilerPath" instead. Set "compilerPath" to "" to disable detection of system includes and defines.
Originally posted by @tenggui in https://github.com/microsoft/vscode-cpptools/issues/11344#issuecomment-1807069047
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.