Skip to content

Preprocessor variables not accounted for in diagnostics. #959

Discussion options

You must be logged in to vote

I understand the confusion, the diagnostics you are actually getting are from the linter, gfortran in this case, of the Modern Fortran extension. You need to specify the preprocessor flag, as a linter extra argument e.g. -DMAX_PATHLENGTH=256.
For more see https://github.com/fortran-lang/vscode-fortran-support#additional-linting-options.

P.S. I will be moving this issue and converting it to a Discussion under the https://github.com/fortran-lang/vscode-fortran-support repo where it belongs

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kc9jud
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #958 on August 04, 2023 20:37.