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

Bug report: Length of nil value #77

Closed
zepinglee opened this issue Sep 9, 2024 · 2 comments
Closed

Bug report: Length of nil value #77

zepinglee opened this issue Sep 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zepinglee
Copy link
Owner

zepinglee commented Sep 9, 2024

Hi, I get the same error with v0.6.3 and with the lualatex engine, when trying to show two citations in two different chapters:

\documentclass{book}

\usepackage[style=elsevier-harvard]{citation-style-language}
\usepackage{hyperref}

\addbibresource{references}

\begin{document}

\chapter{Introduction}\label{introduction}

See \citet{knuth84} for additional discussion of literate programming.

\chapter{Summary}\label{summary}

In summary, this book has no content whatsoever \cite{knuth84}.

\chapter*{References}\label{references}

\printbibliography[heading=none]

\end{document}

giving this error:

...dist/scripts/citation-style-language/citeproc-engine.lua:755: attempt to get length of a nil value (field '?')
stack traceback:
        ...dist/scripts/citation-style-language/citeproc-engine.lua:755: in method 'get_preceding_cite_item'
        ...dist/scripts/citation-style-language/citeproc-engine.lua:708: in method 'set_cite_item_position'
        ...dist/scripts/citation-style-language/citeproc-engine.lua:647: in method 'get_tainted_citation_ids'
        ...dist/scripts/citation-style-language/citeproc-engine.lua:585: in method 'process_citation'
        ...ist/scripts/citation-style-language/citeproc-manager.lua:502: in method 'cite'
        [\directlua]:1: in main chunk.
\lua_now:e #1->\__lua_now:n {#1}

Originally posted by @julienleroux5 in #75 (comment)

@zepinglee zepinglee added the bug Something isn't working label Sep 9, 2024
@zepinglee
Copy link
Owner Author

@julienleroux5 This bug is already fixed in 510769c. I've published to CTAN and it should be available soon.

@julienleroux5
Copy link

Cool, working great, thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants