-
Notifications
You must be signed in to change notification settings - Fork 0
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
Failure in bilingual collection generation #142
Comments
Unable to reproduce it locally, tried both docker and macos. After several rerun of docker I see that different files are missing for different runs I have an assumption that this may be related to I will:
|
Well after reading a couple articles, I have found that we cannot rely on Technically we faced with two cases here:
For the second problem I will try to pass correct output PDF path to avoid unnecessary copy |
@CAMOBAP than you for the detailed investigation!
The font manifest here is intended only for mn2pdf to consume, so it needs to cross the boundaries between "normal metanorma" (isodoc gem) and "mn2pdf" (mn2pdf gem). Instead of passing a font file, if you retain the font manifest file pointer until mn2pdf returns to Ruby, the font manifest wouldn't be deleted?
We don't have this issue in normal PDF generation because the path of the PDF output file is provided in the arguments. In collection we may have this problem due to temp files and not tracking dependencies. If we do track dependencies like metanorma/metanorma-cli#232 then it wouldn't be a problem. |
Commenting as a reminder of our discussion: I'm trying to build a standoc metanorma document using docker from this directory: https://github.com/metanorma/mn-samples-standoc I'm using this command to build the document: When I build the document, it only generates .doc and .html output but no PDF. |
PR on review metanorma/metanorma#214 |
The original issue is fixed missing pdf will be addressed in #153 |
Build failure needs to be fixed here.
Is this a failure in the mn2pdf gem or in isodoc? It seems to be removing the Fontist manifest before the bilingual collection processing is complete. Locally I don't have this issue.
Ping @opoudjis
Originally posted by @ronaldtse in #141 (comment)
The text was updated successfully, but these errors were encountered: