Skip to content

findent.exe not callable on Windows 10. #526

@himcraft

Description

@himcraft

When I used the key shortcut Shift+Alt+F or clicked 'Format Document' from right-click menu, the extension prompted 'Installing findent.exe through pip with --user option'. After I selected 'install' option, nothing happens, the formatter is still not working.

The output from the terminal is

["INFO" - 00:23:51] Formatter located in: C:\\Users\\dude\\AppData\\Roaming\\Python\\bin\\findent.exe
["WARN" - 00:23:51] Formatter: findent.exe not detected in your system.
                                    Attempting to install now.

After choose 'install', the output gives

["INFO" - 00:23:56] pip install --user --upgrade findent.exe:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
["INFO" - 00:23:56] pip install was successful

I did install the findent using pip with or without --user option, and I changed the path in settings ending with or without .exe. But they did not help. I wonder where did I set wrong. Thanks.


The relating settings are

"fortran.fortls.path": "D:\\\\ProgramFiles\\\\python3_9\\\\Scripts\\\\fortls.exe",
"fortran.formatting.path": "C:\\\\Users\\\\1014h\\\\AppData\\\\Roaming\\\\Python\\\\bin\\\\findent.exe"

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