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

Can't jumping to the definition of a function which is defined in a module imported by the __using__ macro. #366

Open
wolfgangshilei opened this issue Jul 1, 2019 · 0 comments

Comments

@wolfgangshilei
Copy link

Suppose that there are three modules defined as below:

a.ex:

defmodule TestAlchemist.A do
  use TestAlchemist.B

  IO.inspect func_in_c()
  IO.inspect func_in_b()
end

b.ex:

defmodule  TestAlchemist.B do
  defmacro __using__(_) do
    quote do
      import TestAlchemist.B
      import TestAlchemist.C
    end
  end

  def func_in_b(), do: "func_in_b"
end

c.ex:

defmodule TestAlchemist.C do
  def func_in_c(), do: "func_in_c"
end

Then in module TestAlchmist.A, if I want to go to the definition of func_in_c with M-. , I will get the error:

Don’t know how to find: func_in_c

Alchemist version: 1.8.2 (package: 20180312.1304)
GNU Emacs 25.3.1

@wolfgangshilei wolfgangshilei changed the title Can't jumping to the definition of a function which is defined in a module imported by the __use__ macro. Can't jumping to the definition of a function which is defined in a module imported by the __using__ macro. Jul 1, 2019
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