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
What is observed is that the compiler simply quits with code 1 and doesn't give any information on what the issue is.
We have also ran the code with a debug build and it does give us an error, im appending the output bellow. Crash.log
Expected Behavior
I would expect to get an error message for why it fails to compile, the code is most likely not valid zig but as a new person in the zig ecosystem it's fairly hard to find out what's wrong when there is no output.
The text was updated successfully, but these errors were encountered:
Didas-git
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jan 23, 2025
We reached the conclusion that the issue seems to come from the lack of sema being passed to latter functions, as the inner value of the tuple is a pointer when the printPtr gets called it passes down the comptime_alloc pointer without a sema as per:
Zig Version
0.14.0-dev.2909+f3c29dcb2
Steps to Reproduce and Observed Behavior
Create a new zig project using
zig init
and replace themain.zig
file with the following:What is observed is that the compiler simply quits with code 1 and doesn't give any information on what the issue is.
We have also ran the code with a debug build and it does give us an error, im appending the output bellow.
Crash.log
Expected Behavior
I would expect to get an error message for why it fails to compile, the code is most likely not valid zig but as a new person in the zig ecosystem it's fairly hard to find out what's wrong when there is no output.
The text was updated successfully, but these errors were encountered: