intellij-hcl icon indicating copy to clipboard operation
intellij-hcl copied to clipboard

False positive in terraform.tfvars

Open throwable-one opened this issue 5 years ago • 9 comments

var

throwable-one avatar Mar 29 '19 18:03 throwable-one

A bit more context maybe?

VladRassokhin avatar Mar 29 '19 19:03 VladRassokhin

Context: tfvars file resides in another directory and connected as --env-file terarform.tfvars to Terraform incocations.

VladRassokhin avatar Apr 30 '19 11:04 VladRassokhin

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

akorp avatar Nov 28 '19 10:11 akorp

@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.

mehulgogri avatar Aug 27 '20 18:08 mehulgogri

@VladRassokhin I'm still seeing this issue on PyCharm with the plugin version of 0.7.10

guidodobboletta avatar Nov 09 '20 21:11 guidodobboletta

@VladRassokhin still an issue. Seeing it in Intellij Ultiimate

dreinhardt89 avatar Apr 05 '22 18:04 dreinhardt89

I'm also facing this issue with IntelliJ IDEA 2021.1.3 (Ultimate Edition). Is there any plan to fix this? Thanks

andresmiguel avatar Apr 22 '22 18:04 andresmiguel

Same issue in Intellij Ultimate 2022.01

teu avatar Aug 02 '22 12:08 teu

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

timja avatar Aug 15 '22 09:08 timja