decker-edu / decker

A markdown based tool for slide deck creation.
GNU General Public License v3.0
55 stars 13 forks source link

Build of doc with bibliography fails #9

Closed salbeira closed 9 months ago

salbeira commented 1 year ago

I get the following error:

CiteprocXMLError: Missing root element
Error when running Shake build system:
  at want, called at app/Decker.hs:75:3 in main:Decker
* Depends on: html
  at need, called at app/Decker.hs:47:25 in main:Decker
* Depends on: public/doc/smart-image-urls-page.html
* Raised the exception:
ExitFailure 4

OS: Linux Mint: 5.15.0-50-generic

decker check:

# external programs:
  ssh: found
  rsync: found
  dot: found
  plantuml: found
  gnuplot: found
  pdflatex: found
  pdf2svg: found

Commenting out the bibliography in the frontmatter of the doc-file resolves the issue.

salbeira commented 1 year ago

This seems to be related to:

https://github.com/decker-edu/decker/blob/e18681a8922a1e255e950742648312a41aa1f8c9/src/Text/Decker/Reader/Markdown.hs#L69

and

https://github.com/decker-edu/decker/blob/e18681a8922a1e255e950742648312a41aa1f8c9/src/Text/Decker/Reader/Markdown.hs#L82

But using -j1 does not work. Adding a csl meta value to the test and doc decks does fix the issue.

monofon commented 9 months ago

This already worked, and now should do race free.

monofon commented 9 months ago

@salbeira please give it a quick check before I close this.

salbeira commented 9 months ago

Omitting the csl: [...] meta variable in the bibliography-deck.md-Test does no longer fail. This seems to have fixed the issue.