Open mystery-e204 opened 3 years ago
@manie204 BTW This has now been fixed at fortls
. I just forgot to update the issue on github.
@gnikit Thanks for bringing this to my attention. I was unaware of your fork since I haven't been coding in Fortran for a while. I will check it out and also thanks for the fix.
I have a situation like this:
It compiles and runs fine but fortls states that
q_a
on line 14 cannot be found in the scope. The problem disappears if you swap the order of the use directives in the main program.My guess is that because of the
use mod_a
on line 6, fortls does not parsemod_a
a second time in the main program. However, since onlyq_b
was included frommod_b
,q_a
never gets properly included.