Closed ktasper closed 2 years ago
Update:
Just fixed it, its amazing what filing a bug report can do for my own troubleshooting!
The language association was set to hcl
which I thought was correct, but it needed to be set to terraform
and now it works.
The language association was set to hcl which I thought was correct, but it needed to be set to terraform and now it works.
I will just add that the best practice we recommend to follow is not to change the default file associations. The extension should be able to figure this out automatically as per https://github.com/hashicorp/vscode-terraform/blob/bd7035aea6509e6c744a441eca6fe9c02290dc06/package.json#L54-L72
Also we have plans to soon address the other (not Terraform) HCL files via https://github.com/hashicorp/vscode-terraform/issues/639
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
Intellisense / Autocomplete should work As in attached screenshot I should get a autocomplete option for
resource
Actual Behavior
Nothing happens
Other Notes
I have had this mac for a few months now and always had this issue. I only have found time to file this report.
I have tried both the
arm
and theamd
versions of terraform with no luck. Alsobrew
where it puts it in/opt/brew/bin/terraform
.Installing
terraform-ls
viabrew install terraform-ls
does not fix it.