vscode-fortran-support icon indicating copy to clipboard operation
vscode-fortran-support copied to clipboard

feat: add `fypp` linting support for Intel and NAG

Open gnikit opened this issue 1 year ago • 3 comments

Is there an existing request for this?

  • [X] I have searched the existing issues

Feature Request

Currently, fypp is only capable of handling stdin -> gfortran without creating any temporary files. ifort and nagfor cannot receive input from stdin hence we will have to generate the files and store them, then pass the expanded files through the linter.

This issue relies on #614 being implemented.

gnikit avatar Aug 14 '22 14:08 gnikit

You could try ifort -fpp-name=$(command -v fypp) to change the preprocessor used with the Intel compilers.

awvwgk avatar Aug 14 '22 21:08 awvwgk

You could try ifort -fpp-name=$(command -v fypp) to change the preprocessor used with the Intel compilers.

Cheers @awvwgk, will give it a go

gnikit avatar Aug 14 '22 21:08 gnikit

@awvwgk, have you tried that before? It seems like fypp will need response files before it can work: https://github.com/aradi/fypp/issues/24

ivan-pi avatar Aug 31 '22 10:08 ivan-pi