kevinjosethomas/py-mon

Constantly restarting regardless of changes

Closed this issue · 8 comments

As soon as I run pymon test.py where test.py is just a file with print("hello world")
It floods the terminal with constant prompts of restarting due to changes detected

Edit: I am using Python 3.11.6 and the latest version of py-mon

This is what is looks like for me:
image

Did this occur with the previous 2.0.0 version of py-mon as well?

Yes, it was happening in the previous version as well

I think I kinda found the issue, it keeps on triggering the opened event continuously for some reason that I can't figure out. A quick fix could be just adding the other events individually instead of using on_any_event

Just to confirm, could you download the latest version 2.0.2 and run pymon using the -d argument and send the output here?

Just to confirm, could you download the latest version 2.0.2 and run pymon using the -d argument and send the output here?

Still the same error
image

I have made a PR here #19 if you could check it out

It should also solve for the flask issues maybe. I'm not sure though if the flask projects had the same reason for restarting over and over

Yup, issue seems just as identified! Thanks for finding it and fixing it! Closed with #19