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

Schema download not working #1828

Open
1 task
stevehipwell opened this issue Aug 27, 2024 · 1 comment
Open
1 task

Schema download not working #1828

stevehipwell opened this issue Aug 27, 2024 · 1 comment
Labels
bug Something isn't working outdated-schema

Comments

@stevehipwell
Copy link

Extension Version

v2.32.2

VS Code Version

Version: 1.92.2 (system setup)
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

Operating System

Windows 11 Enterprise 23H2 OS build 22631.4037

Terraform Version

Terraform v1.9.5 on windows_amd64

Steps to Reproduce

  1. Use an argument on a resource that was added since the extension was packaged
  2. See error below

image

Expected Behavior

I expect that the extension is able to use a later schema than it's built with.

Actual Behavior

Only the schemas that were built with the extension are used.

Terraform Configuration

resource "aws_eks_cluster" "test" {
  name     = var.name
  role_arn = aws_iam_role.default.arn
  vpc_config {
    subnet_ids = var.subnet_ids
  }

  upgrade_policy {
    support_type = "STANDARD"
  }
}

Project Structure

No response

Gist

No response

Anything Else?

No response

Workarounds

No response

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
@stevehipwell stevehipwell added the bug Something isn't working label Aug 27, 2024
@ppo-38
Copy link

ppo-38 commented Aug 30, 2024

Ideally, the extension should even support the version of the provider used in the project.

In my project, I'm using an old version of the hashicorp/aws provider (4.67.0) and the extension tells me that a resource attribute is deprecated in my project because it's based on the schema of the 5.60.0 version and not the 4.67.0.

Attribute aws_cloudwatch_event_rule.is_enabled is deprecated since 5.27.0 and I would like to avoid warnings as long as I have defined a provider version < 5.27.0 in my project.

Perhaps that the extension could load the needed provider version in .terraform.lock.hcl file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working outdated-schema
Projects
None yet
Development

No branches or pull requests

3 participants