intellij-erlang icon indicating copy to clipboard operation
intellij-erlang copied to clipboard

Mark folders as include directories doesn't work

Open AndriiKlymchuk opened this issue 5 years ago • 4 comments

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.

AndriiKlymchuk avatar Aug 18 '18 14:08 AndriiKlymchuk

Hi Andrey, sorry for the long delay. I suppose that you should mark directories with headers as include folders. image

ignatov avatar Sep 15 '18 10:09 ignatov

@AndreyKlimchuk go to one of .erl files put mouse on '-include('my.hrl') and then it will show "find include" option

alexshavelev44 avatar Jan 14 '19 12:01 alexshavelev44

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"/>

nordborn avatar Jul 25 '19 06:07 nordborn

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.

kvakvs avatar Aug 28 '19 21:08 kvakvs