Skip to content

1.17 and above shows a lot of wrong errors #11351

@light-and-ray

Description

@light-and-ray

Environment

  • OS and Version: Kubuntu 22.04.3 LTS x86_64
  • VS Code Version: 1.81.1
    6c3e3dba23e8fadc360aed75ce363ba185c49794
    x64
  • C/C++ Extension Version: 1.17.2+
  • If using SSH remote, specify OS of remote machine: -

Bug Summary and Steps to Reproduce

Bug Summary:
1.17 and above shows a lot of wrong errors in kind of "must be a namespace name", "is not definded", "don't have member" etc

I tried everything: clear vscode cache, intellisecne db, reinstalling vscode, diffetent gcc versions form 9 to 12 in c_cpp_properies.json - even after install system from scratch it had the same problem. Only rollback to 1.16.3 and below could solve this problem

5873425324

Configuration and Logs

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/src",
                "${workspaceFolder}/**",
                "${workspaceFolder}/src/**",
***
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}



-------- Diagnostics - 8/22/2023, 2:30:02 PM
Version: 1.17.2
Current Configuration:
{
    "name": "Linux",
    "includePath": [
*
    ],
    "defines": [],
    "compilerPath": "/usr/bin/gcc",
    "cStandard": "c17",
    "cppStandard": "gnu++17",
    "intelliSenseMode": "linux-gcc-x64",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerPathInCppPropertiesJson": "/usr/bin/gcc",
    "mergeConfigurations": false,
    "browse": {
        "path": [
*
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
cpptools version (native): 1.17.2.0
Translation Unit Mappings:

Other Extensions

no

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions