fortran-lang / vscode-fortran-support

Fortran language support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=fortran-lang.linter-gfortran
MIT License
221 stars 30 forks source link

bug: modern fortran extension cannot find fprettify even when pointed directly to it (Linux) #1142

Closed sjsmith757 closed 2 months ago

sjsmith757 commented 2 months ago

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: 1) Install fortls and fprettify via conda 2) Install Modern Fortran pre-release 3) load the conda environment 3b) Optional, modify settings.json to point to the fprettify binary 4) try to format a file

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.json fortran.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

image

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