I am in the process of adding support for the fypp
preprocessor in VS Code’s Modern Fortran, see Adds `fypp` linting support by gnikit · Pull Request #591 · fortran-lang/vscode-fortran-support · GitHub.
For gfortran
it should already be complete and (fully?) functional.
What I would like to ask is for community members that heavily use fypp
to cast a reviewers eye and maybe comment on some of the pending issues or review comments I have left in the PR.
In case you want to test it for yourselves you can find the instructions in CONTRIBUTING.md, but here is also a quick summary:
Requirements
Steps
- clone and compile
git clone https://github.com/fortran-lang/vscode-fortran-support.git
cd vscode-fortran-support && git checkout feature/fypp
npm i
npm run watch-dev
- Press
F5
to launch the[Extension Development Host]
instance of VS Code, that’s where you can test the extension. - In the Extension Development Host window, do Open Folder (
Ctrl+K Ctrl+O
) in the./test/fortran/fypp
directory. Open thedemo.fypp
and do a save to get lint diagnostics
You should be able to see something like this
You can open any folder you want with in the Extension Development Host but you will have to enable in the settings.json
of VS Code the fypp
preprocessor if you want to test it i.e.
"fortran.linter.fypp.enabled": true,