I noticed today that I cannot do tab completion in iex to see which functions a module has if the function is implementing a behaviour. Why is that the case? Or, maybe something is messed up for me?
eg.
defmodule B do
@callback hello() :: atom()
end
defmodule A do
@behaviour B
@impl B
def hello do
:world
end
end
Then if I do iex -S mix
and type “A.< tab >” I don’t see “hello” as I would expect.
EDIT: To clarify, if I paste the above code into a console, it does work, but not if I iex -S mix
within a project that has the same modules defined.