gorakhargosh / watchdog

Python library and shell utilities to monitor filesystem events.

Home Page:http://packages.python.org/watchdog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reloads each time I open file in VScode

tasiotas opened this issue · comments

Hi,

  • Django 4.0.8
  • Werkzeug==2.2.3
  • watchdog==2.3.1
  • WSL

Every time I open python file in VScode, Django reloads. Says change detected in bunch of files, but in reality I just opened one of them.

django  |  * Detected change in '/app/config/schema.py', reloading
django  |  * Detected change in '/app/config/urls.py', reloading
django  |  * Restarting with watchdog (inotify)

Works fine in 2.1.9
I saw similar issue, seemed like same as mine, but I still have it in 2.3.1

Thanks

commented

pallets/werkzeug#2603

Constrain watchdog<2.3 until werkzeug 2.3 releases

commented

Werkzeug 2.3 was just released last week

https://werkzeug.palletsprojects.com/en/2.3.x/changes/#version-2-3-0

Please try upgrading and maybe close this issue if everything works fine

yep, all good , thank you!