-
Notifications
You must be signed in to change notification settings - Fork 182
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
Saving files hangs on "Running 'HashiCorp Terraform' Formatter" #402
Comments
Hi @aprice Thanks! |
Hi @radeksimko |
@gfdsa Feel free to encrypt it with our PGP key as per https://www.hashicorp.com/security#secure-communications and paste the encrypted log to a gist. Alternatively my email address is my first name at |
https://gist.github.com/gfdsa/a8ce789683580ed0e7998c7e3f856d04 |
I'm hitting this as well. My guess is that it's due to that method not being implemented in |
Here is a complete log from terraform-ls panel of making a change, saving the file, waiting a minute on the formatter, then clicking Cancel on the dialog:
|
I'm the same. (vscode 1.46.1, Terraform plugin 2.0.2) I think it is likely to see the error when I save the file with incorrect syntax. |
Same here, It's 100% reproducible on two terraform files within my project so I assume what @tsubasaogawa said is correct. While VSCode is showing that window I can see the |
I was seeing a similar issue where my Terraform files were not being formatted on save as I have configured in my
Terraform settings in vscode's
Versions |
I am seeing this as well MacOS |
I lied. I guess this worked once or twice for me but is no longer the case. I'm wondering if this may be due to me being on insider build and one of the nightly builds messing it up between then and now. Posting build of current vscode insiders.
|
There have been a number of fixes in the LS that possibly address what was going on here, going to close, but please let me know if you are still experiencing it and we can dig in deeper. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
VS Code:
Since updating to v2 of the plugin (specifically running v2.0.1 right now), every time I save a file, I get a toast for running the formatter that persists indefinitely without saving the file until I click Cancel, at which point it saves but does not format. I can then run
terraform fmt
on the same file without issue. Clicking "Configure" just takes me to the Terraform extension settings, which has no UI-enabled settings and just directs to edit the JSON.The Terraform output tab is empty. terraform-ls output shows this error, which relates to hashicorp/terraform-ls#137
The text was updated successfully, but these errors were encountered: