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

Metadata build crashes on Absinthe schema #999

Open
lukaszsamson opened this issue Oct 8, 2023 · 0 comments
Open

Metadata build crashes on Absinthe schema #999

lukaszsamson opened this issue Oct 8, 2023 · 0 comments

Comments

@lukaszsamson
Copy link
Collaborator

elixir_sense is unable to expand __using__ macro

[Warn  - 9:23:43 AM] ** (ErlangError) Erlang error: "ArgumentError during metadata build pre:\ncould not call Module.register_attribute/3 because the module BlogWeb.Schema.AccountTypes is already compiled\nast node: {:use, [end_of_expression: [newlines: 0, line: 2, column: 31], line: 2, column: 3], [{:__aliases__, [last: [line: 2, column: 23], line: 2, column: 7], [:Absinthe, :Schema, :Notation]}]}"
    (elixir 1.14.5) lib/module.ex:2504: Module.assert_not_readonly!/2
    (elixir 1.14.5) lib/module.ex:1626: Module.register_attribute/3
    (absinthe 1.7.5) expanding macro: Absinthe.Schema.Notation.__using__/1
    nofile: BlogWeb.Schema.AccountTypes (module)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant