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

Find references cannot find fun expressions using ?MODULE #726

Closed
dszoboszlay opened this issue May 5, 2020 · 0 comments · Fixed by #1509
Closed

Find references cannot find fun expressions using ?MODULE #726

dszoboszlay opened this issue May 5, 2020 · 0 comments · Fixed by #1509
Labels
bug Something isn't working

Comments

@dszoboszlay
Copy link

Describe the bug
Consider the following sample module:

-module(foo).
-export([foo/0]).

foo() ->
  foo(),
  ?MODULE:foo(),
  fun foo/0,
  fun ?MODULE:foo/0,
  fun foo:foo/0,
  ok.

Find references for the function foo/0 shall find 5 references (in lines 5-9), but it only finds 4. It doesn't find the fun ?MODULE:foo/0 reference,

To Reproduce
Use above sample module.

Expected behavior
All 5 refernces are found by erlang_ls.

Actual behavior
Fun expressions containing the ?MODULE macro are not found.

Context

  • erlang_ls version (tag/sha): 0.1.0-267-g6d0d808
  • Editor used: Emacs
  • LSP client used: lsp-mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant