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

Error raised on @behaviour unquote(__MODULE__) #43

Open
djeusette opened this issue Sep 8, 2019 · 0 comments
Open

Error raised on @behaviour unquote(__MODULE__) #43

djeusette opened this issue Sep 8, 2019 · 0 comments

Comments

@djeusette
Copy link

Hi there,

I am using a behaviour statement in a macro like so:

defmacro __using__(opts) do
    quote location: :keep do
      @behaviour unquote(__MODULE__)
      ...
    end
end

Unfortunately, it raises this error:

Message: an exception was raised:
    ** (ArgumentError) argument error
        :erlang.atom_to_binary({:unquote, [line: 37, column: 18], [{:__MODULE__, [line: 37, column: 26], nil}]}, :utf8)
        lib/elixir_sense/core/introspection.ex:514: ElixirSense.Core.Introspection.module_to_string/1
        lib/elixir_sense/providers/suggestion.ex:175: anonymous fn/2 in ElixirSense.Providers.Suggestion.find_callbacks/2

Cheers

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