zls stuck with 100% CPU on a bad const bar = if (...) else null;
statement (textDocument_hover)
#2173
Labels
bug
Something isn't working
Zig Version
0.13.0
ZLS Version
0.13.0
Client / Code Editor / Extensions
NVIM v0.10.3
Steps to Reproduce and Observed Behavior
Following code snippet will make zls hang, consuming 100% CPU:
When I try to use Hover Documentation, neovim just gets stuck, and in htop I can see zls using 100% of CPU cycles.
Expected Behavior
Documentation shows up in expected time. (The type is most probably
unknown
in this case.)Relevant log output
The text was updated successfully, but these errors were encountered: