Unable to update Zig language server with VSCode command
Zylann opened this issue · 0 comments
After noticing I lost auto-completion on modules recently with the update to Zig 0.12, I noticed that ZLS had errors trying to run my build.zig
because it generated code that Zig 0.12 now flags as an error (variables never mutated).
The ZLS I have was originally installed automatically by the VSCode-Zig extension, I was using an older version of Zig at the time. I changed the path to Zig to a newer version since, but for some reason ZLS didn't update, despite the "check for updates" option being enabled. So I tried manually running the command Zig Language Server: Check For Updates
. It found one, however when I click Install
this happens:
Command 'Zig Language Server: Check for Server Updates' resulted in an error
A system error occurred (EPERM: operation not permitted, unlink '\\?\c:\Users\Marc\AppData\Roaming\Code\User\globalStorage\ziglang.vscode-zig\zls_install\zls.exe')
Update: seems that last error happens when multiple VSCode instances are open. I closed the others and now it works.