badboy / mdbook-toc

A preprocessor for mdbook to add inline Table of Contents support.
Mozilla Public License 2.0
163 stars 20 forks source link

mdbook-toc failing in GitHub Action with mdBook v0.4.9 #18

Closed flodolo closed 3 years ago

flodolo commented 3 years ago

I'm having a weird issue, all of a sudden the action using mdbook-toc is failing across 3 different repositories. Example output from the latest error (workflow):

2021-06-05 11:01:51 [INFO] (mdbook::book): Book building has started
Unable to parse the input
Error: -05 11:01:51 [ERROR] (mdbook::utils): Error: The "toc" preprocessor exited unsuccessfully with exit code: 1 status
Error: Process completed with exit code 101.

Version of packages:

What's worse is that the generation works fine locally on my machine, with the same versions. Any idea how I could try to debug the issue?

The last time the action worked in one of the repositories, was on May 3rd, using mdbook 0.4.7 and rust 1.51.0

flodolo commented 3 years ago

Interestingly enough, it worked fine after forcing v0.4.8 of mdBook https://github.com/mozilla-l10n/documentation/runs/2752900637?check_suite_focus=true

I have no clue why it would work locally though (macOS vs Linux?) https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-049

badboy commented 3 years ago

Probably same as https://github.com/badboy/mdbook-mermaid/pull/11, let me get that updated and publish new releases.

badboy commented 3 years ago

0.6.4 is out, built against mdbook 0.4.10

flodolo commented 3 years ago

Thanks, it works now 👍🏼