Veikka Tuominen
Veikka Tuominen
This currently only supports Zsh and is quite out of date.
I don't think this is going to be worth it compared to just trying to keep in sync with the official grammar.
I don't think this is caused by symlinks since I have `zig.zigPath` set to `/home/vexu/bin/zig` which is a symlink to my build directory and formatting works just fine for me.
I was not able to reproduce this by installing snap and Zig with it. Closing unless someone can confirm that this is still an issue.
What's in your `build.zig`?
I added a few commits to my branch and was able to successfully compile `zig build obj`.
Likely fixed by the cast builtin result location type change.
The assertion failure happens in `Liveness.zig` and using `-fstrip` or `-fno-emit-bin` avoids it.
That still wouldn't explain the issue assuming that running `/snap/bin/zig fmt file.zig` from a terminal works and because I was unable to reproduce it by installing snap on my system.
This line should use `resolveDefinedValue`. https://github.com/ziglang/zig/blob/6fd09f8d2d50525e3f58213e44f815ed577c2864/src/Sema.zig#L32510