Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

Visual Studio Code Not Recognizing findent Installation for Modern Fortran Extension Despite Correct Python Interpreter and PATH Configuration

$
0
0

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

enter image description here

Here are the steps I've taken:

  1. Selected the Python interpreter inside Visual Studio Code explicitly set to C:\Users\<userName>\AppData\Local\Programs\Python\Python312\python.exe.
  2. Installed the required packages with the commands:
    • C:\Users\<userName>\AppData\Local\Programs\Python\Python312\Scripts\pip.exe install findent --user
    • C:\Users\<userName>\AppData\Local\Programs\Python\Python312\Scripts\pip.exe install fortran-language-server
    • C:\Users\<userName>\AppData\Local\Programs\Python\Python312\Scripts\pip.exe install fprettify
  3. Added the following to my settings.json to ensure the VS Code terminal recognizes the scripts installed by pip:
    "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?


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>