Skip to content

intermittent linting errors (standard library not found) #13743

Open
@bertsons

Description

@bertsons

Environment

  • OS and Version: Ubuntu 24.04
  • VS Code Version: 1.101.2
  • C/C++ Extension Version: 1.26.3

Bug Summary and Steps to Reproduce

Bug Summary:
I intermittently get linting errors everywhere signalling the standard lib hasn't been found.
Image

This has been happening intermittently for quite a while now. Sometimes restarting VS Code works. Sometimes it doesn't.

Steps to reproduce:

  1. open up VS Code
  2. it's intermittent, so it may or may not happen.

Expected behavior:

Configuration and Logs

c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64",
            "configurationProvider": "ms-vscode.cmake-tools"
        }
    ],
    "version": 4
}

Log Diagnostics:

Log Diagnostics.txt

Logs from language server logging: Wheen I turned this into debug mode, the issue stopped, so was unable to get anything meaningufl for this. I'll try to add it when it happens again

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions