Skip to content

Reflection plugin doesn't work #9

@c0deaddict

Description

@c0deaddict

Before the plugin field and after_definition functions are called, the accumulating module attributes are deleted on this line:

https://github.com/saleyn/typedstruct/blame/4b7f5ac85e5b4c711bcc4fd2c8c1e2b02490f35e/lib/typed_struct.ex#L319-L320

Unfortunately that result is this plugin being broken: https://github.com/ejpcmac/typed_struct_legacy_reflection/blob/master/lib/typed_struct_legacy_reflection.ex

Is it by design that the module attributes are deleted before calling the plugin functions, or can the cleanup be moved to after calling all plugin functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions