Closed taq closed 1 month ago
It means too many events happened between reading from the inotify queue, and thus it overflowed. Maybe try monitoring less things.
Hey @ioquatix , thanks for your answer. The weird part is that everything was working fine till some weeks ago. Maybe a new Ubuntu version with new libs or updated some libs on the project may affected it? Or even the number of files on the project?
@ioquatix is there a way to prevent to don't raise an exception and avoid keep listening to changes?
I don't think it's possible given the implementation:
It could be due to the number of files on your project and what you are monitoring. When the overflow occurs, the state of the file system becomes unknown, so you need to scan it again.
Instead of monitoring individual files, you could try https://github.com/socketry/io-watch which monitors only the directories. This reduces the number of events being generated.
Will check the number of files tomorrow and give a feedback here.
Hey @ioquatix seems that the culprit was simplecov
. After I got this tip about the number of files (and yes, the project files increased on the last weeks) I notice simplecov
was running also when there was a file change (the correct and expected behaviour) and tried to comment it, it seemed to work! No more overflows till now.
Sorry to open this issue here, but at least I got a good tip about how things are working there. :-)
Closing it.
How can I solve an error like this:
I got this using
guard
after some tests run and then it stops untill I ask to run it again, not allowing to fire the tests as soon as the files involved change.