intellij-hcl
intellij-hcl copied to clipboard
False positive in terraform.tfvars
A bit more context maybe?
Context:
tfvars file resides in another directory and connected as --env-file terarform.tfvars
to Terraform incocations.
Still having Undefined variable '...'
when my .tfvars are in a directory and used via terraform apply -var-file=environments/dev.tfvars
environments/
dev.tfvars
prod.tfvars
test.tfvars
main.tf
Probably related to Issue 74
@VladRassokhin: This issue still exists in PyCharm's Hashicorp Terraform/HCL Language Support plugin 0.7.10(for terraform version 0.13)
Variables in the tfvars file should not be dependent or associated with the terraform variables.tf file.
@VladRassokhin I'm still seeing this issue on PyCharm with the plugin version of 0.7.10
@VladRassokhin still an issue. Seeing it in Intellij Ultiimate
I'm also facing this issue with IntelliJ IDEA 2021.1.3 (Ultimate Edition). Is there any plan to fix this? Thanks
Same issue in Intellij Ultimate 2022.01
I've reported this on the jetbrains issue tracker as this one is no longer used: https://youtrack.jetbrains.com/issue/IDEA-299959/Terraform-support-tfvars-in-different-folder