Closed michal-h21 closed 2 years ago
Notwithstanding error handling, technically a bib file with duplicate keys is invalid. So citeproc-lua should throw an error?
Sure, it is invalid, so warning or error message would be fine.
The package follows BibTeX which raises an error in case of repeated keys. Since it's run inside LuaTeX, the error blocks the TeX interpreter and causes empty output.
The BibTeX error message:
Repeated entry---line 8 of file examples.bib
: @book{texbook
: ,
I'm skipping whatever remains of this entry
Biber only given warnings in such cases:
WARN - Duplicate entry key: 'texbook' in file 'examples.bib', skipping ...
I suppose warning messages would be enough for duplicate entry keys.
When you have duplicate citekyes in the bibliography source file, Citeproc issues runtime error:
What is worse, processing of the bibliography and in-text citations fails, nothing is produced. I've found this thanks to this question on TeX.sx.
Here is a MWE:
examples.bib
: