Before I file an issue, I wanted some thoughts.
When using zig version 0.17.0-dev.298+ad1b746e2, I get the below error where the first build runs successfully, but then any save after that triggers the panic. If I make any changes or not, the panic is triggered anyways.
This error does not exist in zig 0.16.0.
Hello world
info: Creating new user
Build Summary: 5/5 steps succeeded
Hello world
info: Creating new user
Build Summary: 5/5 steps succeeded
thread 794957 panic: nothing to watch
/Users/nathaniel/.zvm/master/lib/std/Build/Watch/FsEvents.zig:210:35: 0x10486ed7b in wait (build)
if (fse.watch_roots.len == 0) @panic("nothing to watch");
^
/Users/nathaniel/.zvm/master/lib/std/Build/Watch.zig:865:33: 0x1048666a3 in wait (build)
return w.os.fse.wait(gpa, switch (timeout) {
^
/Users/nathaniel/.zvm/master/lib/std/Build/Watch.zig:967:19: 0x10486679b in wait (build)
return Os.wait(w, gpa, io, timeout);
^
/Users/nathaniel/.zvm/master/lib/compiler/build_runner.zig:623:40: 0x10486d18b in main (build)
while (true) switch (try w.wait(gpa, io, if (in_debounce) .{ .ms = debounce_interval_ms } else .none)) {
^
/Users/nathaniel/.zvm/master/lib/std/start.zig:712:88: 0x10486d9bf in callMain (build)
if (fn_info.params[0].type.? == std.process.Init.Minimal) return wrapMain(root.main(.{
^
???:?:?: 0x186875d53 in start (/usr/lib/dyld)
error: the following build command terminated with signal ABRT: