Open
Description
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
- init version
0.51.0
of the tfe provider - Configure a
tfe_organization
data source block without aname
argument configured - 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