Skip to content
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

Finding out which files a triggering a rebuild #188

Open
cmarqu opened this issue Jan 18, 2025 · 0 comments
Open

Finding out which files a triggering a rebuild #188

cmarqu opened this issue Jan 18, 2025 · 0 comments

Comments

@cmarqu
Copy link

cmarqu commented Jan 18, 2025

Since the switch to https://watchfiles.helpmanual.io/, it is not easy to find out which files are triggering a rebuild.
There is WATCHFILES_DEBUG=1, but it's very verbose.

As a workaround, I have locally patched

normalised_path = Path(filename).resolve().as_posix()

with a print(f"File {normalised_path} has changed; ignores are {self}").

Such a line could be enabled by a new command line option or an environment variable like SPHINX_AUTOBUILD_DEBUG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant