Skip to content
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

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

Closed
ywgdjryf opened this issue Mar 28, 2024 · 4 comments · Fixed by #82
Closed
Labels
bug Something isn't working

Comments

@ywgdjryf
Copy link

ywgdjryf commented Mar 28, 2024

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
Copy link
Owner

max-heller commented Mar 28, 2024

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

@ywgdjryf

This comment was marked as outdated.

@max-heller
Copy link
Owner

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
Copy link
Author

ywgdjryf commented Mar 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants