Skip to content

Conversation

gordonwoodhull
Copy link
Contributor

fixes #13383

v1.7 introduced this code implementing the light, dark, light stylesheet trick for syntax highlighting css.

it should not try to do this if there are no stylesheets!

we did not see the bug trigger until v1.8 which treats brand data as possibly implementing both light and dark
decided when we see theme

PR for CI; want to investigate a little further whether this means we're passing around hasDark / hasDarkStyles that are always true.

fixes #13383

v1.7 introduced this code implementing the light, dark, light
stylesheet trick for syntax highlighting css.

it should not try to do this if there are no stylesheets!

we did not see the bug trigger until v1.8 which treats brand
data as possibly implementing both light and dark
decided when we see theme.
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Sep 26, 2025

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

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@gordonwoodhull gordonwoodhull added this to the Hot-fix milestone Sep 26, 2025
@gordonwoodhull
Copy link
Contributor Author

gordonwoodhull commented Sep 26, 2025

Uncovered #13450 while testing this.

This code shouldn't be hit, but for now let's make sure it doesn't crash.

I'll proceed with backport and changelog on 1.8.

@gordonwoodhull gordonwoodhull marked this pull request as ready for review September 26, 2025 19:32
@gordonwoodhull gordonwoodhull merged commit 84b751b into main Sep 26, 2025
51 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/13383 branch September 26, 2025 19:33
@gordonwoodhull gordonwoodhull changed the title minimal: true should disable brand, not crash bugfix: minimal: true would assert when combined with brand Sep 26, 2025
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.

minimal: true does fail when brand is found

2 participants