VScode+fortls: #include not recongnized #353
Unanswered
tommy-engels
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I have a problem that seems to be benign, yet I could not figure out the solution myself.
My FORTRAN code uses
#include "file.f90"
directives, rather than the fortran-build-in
include("file.f90")
because the latter does not feature preprocessor directives.
However, if I open the code in visual studio code, I get many "problem" messages that are related to fortls not understanding these include statements.
In particular, I have a module:
and if I edit the file
file.f90
, VS studio complains thatglobal_variable
is not defined in the file.I realize that
fortls
should be capable of dealing with this, but I don't quite know what could go wrong and where to look. I would be grateful for any pointer!Beta Was this translation helpful? Give feedback.
All reactions