Skip to content

ZLS crashing when saving files in VS Code #2234

Open
@UsernamesAreNotMyThing

Description

@UsernamesAreNotMyThing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions