I know this is new but I’m on WSL2 and after using zigup to install the lastest version of the compiler to test ‘–watch’ i’ve discovered that I cannot use it, is this because I’m using WSL2 ?
❯ zig build --watch
thread 4688 panic: reached unreachable code
/home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/lib/std/posix.zig:4508:19: 0x10eadf7 in fanotify_init (build)
.INVAL => unreachable,
^
/home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/lib/std/Build/Watch.zig:246:55: 0x10eab82 in init (build)
const fan_fd = try std.posix.fanotify_init(.{
^
/home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/lib/compiler/build_runner.zig:375:38: 0x11030f3 in main (build)
var w = if (watch) try Watch.init() else undefined;
^
/home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/lib/std/start.zig:515:37: 0x10de225 in posixCallMainAndExit (build)
const result = root.main() catch |err| {
^
/home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/lib/std/start.zig:258:5: 0x10ddd41 in _start (build)
asm volatile (switch (native_arch) {
^
???:?:?: 0x9 in ??? (???)
Unwind information for `???:0x9` was not available, trace may be incomplete
error: the following build command crashed:
/home/pollivie/workspace/zig/zlib/.zig-cache/o/3834c987d66e3c28699a494ab242511c/build /home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/zig /home/pollivie/zig/0.14.0-dev.296+bd7b2cc4b/files/lib /home/pollivie/workspace/zig/zlib /home/pollivie/workspace/zig/zlib/.zig-cache /home/pollivie/.cache/zig --seed 0x46ccd56b -Z3af7a1a268123ca5 --watch