I am working with the Modern Fortran extension in Visual Studio Code on Windows and keep encountering a persistent issue. Despite having correctly installed findent, fortran-language-server, and fprettify using a specific Python interpreter and updating my user settings.json in VS Code to include the necessary path, the extension does not seem to recognize findent, and I continue to receive the following message:
Installing findent.exe through pip with --user option
Source: Modern Fortran
Here are the steps I've taken:
- Selected the Python interpreter inside Visual Studio Code explicitly set to
C:\Users\<userName>\AppData\Local\Programs\Python\Python312\python.exe. - Installed the required packages with the commands:
C:\Users\<userName>\AppData\Local\Programs\Python\Python312\Scripts\pip.exe install findent --userC:\Users\<userName>\AppData\Local\Programs\Python\Python312\Scripts\pip.exe install fortran-language-serverC:\Users\<userName>\AppData\Local\Programs\Python\Python312\Scripts\pip.exe install fprettify
- Added the following to my
settings.jsonto ensure the VS Code terminal recognizes the scripts installed bypip:"terminal.integrated.env.windows": {"PATH": "${env:PATH};C:\\Users\\<userName>\\AppData\\Roaming\\Python\\Scripts;"}
Despite these configurations, indentation, beautifying, and prettifying for Fortran code do not work, and I keep seeing the prompt to install findent.
Has anyone faced a similar issue, or can you offer insight into what might be missing or incorrectly configured in my setup?
