Skip to content

Electron takes 100% of cpu #8945

@christopherhesse

Description

@christopherhesse

Bug type: General

Describe the bug

  • OS and Version: Mac OS X 12.1
  • VS Code Version: 1.64.2
  • C/C++ Extension Version: v1.8.4
  • Other extensions you installed (and if the issue persists after disabling them):
  • A clear and concise description of what the bug is.

An "Electron" process will periodically take 100% of my laptop CPU for an extended period of time. The little fire icon at the bottom of the VSCode window is displayed while this is happening and indicates that clang-tidy is running. It might be this is just how clang-tidy works (if it's even clang-tidy actually using the CPU, maybe it's just the CPP extension), but I can't figure out how to disable it.

I have not observed this issue when the CPP extension is disabled. I have set the following settings in an attempt to make this not happen:

    "C_Cpp.default.compilerPath": "",
    "C_Cpp.codeAnalysis.runAutomatically": false,
    "C_Cpp.codeAnalysis.clangTidy.path": "/invalid/path",

Because I don't actually see clang-tidy in the process list, it seems plausible the extension is just running a tight loop that uses 100% cpu, but I don't know how to see what the extension is doing while the cpu is being used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Code AnalysisRelated to integration with clang-tidy, cppcheck, cl.exe /analyze, etc.Language Servicemore info neededThe issue report is not actionable in its current state

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions