Skip to content

Warn when cell-renderings has duplicate names - #13904

Merged
gordonwoodhull merged 1 commit into
mainfrom
fix/13900-cell-renderings-duplicate
Feb 17, 2026
Merged

gordonwoodhull merged 1 commit into
mainfrom
fix/13900-cell-renderings-duplicate

Conversation

@gordonwoodhull

Copy link
Copy Markdown
Member

Summary

  • Adds a warning when renderings attribute contains duplicate names (e.g., [dark, light, dark, light])
  • Previously, duplicate names were silently dropped with only the last cell output for each name being used
  • Users now get a clear warning explaining which outputs will be discarded

Fixes #13900

Test plan

  • Verify warning is produced when using duplicate rendering names
  • Run smoke-all test: ./run-fast-tests.sh docs/smoke-all/2026/01/16/13900.qmd

🤖 Generated with Claude Code

@posit-snyk-bot

posit-snyk-bot commented Jan 16, 2026 •

Copy link
Copy Markdown
Collaborator

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

Status Scanner 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.

@gordonwoodhull
gordonwoodhull force-pushed the fix/13900-cell-renderings-duplicate branch from 1d395c0 to 1c0460c Compare January 16, 2026 19:24
@gordonwoodhull

Copy link
Copy Markdown
Member Author

manually confirmed

(W) duplicate rendering name 'dark' in renderings; only the last cell output with each name will be used
(W) duplicate rendering name 'light' in renderings; only the last cell output with each name will be used

Sometimes I get Claude to write a haiku about the session, this one's a keeper

dark, light, dark, light plots
last one wins, the rest are lost
now a warning speaks

@gordonwoodhull
gordonwoodhull force-pushed the fix/13900-cell-renderings-duplicate branch 2 times, most recently from 57a658e to 0edc7a3 Compare February 3, 2026 16:12
@cscheid cscheid added this to the v1.10 milestone Feb 17, 2026
@gordonwoodhull
gordonwoodhull force-pushed the fix/13900-cell-renderings-duplicate branch from 0edc7a3 to 155f46f Compare February 17, 2026 19:47
When the `renderings` attribute contains duplicate names like
`[dark, light, dark, light]`, only the last cell output for each
name is used. This change adds a warning to alert users that
their earlier outputs are being silently dropped.

Fixes #13900

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gordonwoodhull
gordonwoodhull force-pushed the fix/13900-cell-renderings-duplicate branch from 155f46f to ca32ad1 Compare February 17, 2026 20:42
@gordonwoodhull
gordonwoodhull merged commit 38d4e7a into main Feb 17, 2026
49 checks passed
@gordonwoodhull
gordonwoodhull deleted the fix/13900-cell-renderings-duplicate branch February 17, 2026 21:57
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.

cell-renderings.lua silently drops duplicated render names

3 participants