bug: modern fortran extension cannot find fprettify even when pointed directly to it (Linux) #1144
Unanswered
sjsmith757
asked this question in
Q&A - deprecated see Fortran Discourse
Replies: 1 comment
-
Conda and generally all virtualisations of Python are not supported by Modern Fortran since we would have to include similar logic to the ms-python extension, and I don't have the bandwidth to do this at the moment, although it is part of my TODOs for the extension. Have you tried using a globally discoverable (i.e. in your conda activate lf
code . This would make fprettify, fortls, etc. discoverable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an existing issue for this?
I have tried the Pre-Release of the extension.
Description
Modern Fortran v3.4.2024090901
fortls v3.1.2
fprettify v0.3.7
Steps to reproduce:
3b) Optional, modify settings.json to point to the fprettify binary
Currently, I am unable to format files using fprettify through the extension. I can format files without issue using
fprettify foo.f90
. I have tried using both the default location which is in my$PATH
, or modifying the settings.jsonfortran.formatting.path
, but it cannot find fprettify in either case, even though it is there and working fine. According to the Log Channel, it is even seeing my modifications to the settings.json (I have tried restarting VS Code after modifying the file). However, the attempt to install (even though it is already there) always fails (because it is installed). And so the problem is never resolved, and the formatter never runs.Screenshots
Expected Behaviour
File to be formatted using fprettify
Version of Modern Fortran
v3.4.2024090901
Version of Visual Studio Code
v1.93.0
Platform and Architecture
Linux
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions