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

Open
#11,666 9 comments 0 reactions 1 assignee View on GitHub

@sean-mcmanus is already working on this.

Since Nov 13, 2023.

bug Feature: Configuration Language Service regression
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.

socket_project.tar.gz

Originally posted by @tenggui in https://github.com/microsoft/vscode-cpptools/issues/11344#issuecomment-1807069047

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.