intellij-hcl
intellij-hcl copied to clipboard
Question: Behavior of this plugin regarding code completion of specific provider versions
Thank you for opening an issue. In this template paragraph text could be removed, however please retain headers.
Prerequisites
- [x] Ensure you have latest version of plugin installed
- [x] Search for possible issue duplicates
Installation details
- [x] IDE version (
Help->About->Copy to Clipboard
)
IntelliJ IDEA 2021.3 (Ultimate Edition)
Build #IU-213.5744.223, built on November 27, 2021
Runtime version: 11.0.13+7-b1751.19 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
- [x] intellij-hcl plugin version
0.7.14
- [x] Terraform version
v1.1.9
Terraform Configuration Files
resource "azurerm_linux_function_app" "function_app" {
...
site_config {
...
application_stack {
java_version = 11
}
}
[...]
}
Expected Behavior
Code completion works and no inspection hints will show up.
Actual Behavior
Hint shows with: Unknown block type site_config
. No completion available.
Question
There is the possibility to maintain the provider schema our own, wich will be used by the plugin. As far as I can see the schema generation just fetches the latest provider sources available, but the providers are pinned to certain versions at the terraform config (or at least should be).
So the question is how the schema will be maintained currently? Is it pre packaged by the plugin itself containing schema of provider versions? At least the repo https://github.com/VladRassokhin/terraform-metadata generates the metadata of the most recent provider versions.