expert-lsp / expert-lsp/expert
References not found if function is imported by use
Open
bug
- Dominant language
- Elixir
- Stars
- 2.1k
- Forks
- 113
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 26
Description
Repro
```elixir
defmodule MyProject.B do
def foo(), do: 1
end
defmodule MyProject.A do
defmacro __using__(ast) do
quote do
import MyProject.B
unquote(ast)
end
end
end
defmodule MyProject do
use MyProject.A
def test() do
foo()
end
end
```
run goto references on `foo` in `def foo(), do: 1`
Indexer is collecting `use`s but not resolving them. `foo()` call in `test` function is indexed as `MyProject.foo` instead of `MyProject.B.foo`.
Going the opposite way works only because we have `elixir_sense` fallback
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.