Skip to content

Fix stale quarto.render calls in springer test fixture - #15375

Merged
cderv merged 1 commit into
mainfrom
fix/pdfengine-nil-in-extension-filters
Nov 16, 2026
Merged

cderv merged 1 commit into
mainfrom
fix/pdfengine-nil-in-extension-filters

Conversation

@cderv

@cderv cderv commented Nov 16, 2026

Copy link
Copy Markdown
Member

When the springer extension in the extension project test fixture renders to springer-pdf, its Lua filter fails with attempt to index a nil value (field 'render'), and Pandoc exits with code 83.

Root cause

The fixture filter calls quarto.render.pdfEngine() and quarto.render.citeMethod(). Those functions existed only for a few days before 1.0: abb1bac added the quarto.render table, and 3ace171 renamed both to quarto.doc.pdfEngine() and quarto.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() and quarto.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):

  • referenced the GitHub issue this PR closes
  • updated the appropriate changelog in the PR
  • ensured the present test suite passes
  • added new tests
  • created a separate documentation PR in Quarto's website repo and linked it to this PR
AI-assisted PR
  • AI tool used: Claude Code
  • Codebase grounding: local clone, GitHub CLI for the upstream quarto-journals/springer history
  • Human review: I have reviewed, tested, and verified the AI-generated content before submitting.

Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.

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.
@posit-snyk-bot

posit-snyk-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv
cderv merged commit 4856b1f into main Nov 16, 2026
52 checks passed
@cderv
cderv deleted the fix/pdfengine-nil-in-extension-filters branch November 16, 2026 16:01
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants