Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Nested maps are not recognized properly, variable completion does not work #388

@niedrist

Description

@niedrist

Prerequisites

  • Ensure you have latest version of plugin installed
  • Search for possible issue duplicates

Installation details

  • IDE version (Help->About->Copy to Clipboard)
IntelliJ IDEA 2021.2.3 (Ultimate Edition)
Build #IU-212.5457.46, built on October 12, 2021
  • intellij-hcl plugin version (Settings->Plugins)
    0.7.15
  • Terraform version (terraform -v)
Terraform v1.1.6
on darwin_amd64

Terraform Configuration Files

# Type specification

variable "test_var" {
  type = map(
    object({
      key1 = string
      key2 = string
    })
  )
}
# Variable access
var.test_var.some_key.key1

Exception

  • Variable completion does not work properly, key1 and key2 is not suggested after some_key
  • some_key.key1 is marked red (Unresolved reference)

Expected Behavior

Appropriate object keys should be suggested and not be marked red

Actual Behavior

See exception

Steps to Reproduce

  1. Place cursor after var.test_var.
  2. Hit your autocompletion keys (Ctrl+Space)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions