Félix Saparelli

Results 581 comments of Félix Saparelli

sure, hook to sigint/ctrlc and cleanup state, or as a last resort, forcibly reset the screen. you can use the clearscreen crate for this, or your terminal manipulation library may...

You're right, I keep getting confused between the current states of cargo watch and watchexec. There's no easy way to catch that signal at the moment. If you use watchexec...

definitely. currently waiting for/working on: - ignores to stabilise (ie for any more bugs to come out after the latest watchexec release) - a fix for the startup behaviour (next...

That's fixed upstream (in watchexec library v2+) and will eventually make its way to cargo watch

Because I haven't had time to work on cargo-watch. You know. The usual reason why things aren't done in an open source project provided to you for free.

There's already a branch to upgrade to watchexec 2.x. Ultimately the main issue is not cargo watch, it's that I don't consider watchexec 2 to be stable or performant enough...

`IsFile` is a bit in the event mask, not an event type per se, similar to the [IS_DIR](https://www.man7.org/linux/man-pages/man7/inotify.7.html) bit in Linux. The event itself is probably [a new possibly-undocumented one](https://developer.apple.com/documentation/coreservices/1455361-fseventstreameventflags),...

Wow I hadn't realised you were embedding cargo watch in your program. That's... [not supported](https://github.com/watchexec/cargo-watch#i-want-to-embed-cargo-watch-in-my-own-rust-tool). I can't stop you, but this is not something that I would ever recommend doing....

Not really interested in debating what exactly counts as embedding. This isn't a gotcha or invalidating a support contract or whatever. Interactive use is the intended use. If your setup...