You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This macro is used in multiple .erl files across different directories.
However, when I use "Find All References" or "Go to Definition" on ?adm_free, Erlang LS only finds some references, or sometimes only the current file, but not all usages across the project.
I have confirmed that:
All relevant directories are included in include_dirs.
The macro is used in files that are definitely within the indexed paths.
I have deleted the .erlang_ls directory and restarted the editor, but the problem persists.
Other symbols (functions, records) work fine for "Find All References".
Expected Behavior
"Find All References" and "Go to Definition" should find all usages and the definition of the macro across the entire project, not just in the current file or a subset of files.
Additional Information
There are no errors in the Erlang LS logs related to indexing or include paths.
Using ripgrep/grep, I can find all macro usages as expected.
Steps to Reproduce
Define a macro in a header file included in multiple modules.
Use the macro in several .erl files in different subdirectories.
Use "Find All References" or "Go to Definition" on the macro.
Environment
Problem Description
I have a project with the following
erlang_ls.config:I have a macro defined in
server/include/adm.hrl:This macro is used in multiple
.erlfiles across different directories.However, when I use "Find All References" or "Go to Definition" on
?adm_free, Erlang LS only finds some references, or sometimes only the current file, but not all usages across the project.I have confirmed that:
include_dirs..erlang_lsdirectory and restarted the editor, but the problem persists.Expected Behavior
"Find All References" and "Go to Definition" should find all usages and the definition of the macro across the entire project, not just in the current file or a subset of files.
Additional Information
Steps to Reproduce
.erlfiles in different subdirectories.