You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated zig, zls, and vscode-zig recently. The most recent version of vscode-zig seems to fail to register commands on my pc (win11 in case that matters). Rolling back to 0.5.8 fixes the issue.
I run "Zig Language Server: Start/Restart Server" and I get a message box reporting failure:
[Window Title]
Visual Studio Code
[Main Instruction]
Command 'Zig Language Server: Start / Restart Server' resulted in an error
[Content]
command 'zig.zls.startRestart' not found
[OK]
I'm not terribly familiar with vscode extension dev, but I found how to view the extension host log, so here's that:
2024-09-15 11:57:38.696 [info] Extension host with pid 7352 started
2024-09-15 11:57:38.696 [info] Skipping acquiring lock for c:\Users\micha\AppData\Roaming\Code\User\workspaceStorage\fba326b3c1d4a04363998a16351e4549.
2024-09-15 11:57:38.901 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2024-09-15 11:57:38.909 [info] ExtensionService#_doActivateExtension ziglang.vscode-zig, startup: false, activationEvent: 'onLanguage:zig'
2024-09-15 11:57:38.972 [warning] DiagnosticCollection with name 'zig' does already exist.
2024-09-15 11:57:38.976 [error] Activating extension ziglang.vscode-zig failed due to an error:
2024-09-15 11:57:38.976 [error] Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:800:9)
at Object.execFile (node:child_process:352:17)
at t.<computed> [as execFile] (node:electron/js2c/node_init:2:2610)
at CC (c:\Users\micha\.vscode\extensions\ziglang.vscode-zig-0.5.9\out\extension.js:50:22549)
at wC (c:\Users\micha\.vscode\extensions\ziglang.vscode-zig-0.5.9\out\extension.js:50:21929)
at c:\Users\micha\.vscode\extensions\ziglang.vscode-zig-0.5.9\out\extension.js:50:27692
at <anonymous>
at async YF (c:\Users\micha\.vscode\extensions\ziglang.vscode-zig-0.5.9\out\extension.js:50:27611)
at async m.n (c:\Users\micha\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:151:6409)
at async m (c:\Users\micha\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:151:6372)
at async m.l (c:\Users\micha\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:151:5829)
I download zig and zls to a "tools" folder in the workspace so I can still zigup master my system zig install to try out new zig versions without breaking this project.
[EDIT] I did confirm earlier that setting the paths to use absolute paths instead of vscode substitutions didn't fix it.
The text was updated successfully, but these errors were encountered:
I updated zig, zls, and vscode-zig recently. The most recent version of vscode-zig seems to fail to register commands on my pc (win11 in case that matters). Rolling back to 0.5.8 fixes the issue.
I run "Zig Language Server: Start/Restart Server" and I get a message box reporting failure:
I'm not terribly familiar with vscode extension dev, but I found how to view the extension host log, so here's that:
Here are my vsocde user settings:
And my workspace settings:
I download zig and zls to a "tools" folder in the workspace so I can still
zigup master
my system zig install to try out new zig versions without breaking this project.[EDIT] I did confirm earlier that setting the paths to use absolute paths instead of vscode substitutions didn't fix it.
The text was updated successfully, but these errors were encountered: