Skip to content

Conversation

@pfgithub
Copy link

@pfgithub pfgithub commented Sep 2, 2025

anyzls for zig 0.15.0 didn't work (download url was wrong), now it does. It uses the api described here https://github.com/zigtools/release-worker/blob/master/README.md (#17 (comment))

Unfortunately, it still doesn't work with the official Zig extension for vscode because vscode determines the zls version by running zls --version but without setting a cwd, so it runs it in C:\Users\pfg\AppData\Local\Programs\Microsoft VS Code. The issue is here: https://github.com/ziglang/vscode-zig/blob/1e34279fccc2b29272ec2bf44a1242427ac5316d/src/zigUtil.ts#L213 . Either the vscode-zig extension would need to be updated to run in the workspace directory, or anyzig would need a way to set the default version to use when no build.zig is present.

@stefanpartheym
Copy link

Hi @pfgithub,

I tried your fork yesterday. I can confirm, it works really well: zls version is selected properly based on zig version.

I made getanyzig – a convenient installer, that uses the current master (or in this case your branch pfg/fix-zls). No zig installation required prior to installing it. Hope this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants