Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Dec 11, 2025

This fixes an issue where mdbook serve would repeatedly show an error message every second if the output.html config had a problem. The issue is that set_roots was doing more work than I realized. It is not necessary to call it every time in the main polling loop, since the roots only change when the book configuration changes.

The solution is to just reset the roots whenever the book config changes.

Fixes #2946

This fixes an issue where `mdbook serve` would repeatedly show an error
message every second if the `output.html` config had a problem. The
issue is that `set_roots` was doing more work than I realized. It is not
necessary to call it every time in the main polling loop, since the
roots only change when the book configuration changes.

The solution is to just reset the roots whenever the book config
changes.

Fixes rust-lang#2946
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Dec 11, 2025
@ehuss ehuss added this pull request to the merge queue Dec 11, 2025
Merged via the queue into rust-lang:master with commit 9774762 Dec 11, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Dec 11, 2025
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.

Bad output.html config deserialization causes a loop while serving

2 participants