today's little puzzle: if I don't pipe /dev/null explicitly to cargo-nextest here, running it through watchexec like that hangs:
❯ watchexec -w shapely-codegen -- just codegenThank you.
today's little puzzle: if I don't pipe /dev/null explicitly to cargo-nextest here, running it through watchexec like that hangs:
❯ watchexec -w shapely-codegen -- just codegenThank you.
@fasterthanlime did you figure it out?
As others pointed out anything trying to read from stdin might be causing a hang but it can be more subtle than that, programs can change there behaviour based on if there is a terminal or not and this is often detected via the properties of stdin. Rust std actually has isterminal() which you can call on the std structures. I have written a load of bugs by not setting the right properties of stdin/stdout but also not reading from them can also cause hangs