bug: fprettify does nothing ? #669
-
Is there an existing issue for this?
DescriptionI have defined my formatter to use fprettify but when I "Format Document" nothing happens. If I do I haven't found any message in the output of the extension so I have no idea what is happening ScreenshotsNo response Expected Behaviourwhen I "Format Document", my document should be correctly formatted Version of Modern Fortran3.2.0 Version of Visual Studio Code1.71.0 Platform and ArchitectureArchLinux Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I don't think that's a bug, formatters are unittested on our CI. It's more likely that the settings are not being passed correctly. What settings are you using? Please check the README on how to setup formatters. |
Beta Was this translation helpful? Give feedback.
-
In the settings.json file of the workspace I have ...
"fortran.linter.compiler": "Disabled",
"fortran.formatting.formatter": "fprettify",
"fortran.formatting.path": "venv/bin/fprettify",
"fortran.formatting.fprettifyArgs": [
"-c .fprettify.rc"
],
"fortran.fortls.maxLineLength": 120,
... I tried without the fprettifyArgs, and various path for fprettify (absolute, with or without the executable name) But I haven't found any output what so ever in order to understand what is happening. |
Beta Was this translation helpful? Give feedback.
-
This is the problem, something like this should work "fortran.formatting.path": "./venv/bin", |
Beta Was this translation helpful? Give feedback.
-
Thanks, you are right. But I had another problem, I must also have "fortran.formatting.fprettifyArgs": [
"-c",
".fprettify.rc"
], Now it is working correctly. Thanks |
Beta Was this translation helpful? Give feedback.
This is the problem, something like this should work