Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix lookup of formatters on Windows #773

Open
michaelkonecny opened this issue Dec 10, 2022 · 1 comment
Open

fix lookup of formatters on Windows #773

michaelkonecny opened this issue Dec 10, 2022 · 1 comment

Comments

@michaelkonecny
Copy link

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.

@Milagr0s
Copy link

yes,I add %appdata%\Python\bin in User Level Path,and move it in top, then the extension find findent.exe
by the way,I add "fortran.formatting.path": "",it seems doesnt work,my pc install two python.exe,maybe find another python.exe
hopeful my experience useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants