-
Notifications
You must be signed in to change notification settings - Fork 3
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
Loose and strict validation #314
Comments
Pull current standoc and isodoc gems from github, those issues have likely been remedied already there. |
Thanks @opoudjis . I found the culprit. The error is due to missing definition of a referenced term. This line of error got lost in the sea of other logs: https://github.com/CalConnect/csd-transcription-systems/runs/3043780696?check_suite_focus=true#step:5:438 In this case, one of the ways to fix it is just changing The standard practice (pun intended) in this case seems to be "languages(3.2)", but I'm not sure how it can be achieved with metanorma. In general, I think cc @ronaldtse |
Perhaps I've been doing it wrong? Maybe the solution is just _languages_ (<<term-language>>) Anyway, the suggestion that the CLI should fail fast still stands. |
The new "concepts mention" functionality is now available: The actual failure is due to the plural form not being found by Metanorma. In this case, we should use:
|
The macro is When you enter a
is generated, and added to the error log *.err, which is output to disk; the document also contains, at the place where the incorrect anchor was located, the text:
The error messages are, in fact, informative. While it is easy for me to abort on finding an unresolved anchor, I do not at all agree that execution should abort: being able to see a generated document containing clear error messages is going to be far more helpful in debugging, I have found, than going through an error log. Will not action without go-ahead from @ronaldtse. |
Thanks @opoudjis , that's a fair point. Instead of aborting, would returning a non-zero exit status work? That serves to signal that the build is not error-free, and will not erroneously let CI pipelines march ahead with errors still in the document. |
I agree that a non-zero exit status should apply on any type of error, being consistent with metanorma/metanorma-cli#89, metanorma/metanorma-cli#151, metanorma/metanorma-cli#164 among others. Perhaps there could also be a |
Having |
That's going to take some juggling of metanorma (and the individual gems within it), and rearchitecting. I'm making it medium priority, and I'd much rather @abunashir work on it... |
.to_xml
for nil:NilClass
)
Error priorities have now been implemented, 0, 1, 2, with 0 currently fatal. |
This issue is essentially metanorma/metanorma-cli#301, which is implementing non-zero exit. I am closing this ticket in favour of that, but passing on the request for --strict and --loose to it. |
Relevant line in build log: https://github.com/CalConnect/csd-transcription-systems/runs/3043780696?check_suite_focus=true#step:5:550
The above seems to cause the expected
*.presentation.xml
to not build, thus failing to output subsequent PDF / HTML / DOC files. (Strangely enough, the process exited with0
.)Only happens after
isodoc
has been upgraded from1.6.7.*
to1.7.0
.The text was updated successfully, but these errors were encountered: