Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid circular references to complex attribute types #64

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

radeksimko
Copy link
Member

Parsing the following config would lead to the creation of circular references, which then cause a loop while copying the references in LS:

locals {
  top_obj = {
    first = {
      attr = "val"
    }
    second = {
      attr = "val"
    }
    third = {
      attr = "val"
    }
    fourth = {
      attr = "val"
    }
  }
}

@radeksimko radeksimko added the bug Something isn't working label Jul 2, 2021
@radeksimko radeksimko merged commit edd4fd2 into main Jul 2, 2021
@radeksimko radeksimko deleted the b-circular-target-refs branch July 2, 2021 13:00
radeksimko added a commit to hashicorp/terraform-ls that referenced this pull request Jul 2, 2021
radeksimko added a commit to hashicorp/terraform-ls that referenced this pull request Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant