2

Setup:

IntelliJ IDEA 2022.2.2
Erlang plugin 0.11.1144
SDK: Erlang OTP 25, erts-13.0
Project Imported: https://github.com/FlowForwarding/enetconf

Issue: When I mouse over some macros, I get the message "Unresolved macros '?debugMsg'", "Unresolved macros '?assertEqual'", etc. As a result, I am unable to do a code walk-through. Please help me in resolving the issue.

Initial Debug: I see corresponding hrl files are included as listed below. But, when I mouseover the following line, I get a message "Unresolved include_lib: file not found". Looks like the hrl files are not included properly.

-include_lib("eunit/include/eunit.hrl").
-include_lib("xmerl/include/xmerl.hrl").

enter image description here

enter image description here

Bhuvan
  • 370
  • 9
  • 1
    I'd recommend you report this issue at github.com/ignatov/intellij-erlang/issues Try to clear the IDE caches to see if it helps. (File | Invalidate Caches | Invalidate and Restart) Make sure that content roots are properly configured jetbrains.com/help/idea/content-roots.html – Egor Klepikov Dec 07 '22 at 08:38
  • Thanks @Egor Klepikov. The issue got resolved after configuring Content roots – Bhuvan Dec 08 '22 at 07:16
  • It would be helpful if you wrote an answer to this question. – 2240 Dec 08 '22 at 10:47

1 Answers1

1

The issue got resolved after configuring Content roots as explained in https://www.jetbrains.com/help/idea/content-roots.html. The ContentRoot looked as follows.

Content Root

Bhuvan
  • 370
  • 9