intellij-erlang
intellij-erlang copied to clipboard
Mark folders as include directories doesn't work
Hi, I have next issue with IntelliJ IDEA 2018.2.1 (Ultimate Edition) Build #IU-182.3911.36, built on August 6, 2018 on Ubuntu 18.04 Erlang plugin version: 0.11.985
When I start the IDE I get next notification:
Some 'include' folders are not marked as include directories Mark folders Dismiss
After pressing 'Mark folders' nothing happens and notification remains, also any includes in my files don't work. I have include folder with *.hrl files in the root of my project.
How can I fix it? Maybe I missed something obvious? Thanks in advance.
Hi Andrey, sorry for the long delay. I suppose that you should mark directories with headers as include folders.
@AndreyKlimchuk go to one of .erl files put mouse on '-include('my.hrl') and then it will show "find include" option
If pressing 'Mark folders' doesn't take effect, you can update <project_name>.iml
file manually.
For a folder <project_root>/include
, add into <project_root>/.idea/<project_name>.iml
:
<sourceFolder url="file://$MODULE_DIR$/include" type="erlang-include"/>
This is still relevant
Repository: Github esl/mongooseim
After importing and setting up my SDK and module, the pop up "mark include directories" quickfix appears and does nothing. Right clicking include
directory myself does not have 'Mark as include' choice there.