-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
tag parser freeze on parsing large define #9076
Comments
Does that test.h have a lot of defines? If so, it's bug #6454 . |
@sean-mcmanus , No. It has only 1 define. but very large. |
Are you able to paste the contents of the define inline? I can't seem to download https://github.com/microsoft/vscode-cpptools/files/8333962/vscode_bug.tar.gz . |
strange. I will re-attach file |
@sean-mcmanus Please check attachment again. |
Okay, I repro the issue. Do you know if it ever finishes? Our parser is "stuck" processing the define. Not sure if it's just slow or permanently stuck. As a workaround you can add that folder that file belongs to to the C_Cpp.files.exclude setting or the file if you change the C_Cpp.exclusionPolicy to work for files. |
Also, the issue's cause is different from #6454 . |
I get a crash after about an hour. I've filed a bug on VS at https://developercommunity.visualstudio.com/t/c-tag-parser-gets-stuck-parsing-for-an-hour-and-th/1702811 -- that issue might not be publicly viewable though. |
This is fixed with 1.10.3 (pre-release). |
Issue Type: Bug
In attachment - simple project.
tag parser freezes when try to parse test.h file
Extension version: 1.8.4
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T15:36:26.048Z)
OS version: Linux x64 5.4.0-100-generic
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: