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

Panic during translations rendering #1878

Closed
henrif75 opened this issue Mar 5, 2024 · 5 comments
Closed

Panic during translations rendering #1878

henrif75 opened this issue Mar 5, 2024 · 5 comments

Comments

@henrif75
Copy link
Collaborator

henrif75 commented Mar 5, 2024

Building translation step in actions is failing for all .po files

Run .github/workflows/build.sh es book/comprehensive-rust-es
  .github/workflows/build.sh es book/comprehensive-rust-es
  shell: /usr/bin/bash -e {0}
  env:
    CARGO_TERM_COLOR: always
    CACHE_ON_FAILURE: false
    CARGO_INCREMENTAL: 0
Building es translation as of [2](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:2)024-01-25T15:0[3](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:3):2[4](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:4)-08:00
  2024-03-0[5](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:5) 20:3[6](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:6):42 [INFO] (mdbook::book): Book building has started
  2024-03-05 20:36:44 [INFO] (mdbook::book): Running the exerciser backend
  2024-03-05 20:36:44 [INFO] (mdbook::renderer): Invoking the "exerciser" renderer
  2024-03-05 20:36:45 [INFO] (mdbook::book): Running the html backend
  2024-03-05 20:36:4[8](https://github.com/google/comprehensive-rust/actions/runs/8162101473/job/22314141282?pr=1869#step:8:9) [INFO] (mdbook::book): Running the pandoc backend
  2024-03-05 20:36:48 [INFO] (mdbook::renderer): Invoking the "pandoc" renderer
  Unable to run `pandoc -v`: No such file or directory (os error 2)
  Error: -05 20:36:48 [ERROR] (mdbook::renderer): Renderer exited with non-zero return code.
  Error: -05 20:36:48 [ERROR] (mdbook::utils): Error: Rendering failed
  Error: -05 20:36:48 [ERROR] (mdbook::utils): 	Caused By: The "pandoc" renderer failed
  Error: Process completed with exit code [10]
@djmitche
Copy link
Collaborator

djmitche commented Mar 5, 2024

I had a similar issue, but assumed it was because I didn't have pandoc (or the right version of it..) installed.

c509dbd should have addressed this, I think? @mgeisler?

@henrif75
Copy link
Collaborator Author

henrif75 commented Mar 5, 2024

Thanks @djmitche
That might have been a transient error, it's working fine in my last PR (#1879)
I'll keep this open a little and close later today.

@henrif75
Copy link
Collaborator Author

henrif75 commented Mar 6, 2024

Can't reproduce it anymore.

@henrif75 henrif75 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
@mgeisler
Copy link
Collaborator

mgeisler commented Mar 7, 2024

I had a similar issue, but assumed it was because I didn't have pandoc (or the right version of it..) installed.

c509dbd should have addressed this, I think? @mgeisler?

Hmm... strange — the change in #1713 was not trying to fix this, it was just trying to simplify build.sh and also ensure that we always test the PDF generation for all languages for all PRs.

Cc @max-heller in case you have any ideas? The error message above says that pandoc wasn't found, so perhaps the curl command that installs it simply failed?

@max-heller
Copy link
Contributor

Cc @max-heller in case you have any ideas? The error message above says that pandoc wasn't found, so perhaps the curl command that installs it simply failed?

Yep, looks to be an issue of pandoc not being found in PATH, so either the download failed or adding it to PATH failed

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

No branches or pull requests

4 participants