Skip to content

Many official providers have outdated schemas that are breaking changes #2001

@danielskowronski

Description

@danielskowronski

Language Server Version

v0.36.5

Terraform Version

Terraform v1.12.2 on darwin_arm64

Client Version

VS Code

Terraform Configuration

resource "helm_release" "nginx_ingress" {
  name       = "nginx-ingress-controller"
  repository = "https://charts.bitnami.com/bitnami"
  chart      = "nginx-ingress-controller"

  set = [
    {
      name  = "service.type"
      value = "ClusterIP"
    }
  ]
}

Steps to Reproduce

  1. Use any of freshly released official providers that are using Terraform Plugin Framework, for example helm 3.0.2
  2. Adopt new required syntax

Expected Behavior

terraform-ls is either:

  • rebuilt immediately every time official provider has breaking change introduced and bundled into new version of vscode-terraform
  • capable of updating schemas itself, as users do not naturally expect it to be offline version of registry in one binary that is bundled with NPM package of VS Code plugin

Actual Behavior

  • terraform-ls is claiming syntax is incorrect while terraform binary claims otherwise (see referenced issues)
  • it identifies last version of provider it knows about and not one that is discoverable by terraform provider schema

Gist

No response

Workarounds

No response

References

Growing list of issues under https://github.com/hashicorp/vscode-terraform/issues?q=is%3Aissue%20state%3Aopen%20%22not%20expected%22 that are ignored, because problem is not with VS Code extension.

Examples:

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions