vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

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

Open sagnik-t opened this issue 1 year ago • 3 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 avatar May 28 '24 10:05 sagnik-t

@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?

sean-mcmanus avatar May 28 '24 17:05 sean-mcmanus

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: https://github.com/microsoft/vscode-cpptools/issues/12292

LittleFatHero avatar May 29 '24 11:05 LittleFatHero

Hey @sean-mcmanus, this issue might need further attention.

@sagnik-t, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] avatar Jun 29 '24 11:06 github-actions[bot]

@sagnik-t I think this is a duplicate of https://github.com/microsoft/vscode-cpptools/issues/12292 . We added more stuff to the database so it takes longer to populate.

sean-mcmanus avatar Jul 03 '24 17:07 sean-mcmanus

This issue has been closed because it is a duplicate of another issue we are tracking.

github-actions[bot] avatar Sep 02 '24 12:09 github-actions[bot]