Closed enerdgumen closed 1 year ago
When zig is installed via Snap the zig executable is a symlink (/snap/bin/zig --> /usr/bin/snap).
zig
/snap/bin/zig --> /usr/bin/snap
I get the following error when I run the formatter via VS code :
error: unknown command "fmt", see 'snap help'.
It seems that zls is not resolving symbolic links when fmt is invoked.
Setting the right path in the zls config solves the issue:
"zig_lib_path": "/snap/zig/current/lib", "zig_exe_path": "/snap/zig/current/zig"
this is likely a bug for https://github.com/ziglang/vscode-zig not ZLS
When zig is installed via Snap the
zig
executable is a symlink (/snap/bin/zig --> /usr/bin/snap
).I get the following error when I run the formatter via VS code :
It seems that zls is not resolving symbolic links when fmt is invoked.
Setting the right path in the zls config solves the issue: