Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

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

Description

@mhanberg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions