-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Installing findent through pip with --user option #582
Comments
Hi @ggerber please follow the instructions on the reporting a bug template and provide additional information on how to replicate the issue. Btw we are not responsible for authoring findent. This is the repo findent repo to report bugs to https://github.com/wvermin/findent |
Describe the bugEvery time I try to save the following file with unmatched indentation
I get the VS Code message: "Installing findent through pip with --user option" I also observe the following uncaught error logged in the runtime status of the Modern Fortran extension: To ReproduceFrom the commandline:
Open VSCode
Create the following file hello.f90
In the editor for the file hello.f90 press ctrl+s to save. In the editor for the file hello.f90 press ctrl+s to save. In the editor for the file hello.f90 press ctrl+s to save. repeat Expected behavior
PriorityP2 - cumbersome to manually fix indentation Desktop
|
The formatter, both the installing and spawning have tests in the extension so they work as expected. I also did a sanity check now and I can confirm that as well. I think there is a lot to unpack here, but my guess would be that there is something wrong with your installation either vscode or Modern Fortran.
This should trigger if you don't have {
// location of the findent binary, note: do not add `findent` in the end
"fortran.formatting.path": "./custom/path/venv/bin"
}
I can't replicate that. Could be happening for any number of reasons, all most likely unrelated to the actual extension. My guess is that you have old versions of the extensions cached in your system, or your vscode cache needs purging.
Looks like you have format on save (or some other editor event) enabled when it comes to formatting. Since I can't replicate any of your issues, you will need to disable and bring the VS Code installation and Modern Fortran installation as close to default as possible. The start enabling your own settings to see what causes this. Check your installed vscode extensions |
Thank you @gnikit |
Glad to hear it @ggerber. I might have to change the way you are allowed to pass your formatting binary to vscode. I initially coded it that way, concatenating the binary name, to ensure that when you do input It would appear that is confusing and users seem to expect that this option should be the full binary path. I think I might have to redesign the settings to something closer to Python's extension that does something similar. I'll be closing this now, glad you were able to resolve it. |
I installed fortls v2.12.0 and findent v4.2.0 with pip on ubuntu 21.10.
findent is located at ~/.local/bin/findent
fortls is located at ~/.local/bin/fortls
~/.local/bin is on my PATH
I installed the Modern Fortran v3.2.0 extension in VSCode.
Every time I try to save the following file with unmatched indentation
I get the VS Code message: "Installing findent through pip with --user option"
The indentation is not fixed on the "end program hello" line
The text was updated successfully, but these errors were encountered: