-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Serve rebuilds for every file individually when a lot of files change #679
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
Comments
I just noticed this myself when I added a "todo: write this" note to all the unwritten chapters in something I'm working on. It's a real pain when the The actual culprit is our What are your thoughts on something like this?
|
That could work. Notify seems to send an event for every file changed, even within the 1 second debounce time we give it. So flushing the iterator should do the trick. However, we should decently document/comment this portion of code because it is not obvious what it does. 😉 I also think that |
Agreed. Although it could also be turned into some sort of |
Yes, absolutely! It comes down to what you want to log. |
I forgot to mention, but I've opened #870 to fix this. |
When a lot of source files change and we were running
mdbook serve
, it will rebuild the book for each file that changed. This is particularly painful when using git and changing branches. During those rebuilds, the served book is broken.Simply quitting
mdbook
and relaunching the command solves the problem, but it is an annoying paper-cut.The text was updated successfully, but these errors were encountered: