VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Object properties unresolved - when defaults present #258

Closed pejas closed 5 years ago

pejas commented 5 years ago

Prerequisites

Installation details

Terraform Configuration Files

variable "my_obj" {
  type = object({
    name = string
    id = string
  })

  default = {
    id = "7"
  }
}

resource "null_resource" "test" {
  provider = var.my_obj.name
}

Exception

Expected Behavior

variable var.my_obj.name is recognized as valid

Actual Behavior

variable var.my_obj.name is highlighted as error with tool-tip: "Unresolved reference name"

Steps to Reproduce

  1. Create new tf with above content
  2. Comment/uncomment default block to see issue Screenshot from 2019-09-14 22-08-37 Screenshot from 2019-09-14 22-08-51
VladRassokhin commented 5 years ago

Will be available in 0.7.7