Skip to content

Can not find any references, attributes #8

@johan-von-essen

Description

@johan-von-essen

I installed latest version of Zed from scratch (0.210.4).

When I opened a .tf-file, I installed the Terraform extension as suggested.

~/Library/Application Support/Zed/extensions/installed/terraform  ❯ cat extension.toml
id = "terraform"
name = "Terraform"
version = "0.1.5"
schema_version = 1
description = "Terraform support."
repository = "https://github.com/zed-extensions/terraform"
authors = ["Caius Durling <dev@caius.name>", "Daniel Banck <dbanck@users.noreply.github.com>"]
themes = []
icon_themes = []
languages = ["languages/terraform-vars", "languages/terraform", "languages/hcl"]
capabilities = []

[lib]
kind = "Rust"
version = "0.1.0"

[grammars.hcl]
repository = "https://github.com/MichaHoffmann/tree-sitter-hcl"
rev = "e936d3fef8bac884661472dce71ad82284761eb1"

[language_servers.terraform-ls]
languages = ["Terraform", "Terraform Vars"]
code_action_kinds = []

[language_servers.terraform-ls.language_ids]
Terraform = "terraform"
"Terraform Vars" = "terraform-vars"

[context_servers]

[slash_commands]

[indexed_docs_providers]

ERROR

I am trying to understand why I cannot find any references.

"Go to definition" does not work on anything.

The Zed logs fill up with the following kind of errors

2025-11-05T13:46:07+01:00 WARN  [project::lsp_store] Get definition via terraform-ls failed: no reference origin found

2025-11-05T13:49:04+01:00 WARN  [project::lsp_store] Get hover via terraform-ls failed: S3-fiberop.tf (31,36): unknown attribute "user"

2025-11-05T13:49:08+01:00 WARN  [project::lsp_store] Get hover via terraform-ls failed: S3-fiberop.tf (42,45): unknown attribute "policy"

2025-11-05T13:49:16+01:00 ERROR [project::lsp_store] Get hover via terraform-ls failed: ECR-github-workflows.tf (38,42): unknown attribute "policy_arn"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions