New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add note in Settings on using WatchFiles on WSL #1647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM.
Just to be clear, I guess we could interpret empty |
Adopt suggested text change from PR#1647 Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
Thanks for the review & suggestions, @samuelcolvin , I've adopted your changed and added a link to the watchfiles documentation. |
Great, thanks for this. |
Is it a "might" or you "need" to set the env variable? |
Well, it depends on the environment, in some (e.g. docker on WSL) no changes are detected via the default file system watcher, but I don't have an finite list of environments where it does and doesn't work, hence I suggested "might" to put the decision in the hands of the developer, but up to you - I can see it either way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @danroozemond 🙏
Thanks @samuelcolvin for reviewing it 👍
Thanks for the quick review and merge, good stuff 🙂 |
Any volunteers for samuelcolvin/watchfiles#187? |
Anyone able to review samuelcolvin/watchfiles#194 which implements the fix discussed in samuelcolvin/watchfiles#187 and confirm it has fixed this error? I don't have a windows machine, so can't test. |
@samuelcolvin thanks for making the fix! I'm happy to have a look but a bit busy the coming days. Is somewhere over the weekend OK? |
Of course, no hurry from my pov. Thanks. |
* add note in Settings on using WatchFiles on WSL * Update docs/settings.md Adopt suggested text change from PR#1647 Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * add a link to watchfiles doc * Update docs/settings.md * Use tip admonition for watchfiles env variable Co-authored-by: Samuel Colvin <samcolvin@gmail.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* add note in Settings on using WatchFiles on WSL * Update docs/settings.md Adopt suggested text change from PR#1647 Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * add a link to watchfiles doc * Update docs/settings.md * Use tip admonition for watchfiles env variable Co-authored-by: Samuel Colvin <samcolvin@gmail.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Following a frustrating 2hours of debugging why reloading stopped working when I rebuilt my Docker contrainer with uvicorn recently, stumbling upon @samuelcolvin 's very helpful comment on
WATCHFILES_FORCE_POLLING
, and @Kludex 's subtle hint that PR's are welcome to improve the documentation.... here's a PR that improves the documentation.Relates to the discussion here: #1437
Hope it's helpful!