Skip to content

After updating module to use new version, intellisense for module variables is wrong #1956

Open
@green3g

Description

@green3g

Language Server Version

0.36.4

Terraform Version

Terraform v1.11.1 on darwin_arm64

Client Version

vscode HashiCorp Terraform 2.34.3 (2025-01-22)

Terraform Configuration

module "api" {
  source  = "gitlab.com/developer/ecs-service/local"
  version = "4.0.0"
  ...variables

Steps to Reproduce

  1. Start with a simple module with an input variable. Publish it as a version to a registry.
  2. Reference it in your project and use the existing variables
  3. Update the module - modify input variables, add or remove some variables. Publish a new version to a registry.
  4. Re-reference the new version in your project and try to use the variables again.
  5. The terraform plugin still references the old version's variables and now gives errors when trying to edit the code.

Expected Behavior

The extension should look at the most recent version installed for the module.

Actual Behavior

The extension uses the old - maybe cached version of the module?

Gist

No response

Workarounds

I haven't found one yet - just wondering if this is an issue others are seeing, or if this workflow works for others.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions