Skip to content

Fix analysis for macros defined in the same namespace #746

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

Open
mk opened this issue Mar 12, 2025 · 0 comments
Open

Fix analysis for macros defined in the same namespace #746

mk opened this issue Mar 12, 2025 · 0 comments
Labels

Comments

@mk
Copy link
Member

mk commented Mar 12, 2025

Clerk's analysis currently runs macro-expansion in order to derive the dependencies of a given expression. This works fine for macros defined outside the current file / namespace as we're evaluating any requires and are than in turn able to run the macro-expansion step.

For macros defined in the same namespace, this fails, see e.g. #735 (comment).

We should either fix this limitation or document it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants