microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C/C++ Intellisense taking too long to start up even with small workspaces

sagnik-t opened this issue · comments

Environment

  • OS and Version: Windows 11, Zorin 17 (based on Ubuntu 22.04)
  • VS Code Version: 1.89.1
  • C/C++ Extension Version: 1.20.5
  • If using SSH remote, specify OS of remote machine: N/A

Bug Summary and Steps to Reproduce

Bug Summary:

The C/C++ intellisense takes about 4-5 minutes to function properly. During this time, proper linting also doesn't work for certain classes such as vector.

Steps to reproduce:

  1. Simply open VS code
  2. Write some C/C++ code, preferably using STL

Expected behavior:

Intellisense shouldn't take this long since the workspace is not very large.

Configuration and Logs

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

Other Extensions

The issue persists even all other extensions are disabled.

Additional context

No response

@sagnik-t That doesn't sound expected. Which process is using cpu during this time? With C_Cpp.loggingLevel set to "Debug" what is being output or what is the last output?

I use the same version of C/C++ Extension Version: 1.20.5, I also found that this version is much slow than the other version even though I don't have the accurate data of performance so far. But you can feel it obviously.
See also:
#12292