intellij-hcl
intellij-hcl copied to clipboard
Autocomplete for object variables in modules
Prerequisites
- [x] Ensure you have latest version of plugin installed --> 0.7.9
- [x] Search for possible issue duplicates
Installation details
- [x] IDE version:
IntelliJ IDEA 2020.1.1 (Community Edition) Build #IC-201.7223.91, built on April 30, 2020 Runtime version: 11.0.6+8-b765.40 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15.4 GC: ParNew, ConcurrentMarkSweep Memory: 1981M Cores: 8 Non-Bundled Plugins: DBN, com.vladsch.idea.multimarkdown, net.seesharpsoft.intellij.plugins.csv, org.intellij.plugins.hcl, BashSupport`
- [x] intellij-hcl plugin version: 0.7.9
- [x] Terraform version (
terraform -v
): Terraform v0.12.24
Terraform Configuration Files
In module:
variable "ingress_function" {
type = object({
available_memory_mb = string,
timeout = number,
})
}
Using the module:
module "customer" {
source = "../modules/customer"
ingress_function = {
}
}
Exception
No suggestions
Expected Behavior
On pressing Cmd+Space, a list of of possible values should come up (e.g. available_memory_mb
, timeout
).
Actual Behavior
The text No suggestions
appears
Steps to Reproduce
- Place cursor inside the
ingress_function
block - Invoke completion.
Hey there, As a matter of fact, I have 0.7.8 on another computer and the auto-completion is also limited. From a main.tf / root module, I get auto-completion for my module and it's direct outputs
module.network.vpc OK
but nothing when going more in-depth :
module.network.vpc.id NOT WORKING
module.network.sub-module.subnet NOT WORKING
module.network.sub-module.subnet.id NOT WORKING
As my terraform project become bigger and more complicated, not having full auto-completion is becoming a more pressing issue :scream:
I have same issue on one machine, but on the other it works fine. Any suggestions about settings or logs to check? Any implicit requirements?