zigtools / zls

A Zig language server supporting Zig developers with features like autocomplete and goto definition
MIT License
3.02k stars 298 forks source link

spacemacs LSP disconnects from zls #532

Open q60 opened 2 years ago

q60 commented 2 years ago

i'm using master Zig and built zls myself, ran config, chose spacemacs and all features on. it works well i think until i save file

that's what i have in the *Messages* buffer

LSP :: Connected to [zls:7824/starting].
LSP :: zls:7824 initialized successfully in folders: (/home/v/Drafts/Zig/svapnamu)
Saving file /home/v/Drafts/Zig/svapnamu/src/main.zig...
Wrote /home/v/Drafts/Zig/svapnamu/src/main.zig
LSP :: Disconnected

and the server doesn't crash it just disconnects (*lsp-log*):

Command "~/zig/zls/zig-out/bin/zls" is present on the path.
Found the following clients for /home/v/Drafts/Zig/svapnamu/src/main.zig: (server-id zls, priority 0)
The following clients were selected based on priority: (server-id zls, priority 0)
[info-main] Using zig executable /usr/bin/zig
[info-main] Using zig lib path '/home/v/zig/0.10.0-dev.2959+6f55b294f/files/lib'
This server does not support foldingRangeProvider
[info-main] zls initialized
[info-main] ClientCapabilities{ .supports_snippets = true, .supports_semantic_tokens = false, .hover_supports_md = true, .completion_doc_supports_md = true, .label_details_support = true, .supports_configuration = true }
[info-main] Using offset encoding: utf16
[info-main] Requesting configuration!
[info-doc_store] builtin config not found, falling back to default: file:///home/v/.config/builtin.zig
[info-main] Setting configuration...
SuperAuguste commented 2 years ago

Huh odd, I believe this might a configuration issue but it's quite odd that the server simply disconnects. Is there any way you could provide more information?

q60 commented 2 years ago

i don't really know what information i can give you... but this issue happens since #384.