Skip to content

Handle escaped module names from Julia 1.12 hygienic macro expansion#36

Open
PatrickHaecker wants to merge 2 commits intoJuliaPluto:mainfrom
PatrickHaecker:escape_module_julia_1.12
Open

Handle escaped module names from Julia 1.12 hygienic macro expansion#36
PatrickHaecker wants to merge 2 commits intoJuliaPluto:mainfrom
PatrickHaecker:escape_module_julia_1.12

Conversation

@PatrickHaecker
Copy link
Copy Markdown

Julia 1.12 wraps module names in Expr(:escape, :Name) during hygienic
macro expansion. This caused explore_module! to fail because it expected
a bare Symbol in the module name position.

Use unescape() to unwrap the module name before recording it as an
assignment, with a guard for non-Symbol results.

Also widen Aqua test compat to include v1 in the second commit. I can remove this change, if it is not welcomed.

This change was needed to make a notebook work with Julia 1.12 which worked previously without the change with Julia 1.11.

I used Claude Opus 4.6 to create the commit and fine-tuned it afterwards.

Patrick Häcker added 2 commits April 6, 2026 06:59
Julia 1.12 wraps module names in Expr(:escape, :Name) during hygienic
macro expansion. This caused explore_module! to fail because it expected
a bare Symbol in the module name position.

Use unescape() to unwrap the module name before recording it as an
assignment, with a guard for non-Symbol results.
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.

1 participant