max-heller / mdbook-pandoc

A mdbook backend powered by Pandoc.
Apache License 2.0
97 stars 7 forks source link

Error when running mdbook build: Unexpected end of input while parsing minor version number #80

Closed ywgdjryf closed 5 months ago

ywgdjryf commented 5 months ago
D:\book>mdbook.exe build
2024-03-28 21:36:37 [INFO] (mdbook::book): Book building has started
2024-03-28 21:36:37 [INFO] (mdbook::book): Running the pandoc backend
2024-03-28 21:36:37 [INFO] (mdbook::renderer): Invoking the "pandoc" renderer
thread 'main' panicked at src\pandoc.rs:69:56:
called `Result::unwrap()` on an `Err` value: Error("unexpected end of input while parsing minor version number")
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2024-03-28 21:36:37 [ERROR] (mdbook::renderer): Renderer exited with non-zero return code.
2024-03-28 21:36:37 [ERROR] (mdbook::utils): Error: Rendering failed
2024-03-28 21:36:37 [ERROR] (mdbook::utils):    Caused By: The "pandoc" renderer failed

I have tried the following steps without success:

Initializing a book. mdbook init book Confirming pandoc installation and accessibility in the command line. Checking compatibility between mdbook and pandoc versions. Updating mdbook and pandoc to the latest versions. Verifying book.toml settings.

max-heller commented 5 months ago

What version of Pandoc are you using (pandoc -v)? And what version of mdbook-pandoc?

ywgdjryf commented 5 months ago

I am using pandoc 2.12 and mdbook-pandoc latest version 0.6.2 - 2024-03-21.

max-heller commented 5 months ago

Could you try installing from the version-parsing branch and see if that fixes the error?

cargo install --git https://github.com/max-heller/mdbook-pandoc --branch version-parsing
ywgdjryf commented 5 months ago

This time, another error occurs again to me, just like him

2024-03-29 08:59:27 [INFO] (mdbook::book): Book building has started
2024-03-29 08:59:27 [INFO] (mdbook::book): Running the pandoc backend
2024-03-29 08:59:27 [INFO] (mdbook::renderer): Invoking the "pandoc" renderer
pandoc: book\pdf\src\intro.md: openBinaryFile: invalid argument (Invalid argument)
pandoc exited unsuccessfully
2024-03-29 08:59:27 [ERROR] (mdbook::renderer): Renderer exited with non-zero return code.
2024-03-29 08:59:27 [ERROR] (mdbook::utils): Error: Rendering failed
2024-03-29 08:59:27 [ERROR] (mdbook::utils):    Caused By: The "pandoc" renderer failed