fortran-lang/vscode-fortran-support

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

sjsmith757 opened this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

I have tried the Pre-Release of the extension.

  • I have replicated the Issue in the latest Pre-Release

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