Really enjoying my journey with Zig at the moment, but the LSP makes my life miserable.
I'm assuming it's a me problem and something obvious since I don't read anything about it anywhere.
The problem:
I'm working let's say in file A that imports file B.
I add a new function or struct (or change whatever) in file B.
When I go back to file A the LSP still is on the state of old file B and has no clue about the existence of these changes.
When I restart my LSP or the editor itself it works fine again.
I use 1:1 the exact same setup on all my linux machines and those have 0 problems. It's only my main desktop which has to run win11
My setup:
- Zig 0.15.2 | ZLS: 0.15
- NeoVim (lspconfig + zls + cmp)
- VS Code (No extensions besides ziglang support + zls + zig extra)
What I tried:
- Removing any artifact or cache connected to Zig
- Doctor around in build.zig according to reddit (not sure what I exactly I tried tbh)
- Fresh setup in a fresh win11 VM