You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you share some more details about your Terraform installation? Specifically how did you install it? Do you use tfenv? There's a known issue upstream which causes all commands to be delayed, see terraform executions delayed by ~ 1 second tfutils/tfenv#196
Can you reproduce this with the same Terraform version downloaded from our Homebrew tap or directly from here?
Can you share the log from Output > HashiCorp Terraform? We're interested in any lines around textDocument/formatting requests and responses (and especially the requests and responses themselves).
Can you try formatting the same document yourself via cat file.tf | terraform fmt - and check how long that takes?
I thought I searched enough but couldn't come across tfenv issue apparently.
Standalone installation solved the problem for me.
For the future, I'll be following tfenv issue.
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Versions
This bug is reproducible in:
Extension
Language Server
VS Code
Operating System
Terraform Version
Steps To Reproduce
Expected Behavior
Format the file and save immediately.
Actual Behavior
Every single time the following popup appears and saving files takes 15s to 30s every single save.

Additional context
settings.json
I've removed all the extensions and reinstalled Hashicorp Terraform only but didn't help at all. These are the extension I currently have.
The text was updated successfully, but these errors were encountered: