Closed matu3ba closed 1 month ago
At least from my point of view Sema log is very incomplete and gives no further hint, so it looks like debugging would be needed: https://gist.github.com/matu3ba/e0e4817c494dfff1b7dd3ef9a1f241e4
I realized something today: it works if you zig test thread.zig but gives the recursive type error if you try anything else that loads arena.zig, so I think it's the loading of thread.zig that creates the problem, so if it's the first thing loaded, everything is cool, but if it's indirectly loaded, you get the "depends on itself" loop bug. You can see this by testing almost anything else (because almost everything eventually @imports thread and arena
output
fails repeatedly for me on linux-x86_64-gnu. Not only spuriously.
Related: #14353 https://github.com/ziglang/zig/issues/14147 https://github.com/ziglang/zig/issues/12325 https://github.com/ziglang/zig/issues/8050