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

FunctionClauseError for Macro.define_alias when typing an alias Foo #421

Closed
mhanberg opened this issue Apr 16, 2024 · 0 comments · Fixed by #422 or #405
Closed

FunctionClauseError for Macro.define_alias when typing an alias Foo #421

mhanberg opened this issue Apr 16, 2024 · 0 comments · Fixed by #422 or #405
Labels
bug Something isn't working completions

Comments

@mhanberg
Copy link
Collaborator

Description

MacroEnv.define_alias will error when you are actively typing an alias, as it is attempting to pass a "function call" to it.

This happens because we inject the cursor as __cursor__() into the source code, but that is not accurate. The same thing would
happen if you actually had typed a function call there.

Need to be more strict when expanding that part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment