-
Notifications
You must be signed in to change notification settings - Fork 180
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
Document is Open - Ignoring Event #1703
Comments
Hi @gadgetmerc, thanks for the report and your initial investigation. Can you please share the full log? Saving the file should trigger a |
Sorry for the delay. The file saved was variables.tf and I added whitespace that it should format for me.
|
It's hard to tell without the full log, but it looks like your editor is not sending a formatting request. Are the settings in your original post copied directly from your "[terraform]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
},
"[terraform-vars]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
}, |
Marking this issue as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. Thank you for understanding. |
Closing this issue due to its staleness. If the issue was automatically closed and you feel it should be reopened, we encourage creating a new one linking back to this one for added context. Thank you! |
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. |
Extension Version
v2.30.2024022914
VS Code Version
Version: 1.87.0 (Universal)
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Date: 2024-02-27T23:42:56.944Z (1 day ago)
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.3.0
Operating System
14.3.1 (23D60)
Terraform Version
Terraform v1.5.4 on darwin_amd64
Steps to Reproduce
Expected Behavior
The expected behavior is that the file will be formatted. I reference one file in this example but its across any TF projects I have.
Actual Behavior
No formatting is done. Looking at the output of "hashicorp terraform" i see messages like the one below. I have verified that i don't have the files open in another vscode project/window or even open in vi. lsof doesn't show it opened by anything. Not sure why its skipping the file. Running terraform fmt from the command line formats the file as expected by the vs-code plugin.
I have tried disabling all other plugins and restarting my laptop. Running out of things to try.
2024/02/29 11:30:43 rpc_logger.go:32: Incoming notification for "workspace/didChangeWatchedFiles": {"changes":[{"uri":"file:///Users/user.name/git/terraform-pmr/terraform-vp-user-profile/aurora.tf","type":2}]}
2024/02/29 11:30:43 did_change_watched_files.go:159: document is open - ignoring event for "file:///Users/user.name/git/terraform-pmr/terraform-vp-user-profile/aurora.tf"
Terraform Configuration
Project Structure
Gist
No response
Anything Else?
No response
Workarounds
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: