zls icon indicating copy to clipboard operation
zls copied to clipboard

ZLS crashing when saving files in VS Code

Open UsernamesAreNotMyThing opened this issue 9 months ago • 0 comments

Zig Version

0.14.0

ZLS Version

Entering that command is not returning anything, it tells me it can't find it. I otherwise have absolutely no idea how to get the version.

Client / Code Editor / Extensions

  • VS Code: 1.98.2
  • Zig Language extension: 0.6.8

Steps to Reproduce and Observed Behavior

Frequently saving with Control-S causes an error message saying:

The ZLS language server server [sic] crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Autocomplete and tooltips also stop working. I have only ever seen this issue occur immediately after saving.

Additionally the log has Linux paths in it, but this is occuring on Windows. I have not been able to find a relevant issue after searching the terms "vscode", "crash", and "error".

Expected Behavior

It shouldn't be doing this.

Relevant log output

File exceeds the character limit. zls log.log

UsernamesAreNotMyThing avatar Apr 01 '25 20:04 UsernamesAreNotMyThing