Skip to content

Fix 224-shinymeta: add explicit varname to metaReactive calls#342

Closed
karangattu wants to merge 1 commit intofix-tests-feb-27from
fix/224-shinymeta-varname
Closed

Fix 224-shinymeta: add explicit varname to metaReactive calls#342
karangattu wants to merge 1 commit intofix-tests-feb-27from
fix/224-shinymeta-varname

Conversation

@karangattu
Copy link
Contributor

shinymeta's auto-detection of variable names via source references (mrexprSrcrefToLabel) crashes with shiny >= 1.13.0.9000 due to changed source reference behavior in callModule(). The while loop in mrexprSrcrefToLabel can decrement firstLineIdx to 0, causing lines[0] to return character(0) which crashes the grepl() check.

Adding explicit varname parameters bypasses the broken auto-detection.

shinymeta's auto-detection of variable names via source references
(mrexprSrcrefToLabel) crashes with shiny >= 1.13.0.9000 due to changed
source reference behavior in callModule(). The while loop in
mrexprSrcrefToLabel can decrement firstLineIdx to 0, causing lines[0]
to return character(0) which crashes the grepl() check.

Adding explicit varname parameters bypasses the broken auto-detection.
Copy link
Contributor

@schloerke schloerke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be fixed in {shinymeta}.

I do not want to make this change in shinycore to get a ✅.

@karangattu
Copy link
Contributor Author

Waiting for this to get fixed in shinymeta instead of going around the issue

@karangattu karangattu closed this Feb 27, 2026
@cpsievert
Copy link
Contributor

Should be fixed via rstudio/shinymeta#131

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.

3 participants