Teodor Heggelund
Teodor Heggelund
Suggestions much welcome :)
 Perhaps we can solve this with just a bit of defensive coding? 1. Check whether file exists before reading last modified time
That might work. Are we able to time how long Vim needs us to wait? I don't want us to wait many orders of magnitude longer.
Tried testing myself. Setup: 1. `watchexec echo action` in a folder 2. Edit a file with `NVIM v0.7.0` in another terminal. I just got a single "action" printed when i...
I'm unable to reproduce hotload crashes with `touch` right now:  But I've seen similar stuff previously
Note - I introduced a feature flag for disabling screen clearing. Helpful when we actually want to see every change. https://github.com/teodorlu/hotload/blob/e4ff11cf89a7a6cd5c1b5a318641e004b4e98fe1/hotload.py#L76-L77
So, does it make sense to: 1. Try to read `st_mtime` 2. If we catch `FileNotFound` - wait 20 ms and try again (max 3 times) ?
A different CLI option: hotload [OPTION...] [--] PYTHON_MODULE_OR_SCRIPT... There's not really anything special with reloading _one_ module. --- Though perhap's it's normal? Use one python module as an entrypoint into...
Though. Do we actually need to change the CLI? Real issues: - Wrong helptext - No CLI argument validation. For instance, bad input to --entrypoint will simply try, and crash...
GNU CLI conventions: https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html