Repository navigation
Fix stale quarto.render calls in springer test fixture - #15375
Merged
Merged
Conversation
The springer fixture filter called quarto.render.pdfEngine() and quarto.render.citeMethod(), so any springer-pdf render of the fixture failed with "attempt to index a nil value (field 'render')". The quarto.render table existed only briefly before 1.0 (abb1bac); 3ace171 renamed both functions to quarto.doc.pdfEngine() and quarto.doc.citeMethod(). The fixture was copied from quarto-journals/springer before upstream made the same rename in quarto-journals/springer@aa10358, and no test renders it to pdf, so the stale calls went unnoticed.
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
cderv
added a commit
that referenced
this pull request
Nov 16, 2026
The springer fixture filter called quarto.render.pdfEngine() and quarto.render.citeMethod(), so any springer-pdf render of the fixture failed with "attempt to index a nil value (field 'render')". The quarto.render table existed only briefly before 1.0 (abb1bac); 3ace171 renamed both functions to quarto.doc.pdfEngine() and quarto.doc.citeMethod(). The fixture was copied from quarto-journals/springer before upstream made the same rename in quarto-journals/springer@aa10358, and no test renders it to pdf, so the stale calls went unnoticed. (cherry picked from commit 4856b1f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the springer extension in the extension project test fixture renders to
springer-pdf, its Lua filter fails withattempt to index a nil value (field 'render'), and Pandoc exits with code 83.Root cause
The fixture filter calls
quarto.render.pdfEngine()andquarto.render.citeMethod(). Those functions existed only for a few days before 1.0: abb1bac added thequarto.rendertable, and 3ace171 renamed both toquarto.doc.pdfEngine()andquarto.doc.citeMethod(). The fixture was copied from quarto-journals/springer just before upstream made the same rename in quarto-journals/springer@aa10358. No test renders this fixture to pdf, so the stale calls went unnoticed.Fix
Use
quarto.doc.pdfEngine()andquarto.doc.citeMethod(), as upstream did. No new test: rendering this fixture to pdf now gets past the filter but then stops on an unrelated bibtex style-file error, which is a separate problem.Checklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.