-
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
Fmt on save not working with vscode 1.11.1 #16
Comments
I'm seeing the same thing with 0.0.7 using Code 1.11.1 |
Sorry for the breakage, however this is a bit weird as it works on My terraform settings are:
It works for both Can you please post your settings? Is it broken for all terraform files or for just |
Huh! Looks like It's working now that I changed the setting.. but I wonder how/why it got swapped? Edit: to be more clear - I was relying on the defaults and had no local setting overrides. |
My user settings are "terraform.path": "/usr/local/bin/terraform",
"terraform.formatOnSave": true,
"terraform.formatVarsOnSave": true, and I still can't format on save. :( VsCode 1.11.1 EDIT: I discovered my problem. There seems to be some sort of conflict with this plugin: https://marketplace.visualstudio.com/items?itemName=wholroyd.HCL This plugin provides syntax highlighting for all HCL files, including terraform files. These were working together previous to the release of 0.0.7. @mauve , would it be possible to maintain that harmony? I don't like having to disable the HCL plugin so formatOnSave will work. :( |
the default configuration for @andrewmeissner do you only need the other plugin because it also handles |
I confirm @andrewmeissner answer, vscode-terraform and wholroyd.HCL can't work together anymore. It was working before. |
I don't remember why I have wholroyd.HCL installed. I have disabled it and I am fine. |
I just released a version which also handles .hcl files, if I got this correctly the only thing missing from the Terraform plugin was that, I will close this bug now. Thanks for reporting! |
@andrewmeissner workaround here #18 (comment) |
Hi,
Thanks for the good work on this extension.
Since the last update of vscode, the fmt on save doesn't work anymore. I have update to 0.0.7 and added
"terraform.formatOnSave": true
to my use settings.My coworker has the same problem.
Laurent.
The text was updated successfully, but these errors were encountered: