Hello! I started exploring Zig (0.12.0-dev.1270+6c9d34bce) last week and I am giving it a shot for a toy project. However, I frequently get an unexpected termination when executing zig build. I started a project by running zig init-exe and did not touch the build file. Right now, when calling zig build run, I get the following error:
$ zig build run
zig build-exe zigeme Debug native: error: the following command terminated unexpectedly:
/usr/local/zig/zig build-exe /path/src/main.zig --cache-dir /path/zig-cache --global-cache-dir /path/.cache/zig --name zigeme --listen=-
Build Summary: 0/5 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run zigeme transitive failure
├─ zig build-exe zigeme Debug native failure
└─ install transitive failure
└─ install zigeme transitive failure
└─ zig build-exe zigeme Debug native (reused)
error: the following build command failed with exit code 1:
/path/zig-cache/o/32f15f55419546f3e7ccfe97451d53f8/build /usr/local/zig/zig /path /path/zig-cache /path/.cache/zig --seed 0x2e736222 run
From my understanding, there is some error in my main.zigthat makes the compiler crash instead of gracefully showing an error message. But how do you usually debug such errors? Is there a log that allows me to see where the compiler was when it crashed?
Thanks!