Workspace Parsing Incredibly Slow (10s per file)
Maintainer thường phản hồi trong vòng 1 ngày
@sean-mcmanus đang làm issue này rồi.
Từ ngày 28/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Environment
- OS and Version: Windows 11, 10.0.26200
- VS Code Version: 1.135.0
- C/C++ Extension Version: v1.33.8
- If using SSH remote, specify OS of remote machine: Ubuntu-22.04 running on WSL1
Bug Summary and Steps to Reproduce
Bug Summary:
The "Parsing Workspace" process runs incredibly, unacceptably slowly. I have timed it: it now takes nearly exactly 10 seconds to parse each file. For a project with thousands of files, this makes intellisense virtually unusable.
In task manager I see one cpptools process, one cpptools-srv process, and eight cpptools-srv2 processes, all of which are sitting at 0% or 0.1% CPU usage and between 6.1 MB and 68.5 MB of memory usage.
The most noticeable symptom is that "Go to definition" is now only capable of finding function declarations, not their actual definitions.
A separate issue which started appearing at the same time and may be related: attempting to use VSCode to merely search for text in files takes noticeably longer than it used to; searches which used to take 5 seconds now take closer to 20 seconds.
It started after...
This started yesterday, or maybe the day before. I had opened another project and installed the clangd extension. When I went back to working on my main project, both it and ms-vscode.cpptools were both still active and fighting, so I disabled the clangd extension (I have since uninstalled it as part of an attempt to fix this bug). It was some time after that that I started having this problem. It could be a coincidence, as VSCode releases a new update every few days and one may have coincided with this change.
Steps to reproduce:
- Navigate to Windows folder containing a project.
- Open the folder in
cmd.exe - Start a WSL session
- Run
code <name of project>.code-workspace - Wait for VSCode to open and start trying to parse the workspace
- Check the "C/C++ Tag Parser Status" entry in the status bar. Timing between when it shows "Parsing Open Files | Parsing files (n of 2766)" and "Parsing Open Files | Parsing files (n+1 of 2766)" is nearly exactly 10.0 seconds after multiple timing tests.
Expected behavior:
The time to parse 2766 files should be no more than 30-60 seconds total (as was experienced previously), not several hours (as it is now expected to take).
Failed attempts to solve...
I have attempted the following things to rectify the issue without success:
- Uninstalling the
clangdextension from both the WSL host and the local, Windows version of VScode, rather than merely disabling it - Uninstalling and then reinstalling
ms-vscode.cpptools - Restarting PC
Configuration and Logs
Our project has multiple workspaces, folders, and `c_cpp_properties.json` files. I have included one, with the contents of `includePath` redacted, as an example:
{
"configurations": [
{
"name": "Production",
"includePath": [
"includePaths is redacted for IP reasons",
"But the following two should be representative of the type of path used:",
"${workspaceFolder:Firmware}/Contoso/Inc",
"${workspaceFolder:Core}/Contoso/Inc/firmware"
],
"defines": [
"STM32G030xx",
"USE_FULL_LL_DRIVER",
"__STATIC=static",
"__CONST=const",
"BUILD_NUMBER=0"
],
"compilerPath": "/usr/bin/clang-15",
"compilerArgs": [
"--target=arm-arm-none-eabi",
"-mcpu=cortex-m0plus",
"-isystem",
"${workspaceFolder:Top Level}/Understand/ARMCLANG/include",
"-fshort-enums",
"-Werror=pointer-arith",
"-Werror=implicit-function-declaration"
],
"cStandard": "c99",
"cppStandard": "c++17",
"intelliSenseMode": "linux-clang-arm"
},
{
"name": "Testing",
"includePath": [
"includePaths is redacted for IP reasons",
"But the following two should be representative of the type of path used:",
"${workspaceFolder:Firmware}/Contoso/Inc",
"${workspaceFolder:Core}/Contoso/Inc/firmware"
],
"defines": [
"STM32G030xx",
"USE_FULL_LL_DRIVER",
"__STATIC=",
"__CONST=",
"BUILD_NUMBER=23495832",
"FW_VERSION_MAJOR=0xA5",
"FW_VERSION_MINOR=0xCD",
"UNIT_TESTS"
],
"compilerPath": "/usr/bin/clang-15",
"cStandard": "c99",
"cppStandard": "c++17",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
Other Extensions
No response
Additional context
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 6.2k
- Fork
- 1.7k
- Merge trung bình
- 1 ngày 29 phút
- Pull request đã merge (30 ngày)
- 43
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/vscode-cpptools
-
Language Service more info needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/vscode-cpptools#14819 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
microsoft/vscode-cpptools#14817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Language Service more info needed
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
microsoft/vscode-cpptools#14816 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
microsoft/vscode-cpptools#14815 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
False C/C++(65) after rapid snippet replacement: identical source gets different diagnosticsĐang mởinvestigate: repro Language Service
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/vscode-cpptools#14807 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/vscode-cpptools
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
wardian-app/Wardian#1603 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Sign the pledgeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
input-output-hk/devx-updates#168 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/docs#46222 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-ready area: config area: skills type: chore upstream: brain-kit
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
dev experience frontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cuttle-cards/cuttle#1403 ·
Maintainer thường phản hồi trong vòng 1 ngày