I installed both this extension and the official (?) zig extension (tiehuis.zig).
I opened a zig file, and it gave me a popup, something like "hey, you don't have ZLS, wanna install it?".
I clicked yes, and it did some stuff, but the language server stuff didn't work.
After going to the output log, it seems like the installation ZLS failed because I didn't have zig, which sounds legit - but I think the extension should give a loud error when ZLS fails to start (and maybe allow me to install zig as well).
The installation log:
info : ( main ): No config file zls.json found.
warning: (config): Zig executable path not specified in zls.json and could not be found in PATH
warning: (config): Zig standard library path not specified in zls.json and could not be resolved from the zig executable
info : (server): client is 'Visual Studio Code-1.75.1'
info : (server): zls initializing
info : (server): Server.ClientCapabilities{ .supports_snippets = true, .supports_apply_edits = true, .supports_will_save = true, .supports_will_save_wait_until = true, .supports_publish_diagnostics = true, .supports_code_action_fixall = true, .hover_supports_md = true, .completion_doc_supports_md = true, .label_details_support = true, .supports_configuration = true }
info : (server): Using offset encoding: utf-16
warning: (server): ZLS failed to find Zig. Please add Zig to your PATH or set the zig_exe_path config option in your zls.json.
info : (server): Setting configuration...
warning: (config): Zig executable path not specified in zls.json and could not be found in PATH
warning: (config): Zig standard library path not specified in zls.json and could not be resolved from the zig executable
info : ( main ): No config file zls.json found.
warning: (config): Zig executable path not specified in zls.json and could not be found in PATH
warning: (config): Zig standard library path not specified in zls.json and could not be resolved from the zig executable
info : (server): client is 'Visual Studio Code-1.75.1'
info : (server): zls initializing
info : (server): Server.ClientCapabilities{ .supports_snippets = true, .supports_apply_edits = true, .supports_will_save = true, .supports_will_save_wait_until = true, .supports_publish_diagnostics = true, .supports_code_action_fixall = true, .hover_supports_md = true, .completion_doc_supports_md = true, .label_details_support = true, .supports_configuration = true }
info : (server): Using offset encoding: utf-16
warning: (server): ZLS failed to find Zig. Please add Zig to your PATH or set the zig_exe_path config option in your zls.json.
info : (server): Setting configuration...
warning: (config): Zig executable path not specified in zls.json and could not be found in PATH
warning: (config): Zig standard library path not specified in zls.json and could not be resolved from the zig executable
I installed both this extension and the official (?) zig extension (tiehuis.zig). I opened a zig file, and it gave me a popup, something like "hey, you don't have ZLS, wanna install it?". I clicked yes, and it did some stuff, but the language server stuff didn't work.
After going to the output log, it seems like
the installationZLS failed because I didn't have zig, which sounds legit - but I think the extension should give a loud error when ZLS fails to start (and maybe allow me to install zig as well).The installation log: