uvicorn icon indicating copy to clipboard operation
uvicorn copied to clipboard

reload_dirs does not work as expected when watchfiles is installed

Open tri-dataxight opened this issue 8 months ago • 2 comments

Initial Checks

  • [x] I confirm this was discussed, and the maintainers suggest I open an issue.
  • [x] I'm aware that if I created this issue without a discussion, it may be closed without a response.

Discussion Link

https://github.com/encode/uvicorn/pull/2598

Description

From #2598, the reload_dirs works as expected However, when there is watchfiles installed, reload_dirs still includes all files in Path.cwd()

Python, Uvicorn & OS Version

0.34.2

tri-dataxight avatar Jul 14 '25 09:07 tri-dataxight

Could be related to this: https://github.com/encode/uvicorn/discussions/2389

smac89 avatar Jul 17 '25 15:07 smac89

This issue appears to be fixed in the latest release (v0.37.0)

@tri-dataxight can you please re-verify?

theyashl avatar Sep 28 '25 14:09 theyashl