Open Groctel opened 3 years ago
Yep, I'm also suffering from a very similar issue. Say you're using header files from a library like /usr/include/poppler
and do #include <poppler/Annot.h>
. That header will include other headers in it's directory (e.g. #include "foo.h"
), which is totally normal behavior.
However, since ale isn't smart enough to recognize this; it will search your project directory for the foo.h
instead of /usr/include/poppler
as one would expect.
Information
VIM version
Same error with regular vim:
Operating System:
Linux grocpc 5.10.4-arch2-1 #1 SMP PREEMPT Fri, 01 Jan 2021 05:29:53 +0000 x86_64 GNU/Linux
What went wrong
I'm writing a C++ project where files are organised in different directoried. Include directories are specified in the Makefile and ALE reads them well as you can see in the
ALEInfo
. However, the linter doesn't take them into account and throws ano such file or directory
error on their#include
statement. ALEInfo also shows that the-I
option isn't used when linting the file.Reproducing the bug
-I
options in the Makefile:ALEInfo
Of course: