mdbook-i18n-helpers
mdbook-i18n-helpers copied to clipboard
`[email protected]` will be imcompatible with `[email protected]`
Problem Description
Hello, mdbook-i18n-helpers Team,
I previously opened an issue reporting an error when using mdbook with mdbook-i18n-helpers:
- https://github.com/rust-lang/mdBook/issues/2835
The error message is as follows:
thread 'main' panicked at crates/mdbook-core/src/config.rs:184:41:
unreachable: invalid key `output`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
It seems that mdbook-i18n-helpers versions 0.3.6 and below are no longer compatible with the upcoming [email protected] due to its breaking changes. I was wondering if there are any plans for mdbook-i18n-helpers to support the upcoming [email protected] release?
Steps to Reproduce
Run the following commands to reproduce the issue on the master branch:
Click to expand the commands
# Prepare Environment
MDBOOK_VERSION=master
git clone --branch=${MDBOOK_VERSION} --depth=1 https://github.com/rust-lang/mdBook.git mdbook-${MDBOOK_VERSION}
cd mdbook-${MDBOOK_VERSION}
conda create --prefix ./.conda --yes
conda activate ./.conda
conda install conda-forge::rust --channel conda-forge --yes
export CARGO_INSTALL_ROOT=$(pwd)/.conda
cargo install --path . --locked
cargo install mdbook-i18n-helpers
# Build with mdbook-i18n-helpers
export MDBOOK_OUTPUT='{"xgettext": {"depth": 5}}'
mdbook build $(pwd)/guide --dest-dir $(pwd)/guide/locale/pot
The full log: log-build-docs-on-master-branch.txt
As a comparison, run the same commands with the v0.4.52 tag:
Click to expand the commands
# Prepare Environment
MDBOOK_VERSION=v0.4.52
git clone --branch=${MDBOOK_VERSION} --depth=1 https://github.com/rust-lang/mdBook.git mdbook-${MDBOOK_VERSION}
cd mdbook-${MDBOOK_VERSION}
conda create --prefix ./.conda --yes
conda activate ./.conda
conda install conda-forge::rust --channel conda-forge --yes
export CARGO_INSTALL_ROOT=$(pwd)/.conda
cargo install --path . --locked
cargo install mdbook-i18n-helpers
# Build with mdbook-i18n-helpers
export MDBOOK_OUTPUT='{"xgettext": {"depth": 5}}'
mdbook build $(pwd)/guide --dest-dir $(pwd)/guide/locale/pot
The full log: log-build-docs-on-v0.4.52-tag.txt
Hi @hwhsu1231, thanks a lot for the report! We will definitely want to make the extension compatible with the latest version of mdbook!
The links in https://github.com/rust-lang/mdBook/issues/2835 to the commits is helpful: it seems like a lot has changed! We will need some time to digest this, but perhaps we can start by updating the extension to error out if it sees mdbook 0.5 or later.
A PR for that would be much appreciated!
Hi, @mgeisler , @qwandor , #284 was already merged, so we can use mdbook 5.0 if new version (may be 0.4.0?) is released. Is there any plan for new release?
Done.