Skip to content

Conversation

@gordonwoodhull
Copy link
Contributor

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
Copy link
Collaborator

posit-snyk-bot commented Jan 16, 2026

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.

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 1d395c0 to 1c0460c Compare January 16, 2026 19:24
@gordonwoodhull
Copy link
Contributor 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

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