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

Incorrect module version #105

Open
1 task
iloveitaly opened this issue Dec 17, 2024 · 0 comments
Open
1 task

Incorrect module version #105

iloveitaly opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@iloveitaly
Copy link

Extension Version

0.2.1

VS Code Version

Version: 1.96.0
Commit: 138f619c86f1199955d53b4166bef66ef252935c
Date: 2024-12-11T02:29:09.626Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0

Operating System

15.1.1 (24B91)

OpenTofu Version

OpenTofu v1.8.7

Steps to Reproduce

Described below.

Expected Behavior

Pulling the correct azurerm version for syntax highlighting.

Actual Behavior

Here's my provider configuration:

terraform {
  required_providers {
    azurerm = {
      source = "hashicorp/azurerm"
      version = ">=4.14.0"
    }

    onepassword = {
      source  = "1password/onepassword"
      version = ">=2.1.2"
    }

    external = {
      source  = "hashicorp/external"
      version = ">=2.3.4"
    }
  }

OpenTofu is pulling the wrong version for azurerm and therefore giving me incorrect errors. Here's a snippet from the logs:

2024/12/17 06:15:19 rpc_logger.go:53: Response to "textDocument/documentLink" (ID 20): [{"range":{"start":{"line":45,"character":9},"end":{"line":45,"character":22}},"target":"https://registry.terraform.io/providers/1password/onepassword/1.4.3/docs?utm_content=documentLink\u0026utm_medium=Visual+Studio+Code\u0026utm_source=terraform-ls","tooltip":"1password/onepassword Documentation"},{"range":{"start":{"line":50,"character":9},"end":{"line":50,"character":18}},"target":"https://registry.terraform.io/providers/hashicorp/azurerm/3.99.0/docs?utm_content=documentLink\u0026utm_medium=Visual+Studio+Code\u0026utm_source=terraform-ls","tooltip":"hashicorp/azurerm Documentation"}]

And an example error:

image

OpenTofu Configuration

No response

Project Structure

My opentofu files are in an `infra/` folder and are not in the root project directory.

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
@iloveitaly iloveitaly added the bug Something isn't working label Dec 17, 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