By the way, it refusing to reload may be some sort of build system failure. I observed the same behaviour while doing testing on a Windows VM. On Linux, the examples rebuild and reload on save for me, and I have no idea why that happens.
If you run into that issue again, try testing zr in an actual project. Doing that fixed it on Windows. I am still quite a newb on build.zig so I am not super sure what causes this issue.
Unfortunately I still can’t manage to make it work. But just to be sure, when I edit and save plugin.zig, it triggers the event and I see stuff in the console. But does it handle recompiling on it’s own?
Even if I zig build while the loop is running, next trigger shows prints in console but still with previous code…
I really have no idea why the example behaves like that, I’m sorry. I’d need someone more knowledgeable about MacOS to chime in to try and guess what’s the issue. Does it not work with both .dl_library = .zig and .dl_library = .libc?
And, like I said, have you tried integrating it into your own project instead of trying to build the example? There may be some build.zig weirdness going on that I’m not aware of. Try plugging it into your program and see if it works then.