watchexec / cargo-watch

Watches over your Cargo project's source.
Creative Commons Zero v1.0 Universal
2.78k stars 81 forks source link

`rustc-ice-*.txt` files are watched, causing infinite loop of recompiling #277

Closed kpreid closed 1 year ago

kpreid commented 1 year ago

Newer versions of rustc (possibly nightly only?) automatically produce log files named like rustc-ice-2023-08-21T15:55:30.315378Z-2018.txt if the compiler panics. If cargo watch is used and the compiler panics, this will create an infinite loop as cargo watch sees the new file from each run and recompiles.

It would probably be good to ignore these files automatically.

passcod commented 1 year ago

Thanks! Added in 8.4.1