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

Module autocomplete does not work on root module with private git repo as source #1604

Open
1 task
Jahsis opened this issue Jan 31, 2024 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@Jahsis
Copy link

Jahsis commented Jan 31, 2024

Language Server Version

v0.32.6

Terraform Version

Terraform v1.4.7 on linux_amd64

Client Version

NVIM v0.9.5

Terraform Configuration

module "cluster" {
  source = "git@github.com:<org>/<repo>.git//common/eks?ref=v123"

  name = "cluster1"
}

resource "aws_security_group_rule" "https" {
  type                     = "ingress"
  from_port                = 443
  to_port                  = 443
  protocol                 = "tcp"
  security_group_id        = "<sg_id>"
  source_security_group_id = module.cluster.sg_id
}

Steps to Reproduce

  1. Navigate to infrastructure folder.
  2. Run terraform init to initialize environment.
  3. Open main.tf file, navigate to source_security_group_id = module.cluster.sg_id line, remove module.cluster.sg_id part and start writing module.

Expected Behavior

After typing module. auto completion should suggest to enter cluster as module name.

Actual Behavior

It does not suggest module auto completion. Manually entering module.cluster. module outputs also is not suggested.

Gist

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
@Jahsis Jahsis added the bug Something isn't working label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant