Skip to content

Revert livereload file watching to use polling observer#2477

Merged
oprypin merged 1 commit intomkdocs:masterfrom
oprypin:poll
Jul 8, 2021
Merged

Revert livereload file watching to use polling observer#2477
oprypin merged 1 commit intomkdocs:masterfrom
oprypin:poll

Conversation

@oprypin
Copy link
Copy Markdown

@oprypin oprypin commented Jun 27, 2021

This goes back to the approach that was always used with 'livereload' library (but now just using the 'watchdog' implementation of the same), meaning the same downsides with latency and CPU usage.
But we have to do this to reasonably support usages that span virtual filesystems such as non-native Docker and network mounts.

This also simplifies the code, as the polling observer already follows symlinks and happens to support watching paths of files directly

Fixes #2457

This goes back to the approach that was always used with 'livereload' library (but now just using the 'watchdog' implementation of the same), meaning the same downsides with latency and CPU usage.
But we have to do this to reasonably support usages that span virtual filesystems such as non-native Docker and network mounts.

This also simplifies the code, as the polling observer already follows symlinks and happens to support watching paths of files directly
@oprypin

This comment was marked as abuse.

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

Successfully merging this pull request may close these issues.

mkdocs 1.2.x livereload no longer working

1 participant