Skip to content

fix lookup of formatters on Windows #773

Open
@michaelkonecny

Description

@michaelkonecny

The extension currently won't find fprettify or findent on Windows, unless they're installed in the system directory (%programfiles%\PythonXY\...) which requires admin privileges.

When installed with the --user argument (which is what the extension does), they're installed in %appdata%\Python\... which is typically not in PATH.

On Windows, that's where the extension should look for the executables, specifically to:

  • %appdata%\Python\bin for findent
  • %appdata%\Python\PythonXY\Scripts for fprettify

This has already been fixed for fortls lookup in PR #772, so if the request gets merged, it should be done in a similar fashion for the formatters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions