Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sagnik-t opened this issue May 28, 2024 · 5 comments
Closed

Comments

@sagnik-t
Copy link

sagnik-t commented May 28, 2024

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

@sean-mcmanus sean-mcmanus self-assigned this May 28, 2024
@sean-mcmanus sean-mcmanus added Language Service more info needed The issue report is not actionable in its current state performance labels May 28, 2024
@sean-mcmanus
Copy link
Contributor

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

@LittleFatHero
Copy link

LittleFatHero commented May 29, 2024

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

@bobbrow bobbrow added this to cpptools Jun 17, 2024
@github-project-automation github-project-automation bot moved this to Triage in cpptools Jun 17, 2024
@bobbrow bobbrow removed the status in cpptools Jun 20, 2024
Copy link

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.

@sean-mcmanus sean-mcmanus added duplicate and removed more info needed The issue report is not actionable in its current state labels Jul 3, 2024
@sean-mcmanus
Copy link
Contributor

@sagnik-t I think this is a duplicate of #12292 . We added more stuff to the database so it takes longer to populate.

Copy link

github-actions bot commented Sep 2, 2024

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@github-project-automation github-project-automation bot moved this to Done in cpptools Sep 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

No branches or pull requests

3 participants