Skip to content

Terraform LS 0.32.4 - tfe provider 0.51.0 - tfe_organization data source - LS not accounting for changes that occurred in this version #1523

Open
@zisom-hc

Description

@zisom-hc

Language Server Version

v0.32.4

Terraform Version

1.6.6

Client Version

VS Code 1.85.0

Terraform Configuration

terraform {
  required_providers {
    tfe = {
      source  = "hashicorp/tfe"
      version = "~> 0.51.0"
    }
  }
}

data "tfe_organization" "test-company" {
}

Steps to Reproduce

  1. init version 0.51.0 of the tfe provider
  2. Configure a tfe_organization data source block without a name argument configured
  3. Observe the error that LS states

Expected Behavior

LS should recognize that in version 0.51.0 of the tfe provider, a change was made to this data source where the name argument went from being required to optional in tfe 0.51.0

d/tfe_organization: Make name argument optional if configured for the provider, by @tmatilai hashicorp/terraform-provider-tfe#1133

Actual Behavior

LS states: Required attribute "name" not specified: An attribute named "name" is required here

Gist

No response

Workarounds

You can perform a terraform plan/apply without issue, so the error is just misleading, not blocking operations from occurring.

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions