Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct EagerMacroFunction when aliasing macro function from {% from %} tag #1208

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jasmith-hs
Copy link
Contributor

MacroFunctions made in tags used in eager execution should be EagerMacroFunctions. This was done for those created from the {% macro %} (EagerMacroTag) tag, but not from EagerCallTag or EagerFromTag.

Specifically, there's a ClassCastException that can happen due to the assumption that in eager execution all MacroFunction objects are EagerMacroFunction instances. This could happen when successfully importing a macro function using a FromTag with an alias, a bug I introduced with #1117

@jasmith-hs jasmith-hs changed the title Construct EagerMacroFunction from EagerCallTag and EagerFromTag Construct EagerMacroFunction when aliasing macro function from {% from %} tag Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant