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

Closed
1 task
Jahsis opened this issue Jan 31, 2024 · 2 comments
Closed
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 = "[email protected]:<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
@dbanck
Copy link
Member

dbanck commented Jul 22, 2024

We have just released a new version of terraform-ls: 0.34.0 which adds support for private git repositories (for initialized environments).

I'm closing this issue as completed. In case you experience any problems, please do let us know.

@dbanck dbanck closed this as completed Jul 22, 2024
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants