hashicorp / terraform-ls

Terraform Language Server
Mozilla Public License 2.0
991 stars 130 forks source link

Unexpected Attribute in tfvars #1838

Open theherk opened 1 week ago

theherk commented 1 week ago

Language Server Version

0.34.3+Homebrew

Terraform Version

Terraform v1.6.6 on darwin_arm64

Client Version

NVIM v0.10.1

Terraform Configuration

variable "cname_records" {
  type        = map(string)
  description = "Map of CNAME records, where key is the domain and value is the record value."
}

cname_records = {
  "_cea53b5cd872a2d2d966a339ae031d59.foo.no." = "_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws."
}

Steps to Reproduce

  1. Define the variable in variables.tf.
  2. Set the variable in terraform.tfvars.

Expected Behavior

I expect not to get any errors, as this is a correct and working configuration.

Actual Behavior

Receive the error Unexpected attribute: An attribute named "cname_records" is not expected here.

Gist

No response

Workarounds

No response

References

No response

Help Wanted

Community Note

dbanck commented 1 week ago

Hi @theherk, thanks for the report! Unfortunately I can't reproduce the bug right away.

In a single directory with two files, everything seems to work as expected. CleanShot 2024-10-07 at 14 05 45@2x

Can you share the LSP log?

theherk commented 1 week ago

Sure, given the basic directory with contents:

variables.tf

variable "cname_records" {
  type        = map(string)
  description = "Map of CNAME records, where key is the domain and value is the record value."
}

terraform.tfvars

cname_records = {
  "_cea53b5cd872a2d2d966a339ae031d59.foo.no." = "_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws."
}

The resulting lsp.log is:

Details ``` [START][2024-10-07 14:17:54] LSP logging initiated [INFO][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:731 "Starting RPC client" { cmd = { "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls", "serve" }, extra = { cwd = "/Users/h4s/projects/github.com/theherk/terraform-ls-1838" }} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 1, jsonrpc = "2.0", method = "initialize", params = { capabilities = { general = { positionEncodings = { "utf-16" } }, textDocument = { callHierarchy = { dynamicRegistration = false }, codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = true, isPreferredSupport = true, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown", "plaintext" }, insertReplaceSupport = true, insertTextModeSupport = { valueSet = { 1, 2 } }, labelDetailsSupport = true, preselectSupport = true, resolveSupport = { properties = { "documentation", "detail", "additionalTextEdits", "sortText", "filterText", "insertText", "textEdit", "insertTextFormat", "insertTextMode" } }, snippetSupport = true, tagSupport = { valueSet = { 1 } } }, completionItemKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } }, completionList = { itemDefaults = { "commitCharacters", "editRange", "insertTextFormat", "insertTextMode", "data" } }, contextSupport = true, dynamicRegistration = false, insertTextMode = 1 }, declaration = { linkSupport = true }, definition = { dynamicRegistration = true, linkSupport = true }, diagnostic = { dynamicRegistration = false }, documentHighlight = { dynamicRegistration = false }, documentSymbol = { dynamicRegistration = false, hierarchicalDocumentSymbolSupport = true, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, formatting = { dynamicRegistration = true }, hover = { contentFormat = { "markdown", "plaintext" }, dynamicRegistration = true }, implementation = { linkSupport = true }, inlayHint = { dynamicRegistration = true, resolveSupport = { properties = { "textEdits", "tooltip", "location", "command" } } }, publishDiagnostics = { dataSupport = true, relatedInformation = true, tagSupport = { valueSet = { 1, 2 } } }, rangeFormatting = { dynamicRegistration = true }, references = { dynamicRegistration = false }, rename = { dynamicRegistration = true, prepareSupport = true }, semanticTokens = { augmentsSyntaxTokens = true, dynamicRegistration = false, formats = { "relative" }, multilineTokenSupport = false, overlappingTokenSupport = true, requests = { full = { delta = true }, range = false }, serverCancelSupport = false, tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" }, tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } }, signatureHelp = { dynamicRegistration = false, signatureInformation = { activeParameterSupport = true, documentationFormat = { "markdown", "plaintext" }, parameterInformation = { labelOffsetSupport = true } } }, synchronization = { didSave = true, dynamicRegistration = false, willSave = true, willSaveWaitUntil = true }, typeDefinition = { linkSupport = true } }, window = { showDocument = { support = true }, showMessage = { messageActionItem = { additionalPropertiesSupport = false } }, workDoneProgress = true }, workspace = { applyEdit = true, configuration = true, didChangeConfiguration = { dynamicRegistration = false }, didChangeWatchedFiles = { dynamicRegistration = true, relativePatternSupport = true }, inlayHint = { refreshSupport = true }, semanticTokens = { refreshSupport = true }, symbol = { dynamicRegistration = false, symbolKind = { valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } } }, workspaceEdit = { resourceOperations = { "rename", "create", "delete" } }, workspaceFolders = true } }, clientInfo = { name = "Neovim", version = "0.10.1" }, initializationOptions = vim.empty_dict(), processId = 49877, rootPath = "/Users/h4s/projects/github.com/theherk/terraform-ls-1838", rootUri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838", trace = "off", workDoneToken = "1", workspaceFolders = { { name = "/Users/h4s/projects/github.com/theherk/terraform-ls-1838", uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838" } } }} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 1, jsonrpc = "2.0", result = { capabilities = { codeActionProvider = { codeActionKinds = { "source.formatAll.terraform" } }, codeLensProvider = vim.empty_dict(), completionProvider = { resolveProvider = true, triggerCharacters = { ".", "[" } }, declarationProvider = true, definitionProvider = true, documentFormattingProvider = true, documentLinkProvider = vim.empty_dict(), documentSymbolProvider = true, executeCommandProvider = { commands = { "terraform-ls.module.callers", "terraform-ls.module.calls", "terraform-ls.module.providers", "terraform-ls.module.terraform", "terraform-ls.rootmodules", "terraform-ls.terraform.init", "terraform-ls.terraform.validate" }, workDoneProgress = true }, experimental = { referenceCountCodeLens = false, refreshModuleCalls = false, refreshModuleProviders = false, refreshTerraformVersion = false }, hoverProvider = true, referencesProvider = true, semanticTokensProvider = { full = true, legend = { tokenModifiers = { "defaultLibrary" }, tokenTypes = { "enumMember", "function", "keyword", "number", "parameter", "property", "string", "type", "variable" } } }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = vim.empty_dict() }, workspace = { fileOperations = vim.empty_dict(), workspaceFolders = { changeNotifications = "workspace/didChangeWorkspaceFolders", supported = true } }, workspaceSymbolProvider = true }, serverInfo = { name = "terraform-ls", version = "0.34.3" } }} [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 serve_command.go:108: Starting terraform-ls 0.34.3\n2024/10/07 14:17:54 service.go:116: Preparing new session ...\n2024/10/07 14:17:54 langserver.go:102: Starting server (pid 49994; concurrency: 5) ...\n2024/10/07 14:17:54 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:54 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:54 rpc_logger.go:32: Incoming request for "initialize" (ID 1): {"capabilities":{"window":{"workDoneProgress":true,"showMessage":{"messageActionItem":{"additionalPropertiesSupport":false}},"showDocument":{"support":true}},"general":{"positionEncodings":["utf-16"]},"workspace":{"symbol":{"dynamicRegistration":false,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"semanticTokens":{"refreshSupport":true},"workspaceEdit":{"resourceOperations":["rename","create","delete"]},"didChangeConfiguration":{"dynamicRegistration":false},"configuration":true,"inlayHint":{"refreshSupport":true},"applyEdit":true,"workspaceFolders":true,"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true}},"textDocument":{"rangeFormatting":{"dynamicRegistration":true},"diagnostic":{"dynamicRegistration":false},"semanticTokens":{"dynamicRegistration":false,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],"requests":{"full":{"delta":true},"range":false},"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"augmentsSyntaxTokens":true,"serverCancelSupport":false,"multilineTokenSupport":false,"overlappingTokenSupport":true,"formats":["relative"]},"completion":{"dynamicRegistration":false,"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"completionItem":{"tagSupport":{"valueSet":[1]},"resolveSupport":{"properties":["documentation","detail","additionalTextEdits","sortText","filterText","insertText","textEdit","insertTextFormat","insertTextMode"]},"labelDetailsSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"insertReplaceSupport":true,"deprecatedSupport":true,"preselectSupport":true,"commitCharactersSupport":true,"snippetSupport":true,"documentationFormat":["markdown","plaintext"]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]},"insertTextMode":1,"contextSupport":true},"documentSymbol":{"dynamicRegistration":false,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"implementation":{"linkSupport":true},"synchronization":{"dynamicRegistration":false,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"documentHighlight":{"dynamicRegistration":false},"references":{"dynamicRegistration":false},"signatureHelp":{"dynamicRegistration":false,"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"]}},"formatting":{"dynamicRegistration":true},"declaration":{"linkSupport":true},"typeDefinition":{"linkSupport":true},"definition":{"linkSupport":true,"dynamicRegistration":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["textEdits","tooltip","location","command"]}},"rename":{"dynamicRegistration":true,"prepareSupport":true},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"codeAction":{"dynamicRegistration":true,"dataSupport":true,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"callHierarchy":{"dynamicRegistration":false},"publishDiagnostics":{"tagSupport":{"valueSet":[1,2]},"dataSupport":true,"relatedInformation":true}}},"processId":49877,"workDoneToken":"1","trace":"off","rootUri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838","clientInfo":{"name":"Neovim","version":"0.10.1"},"rootPath":"\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838","initializationOptions":{},"workspaceFolders":[{"name":"\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838","uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838"}]}\n2024/10/07 14:17:54 scheduler.go:56: launching eval loop 0\n2024/10/07 14:17:54 service.go:487: started low priority scheduler\n2024/10/07 14:17:54 scheduler.go:56: launching eval loop 0\n2024/10/07 14:17:54 service.go:492: started high priority scheduler\n2024/10/07 14:17:54 discover.go:21: bus: "feature.rootmodules" subscribed to OnDiscover\n2024/10/07 14:17:54 did_open.go:27: bus: "feature.rootmodules" subscribed to OnDidOpen\n2024/10/07 14:17:54 manifest_change.go:23: bus: "feature.rootmodules" subscribed to OnManifestChange\n2024/10/07 14:17:54 lockfile_change.go:23: bus: "feature.rootmodules" subscribed to OnPluginLockChange\n2024/10/07 14:17:54 discover.go:21: bus: "feature.modules" subscribed to OnDiscover\n2024/10/07 14:17:54 did_open.go:27: bus: "feature.modules" subscribed to OnDidOpen\n2024/10/07 14:17:54 did_change.go:24: bus: "feature.modules" subscribed to OnDidChange\n2024/10/07 14:17:54 did_change_watched.go:27: bus: "feature.modules" subscribed to OnDidChangeWatched\n2024/10/07 14:17:54 discover.go:21: bus: "feature.variables" subscribed to OnDiscover\n2024/10/07 14:17:54 did_open.go:27: bus: "feature.variables" subscribed to OnDidOpen\n2024/10/07 14:17:54 did_change.go:24: bus: "feature.variables" subscribed to OnDidChange\n2024/10/07 14:17:54 did_change_watched.go:27: bus: "feature.variables" subscribed to OnDidChangeWatched\n2024/10/07 14:17:54 discover.go:21: bus: "feature.stacks" subscribed to OnDiscover\n2024/10/07 14:17:54 did_open.go:27: bus: "feature.stacks" subscribed to OnDidOpen\n2024/10/07 14:17:54 did_change.go:24: bus: "feature.stacks" subscribed to OnDidChange\n2024/10/07 14:17:54 did_change_watched.go:27: bus: "feature.stacks" subscribed to OnDidChangeWatched\n2024/10/07 14:17:54 walker_paths.go:255: walking next dir: {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 rpc_logger.go:53: Response to "initialize" (ID 1): {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":[".","["],"resolveProvider":true},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"declarationProvider":true,"definitionProvider":true,"referencesProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["source.formatAll.terraform"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"executeCommandProvider":{"commands":["terraform-ls.module.callers","terraform-ls.module.calls","terraform-ls.module.providers","terraform-ls.module.terraform","terraform-ls.rootmodules","terraform-ls.terraform.init","terraform-ls.terraform.validate"],"workDoneProgress":true},"semanticTokensProvider":{"legend":{"tokenTypes":["enumMember","function","keyword","number","parameter","property","string","type","variable"],"tokenModifiers":["defaultLibrary"]},"full":true},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"},"fileOperations":{}},"experimental":{"referenceCountCodeLens":false,"refreshModuleProviders":false,"refreshModuleCalls":false,"refreshTerraformVersion":false}},"serverInfo":{"name":"terraform-ls","version":"0.34.3"}}\n2024/10/07 14:17:54 opts.go:215: Completed 1 requests [908.959µs elapsed]\n2024/10/07 14:17:54 discover.go:26: bus: -> Discover /Users/h4s/projects/github.com/theherk/terraform-ls-1838\n2024/10/07 14:17:54 walker.go:204: skipping ignored dir name: .git\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 walker.go:217: walking of {file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838} finished\n2024/10/07 14:17:54 events.go:30: discovered module file in /Users/h4s/projects/github.com/theherk/terraform-ls-1838\n2024/10/07 14:17:54 walker.go:145: walker: walking through {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} finished\n2024/10/07 14:17:54 events.go:23: discovered variable file in /Users/h4s/projects/github.com/theherk/terraform-ls-1838\n' [INFO][2024-10-07 14:17:54] ...m/lsp/client.lua:620 "LSP[null-ls]" "server_capabilities" { server_capabilities = { codeActionProvider = { resolveProvider = false }, completionProvider = { allCommitCharacters = {}, completionItem = { labelDetailsSupport = true }, resolveProvider = false, triggerCharacters = { ".", ":", "-" } }, documentFormattingProvider = true, documentRangeFormattingProvider = true, executeCommandProvider = { commands = { "NULL_LS_CODE_ACTION" } }, hoverProvider = true, textDocumentSync = { change = 1, openClose = true, save = { includeText = true } } }} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { jsonrpc = "2.0", method = "initialized", params = vim.empty_dict()} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "terraform", text = 'cname_records = {\n "_cea53b5cd872a2d2d966a339ae031d59.foo.no." = "_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws."\n}\n', uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars", version = 0 } }} [DEBUG][2024-10-07 14:17:54] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 2, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [INFO][2024-10-07 14:17:54] ...m/lsp/client.lua:620 "LSP[terraformls]" "server_capabilities" { server_capabilities = { codeActionProvider = { codeActionKinds = { "source.formatAll.terraform" } }, codeLensProvider = vim.empty_dict(), completionProvider = { resolveProvider = true, triggerCharacters = { ".", "[" } }, declarationProvider = true, definitionProvider = true, documentFormattingProvider = true, documentLinkProvider = vim.empty_dict(), documentSymbolProvider = true, executeCommandProvider = { commands = { "terraform-ls.module.callers", "terraform-ls.module.calls", "terraform-ls.module.providers", "terraform-ls.module.terraform", "terraform-ls.rootmodules", "terraform-ls.terraform.init", "terraform-ls.terraform.validate" }, workDoneProgress = true }, experimental = { referenceCountCodeLens = false, refreshModuleCalls = false, refreshModuleProviders = false, refreshTerraformVersion = false }, hoverProvider = true, referencesProvider = true, semanticTokensProvider = { full = true, legend = { tokenModifiers = { "defaultLibrary" }, tokenTypes = { "enumMember", "function", "keyword", "number", "parameter", "property", "string", "type", "variable" } } }, signatureHelpProvider = { triggerCharacters = { "(", "," } }, textDocumentSync = { change = 2, openClose = true, save = vim.empty_dict() }, workspace = { fileOperations = vim.empty_dict(), workspaceFolders = { changeNotifications = "workspace/didChangeWorkspaceFolders", supported = true } }, workspaceSymbolProvider = true }} [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:54 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:54 rpc_logger.go:32: Incoming notification for "initialized": {}\n2024/10/07 14:17:54 opts.go:215: Posting server call "client/registerCapability" {"registrations":[{"id":"64ea2e56-9371-d5e8-f3e1-1bf80156ac18","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/.terraform","kind":3},{"globPattern":"**/.terraform/modules/modules.json"},{"globPattern":"**/.terraform.lock.hcl"},{"globPattern":"**/.terraform/plugins/selections.json"},{"globPattern":"**/.terraform/plugins/darwin_arm64/lock.json"}]}}]}\n2024/10/07 14:17:54 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:54 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:54 opts.go:215: Received request batch of size 1 (qlen=0)\n' [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 1, jsonrpc = "2.0", method = "client/registerCapability", params = { registrations = { { id = "64ea2e56-9371-d5e8-f3e1-1bf80156ac18", method = "workspace/didChangeWatchedFiles", registerOptions = { watchers = { { globPattern = "**/.terraform", kind = 3 }, { globPattern = "**/.terraform/modules/modules.json" }, { globPattern = "**/.terraform.lock.hcl" }, { globPattern = "**/.terraform/plugins/selections.json" }, { globPattern = "**/.terraform/plugins/darwin_arm64/lock.json" } } } } } }} [DEBUG][2024-10-07 14:17:54] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 3, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:423 "server_request: callback result" { result = vim.NIL, status = true} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 1, jsonrpc = "2.0", result = vim.NIL} [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:54 opts.go:215: Received request batch of size 1 (qlen=1)\n" [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 opts.go:215: Received response for callback "1"\n2024/10/07 14:17:54 opts.go:215: Dequeued request batch of length 1 (qlen=1)\n2024/10/07 14:17:54 rpc_logger.go:32: Incoming notification for "textDocument/didOpen": {"textDocument":{"text":"cname_records = {\\n \\"_cea53b5cd872a2d2d966a339ae031d59.foo.no.\\" = \\"_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws.\\"\\n}\\n","languageId":"terraform","version":0,"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n2024/10/07 14:17:54 did_open.go:32: bus: -> DidOpen {file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838}\n2024/10/07 14:17:54 events.go:47: did open "/Users/h4s/projects/github.com/theherk/terraform-ls-1838" "terraform"\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "1": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "2": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "3": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "4": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "5": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "6": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 events.go:45: did open "/Users/h4s/projects/github.com/theherk/terraform-ls-1838" "terraform"\n2024/10/07 14:17:54 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:54 rpc_logger.go:32: Incoming request for "textDocument/semanticTokens/full" (ID 3): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n2024/10/07 14:17:54 rpc_logger.go:32: Incoming request for "textDocument/documentSymbol" (ID 2): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "1" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "1": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "2" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "7": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "8": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "9": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "10": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:140: JOBS: Enqueueing new job "11": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "2": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: ["7" "8" "9"])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "4" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "3" (scheduler prio: -1, job prio: -1, isDirOpen: true): "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "3": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "4": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "5" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "5": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "6" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "6": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "7" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "7": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "10" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "10": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "8" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "8": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "9" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "9": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 jobs.go:345: JOBS: Dispatching next job "11" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:54 jobs.go:487: JOBS: Finishing job "11": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:54 rpc_logger.go:48: Error for "textDocument/semanticTokens/full" (ID 3): [-32098] terraform.tfvars: file not found\n2024/10/07 14:17:54 opts.go:215: Completed 1 requests [6.504542ms elapsed]\n2024/10/07 14:17:54 rpc_logger.go:48: Error for "textDocument/documentSymbol" (ID 2): [-32098] terraform.tfvars: file not found\n2024/10/07 14:17:54 opts.go:215: Completed 1 requests [6.984583ms elapsed]\n' [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:408 "rpc.receive" { error = { code = -32098, message = "terraform.tfvars: file not found" }, id = 3, jsonrpc = "2.0"} [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:408 "rpc.receive" { error = { code = -32098, message = "terraform.tfvars: file not found" }, id = 2, jsonrpc = "2.0"} [DEBUG][2024-10-07 14:17:54] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 4, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:54 opts.go:215: Received request batch of size 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:54 rpc_logger.go:32: Incoming request for "textDocument/documentSymbol" (ID 4): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:54 rpc_logger.go:48: Error for "textDocument/documentSymbol" (ID 4): [-32098] terraform.tfvars: file not found\n2024/10/07 14:17:54 opts.go:215: Completed 1 requests [1.587666ms elapsed]\n' [DEBUG][2024-10-07 14:17:54] .../vim/lsp/rpc.lua:408 "rpc.receive" { error = { code = -32098, message = "terraform.tfvars: file not found" }, id = 4, jsonrpc = "2.0"} [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:286 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didOpen", params = { textDocument = { languageId = "terraform", text = 'variable "cname_records" {\n type = map(string)\n description = "Map of CNAME records, where key is the domain and value is the record value."\n}\n', uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf", version = 0 } }} [DEBUG][2024-10-07 14:17:57] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" }} 9 [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 5, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" } }} [ERROR][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:57 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:57 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:57 rpc_logger.go:32: Incoming notification for "textDocument/didOpen": {"textDocument":{"text":"variable \\"cname_records\\" {\\n type = map(string)\\n description = \\"Map of CNAME records, where key is the domain and value is the record value.\\"\\n}\\n","languageId":"terraform","version":0,"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/variables.tf"}}\n2024/10/07 14:17:57 did_open.go:32: bus: -> DidOpen {file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838}\n2024/10/07 14:17:57 events.go:47: did open "/Users/h4s/projects/github.com/theherk/terraform-ls-1838" "terraform"\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "12": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "13": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "14": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "12" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "15": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "16": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "17": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 events.go:45: did open "/Users/h4s/projects/github.com/theherk/terraform-ls-1838" "terraform"\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "12": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:57 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:57 rpc_logger.go:32: Incoming request for "textDocument/documentSymbol" (ID 5): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/variables.tf"}}\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "13" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 events.go:276: loading module metadata returned error: file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "18": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "19": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "20": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "21": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:140: JOBS: Enqueueing new job "22": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "13": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: ["18" "19" "20"])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "15" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "15": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "16" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "16": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "17" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "14" (scheduler prio: -1, job prio: -1, isDirOpen: true): "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "14": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "17": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n' [ERROR][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "18" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "18": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "19" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "19": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "20" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "20": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "21" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "21": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n2024/10/07 14:17:57 jobs.go:345: JOBS: Dispatching next job "22" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:57 jobs.go:487: JOBS: Finishing job "22": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838: state not changed, deferredJobs: [])\n' [ERROR][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:57 rpc_logger.go:53: Response to "textDocument/documentSymbol" (ID 5): [{"name":"variable \\"cname_records\\"","kind":5,"range":{"start":{"line":0,"character":0},"end":{"line":3,"character":1}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":3,"character":1}},"children":[{"name":"type","kind":13,"range":{"start":{"line":1,"character":2},"end":{"line":1,"character":27}},"selectionRange":{"start":{"line":1,"character":2},"end":{"line":1,"character":27}}},{"name":"description","kind":15,"range":{"start":{"line":2,"character":2},"end":{"line":2,"character":94}},"selectionRange":{"start":{"line":2,"character":2},"end":{"line":2,"character":94}}}]}]\n' [DEBUG][2024-10-07 14:17:57] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" }} 9 [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 6, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" } }} [ERROR][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:57 opts.go:215: Completed 1 requests [3.046917ms elapsed]\n2024/10/07 14:17:57 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:57 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:57 rpc_logger.go:32: Incoming request for "textDocument/documentSymbol" (ID 6): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/variables.tf"}}\n2024/10/07 14:17:57 rpc_logger.go:53: Response to "textDocument/documentSymbol" (ID 6): [{"name":"variable \\"cname_records\\"","kind":5,"range":{"start":{"line":0,"character":0},"end":{"line":3,"character":1}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":3,"character":1}},"children":[{"name":"type","kind":13,"range":{"start":{"line":1,"character":2},"end":{"line":1,"character":27}},"selectionRange":{"start":{"line":1,"character":2},"end":{"line":1,"character":27}}},{"name":"description","kind":15,"range":{"start":{"line":2,"character":2},"end":{"line":2,"character":94}},"selectionRange":{"start":{"line":2,"character":2},"end":{"line":2,"character":94}}}]}]\n2024/10/07 14:17:57 opts.go:215: Completed 1 requests [825.208µs elapsed]\n' [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 5, jsonrpc = "2.0", result = { { children = { { kind = 13, name = "type", range = { ["end"] = { character = 27, line = 1 }, start = { character = 2, line = 1 } }, selectionRange = { ["end"] = { character = 27, line = 1 }, start = { character = 2, line = 1 } } }, { kind = 15, name = "description", range = { ["end"] = { character = 94, line = 2 }, start = { character = 2, line = 2 } }, selectionRange = { ["end"] = { character = 94, line = 2 }, start = { character = 2, line = 2 } } } }, kind = 5, name = 'variable "cname_records"', range = { ["end"] = { character = 1, line = 3 }, start = { character = 0, line = 0 } }, selectionRange = { ["end"] = { character = 1, line = 3 }, start = { character = 0, line = 0 } } } }} [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 6, jsonrpc = "2.0", result = { { children = { { kind = 13, name = "type", range = { ["end"] = { character = 27, line = 1 }, start = { character = 2, line = 1 } }, selectionRange = { ["end"] = { character = 27, line = 1 }, start = { character = 2, line = 1 } } }, { kind = 15, name = "description", range = { ["end"] = { character = 94, line = 2 }, start = { character = 2, line = 2 } }, selectionRange = { ["end"] = { character = 94, line = 2 }, start = { character = 2, line = 2 } } } }, kind = 5, name = 'variable "cname_records"', range = { ["end"] = { character = 1, line = 3 }, start = { character = 0, line = 0 } }, selectionRange = { ["end"] = { character = 1, line = 3 }, start = { character = 0, line = 0 } } } }} [DEBUG][2024-10-07 14:17:57] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" }} 9 [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 7, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" } }} [ERROR][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:57 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:57 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:57 rpc_logger.go:32: Incoming request for "textDocument/semanticTokens/full" (ID 7): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/variables.tf"}}\n2024/10/07 14:17:57 rpc_logger.go:53: Response to "textDocument/semanticTokens/full" (ID 7): {"data":[0,0,8,7,0,0,9,15,0,0,1,2,4,5,0,0,14,3,1,0,0,4,6,2,0,1,2,11,5,0,0,14,78,6,0]}\n2024/10/07 14:17:57 opts.go:215: Completed 1 requests [1.387416ms elapsed]\n' [DEBUG][2024-10-07 14:17:57] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 7, jsonrpc = "2.0", result = { data = { 0, 0, 8, 7, 0, 0, 9, 15, 0, 0, 1, 2, 4, 5, 0, 0, 14, 3, 1, 0, 0, 4, 6, 2, 0, 1, 2, 11, 5, 0, 0, 14, 78, 6, 0 } }} [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:286 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 0, line = 2 }, start = { character = 0, line = 1 } }, rangeLength = 116, text = "" } }, textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars", version = 3 } }} [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 opts.go:215: Received request batch of size 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 rpc_logger.go:32: Incoming notification for "textDocument/didChange": {"contentChanges":[{"rangeLength":116,"text":"","range":{"end":{"line":2,"character":0},"start":{"line":1,"character":0}}}],"textDocument":{"version":3,"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 did_change.go:29: bus: -> DidChange {file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838}\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "23": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "24": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "23" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "25": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "26": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "27": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "28": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "23": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "24" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "29": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "30": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "31": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "32": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "33": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "24": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: ["29" "30" "31"])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "26" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "25" (scheduler prio: -1, job prio: -1, isDirOpen: true): "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "25": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "26": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "27" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "27": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "28" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "28": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "29" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "29": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "30" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "30": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "31" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "31": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "32" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "32": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "33" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "33": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 opts.go:215: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":1}},"severity":1,"source":"Terraform","message":"Unexpected attribute: An attribute named \\"cname_records\\" is not expected here"}]}\n2024/10/07 14:17:59 opts.go:215: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf","diagnostics":[]}\n' [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { message = 'Unexpected attribute: An attribute named "cname_records" is not expected here', range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 0 } }, severity = 1, source = "Terraform" } }, uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" }} [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838" }} [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 opts.go:215: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838","diagnostics":[]}\n' [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:286 "rpc.send" { jsonrpc = "2.0", method = "$/cancelRequest", params = { id = 3 }} [DEBUG][2024-10-07 14:17:59] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 8, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:59 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:17:59 rpc_logger.go:32: Incoming notification for "$/cancelRequest": {"id":3}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:59 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 rpc_logger.go:32: Incoming request for "textDocument/semanticTokens/full" (ID 8): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 rpc_logger.go:53: Response to "textDocument/semanticTokens/full" (ID 8): {"data":[]}\n2024/10/07 14:17:59 opts.go:215: Completed 1 requests [1.533625ms elapsed]\n' [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 8, jsonrpc = "2.0", result = { data = {} }} [DEBUG][2024-10-07 14:17:59] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 9, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 opts.go:215: Received request batch of size 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 rpc_logger.go:32: Incoming request for "textDocument/documentSymbol" (ID 9): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 rpc_logger.go:53: Response to "textDocument/documentSymbol" (ID 9): [{"name":"cname_records","kind":23,"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":1}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":1,"character":1}}}]\n2024/10/07 14:17:59 opts.go:215: Completed 1 requests [995.334µs elapsed]\n' [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 9, jsonrpc = "2.0", result = { { kind = 23, name = "cname_records", range = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 0 } }, selectionRange = { ["end"] = { character = 1, line = 1 }, start = { character = 0, line = 0 } } } }} [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:286 "rpc.send" { jsonrpc = "2.0", method = "textDocument/didChange", params = { contentChanges = { { range = { ["end"] = { character = 0, line = 1 }, start = { character = 17, line = 0 } }, rangeLength = 1, text = '\n "_cea53b5cd872a2d2d966a339ae031d59.foo.no." = "_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws."\n' } }, textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars", version = 4 } }} [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:17:59 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/10/07 14:17:59 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n" [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 rpc_logger.go:32: Incoming notification for "textDocument/didChange": {"contentChanges":[{"rangeLength":1,"text":"\\n \\"_cea53b5cd872a2d2d966a339ae031d59.foo.no.\\" = \\"_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws.\\"\\n","range":{"end":{"line":1,"character":0},"start":{"line":0,"character":17}}}],"textDocument":{"version":4,"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n2024/10/07 14:17:59 did_change.go:29: bus: -> DidChange {file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838}\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "34": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "35": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "36": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: false)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "37": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "38": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "39": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "34" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "34": "OpTypeParseModuleConfiguration" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "35" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "40": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "41": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "42": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "43": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:140: JOBS: Enqueueing new job "44": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (IsDirOpen: true, IgnoreState: true)\n2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "35": "OpTypeLoadModuleMetadata" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: ["40" "41" "42"])\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "37" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "36" (scheduler prio: -1, job prio: -1, isDirOpen: true): "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "36": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "37": "OpTypeParseVariables" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "38" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "38": "OpTypeDecodeVarsReferences" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "39" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "39": "OpTypeSchemaVarsValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "40" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "40": "OpTypePreloadEmbeddedSchema" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "41" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "41": "OpTypeDecodeReferenceTargets" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "42" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "42": "OpTypeDecodeReferenceOrigins" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "43" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n' [ERROR][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "43": "OpTypeSchemaModuleValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:59 jobs.go:345: JOBS: Dispatching next job "44" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"}\n2024/10/07 14:17:59 jobs.go:487: JOBS: Finishing job "44": "OpTypeReferenceValidation" for {"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838"} (err = %!s(), deferredJobs: [])\n2024/10/07 14:17:59 opts.go:215: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838","diagnostics":[]}\n2024/10/07 14:17:59 opts.go:215: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf","diagnostics":[]}\n2024/10/07 14:17:59 opts.go:215: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars","diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":2,"character":1}},"severity":1,"source":"Terraform","message":"Unexpected attribute: An attribute named \\"cname_records\\" is not expected here"}]}\n' [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838" }} [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = {}, uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/variables.tf" }} [DEBUG][2024-10-07 14:17:59] .../vim/lsp/rpc.lua:408 "rpc.receive" { jsonrpc = "2.0", method = "textDocument/publishDiagnostics", params = { diagnostics = { { message = 'Unexpected attribute: An attribute named "cname_records" is not expected here', range = { ["end"] = { character = 1, line = 2 }, start = { character = 0, line = 0 } }, severity = 1, source = "Terraform" } }, uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} [DEBUG][2024-10-07 14:18:00] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/semanticTokens/full" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 10, jsonrpc = "2.0", method = "textDocument/semanticTokens/full", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:18:00 opts.go:215: Received request batch of size 1 (qlen=0)\n" [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:18:00 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n" [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:18:00 rpc_logger.go:32: Incoming request for "textDocument/semanticTokens/full" (ID 10): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:18:00 rpc_logger.go:53: Response to "textDocument/semanticTokens/full" (ID 10): {"data":[]}\n2024/10/07 14:18:00 opts.go:215: Completed 1 requests [2.364625ms elapsed]\n' [DEBUG][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 10, jsonrpc = "2.0", result = { data = {} }} [DEBUG][2024-10-07 14:18:00] ...m/lsp/client.lua:678 "LSP[terraformls]" "client.request" 2 "textDocument/documentSymbol" { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" }} 4 [DEBUG][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:286 "rpc.send" { id = 11, jsonrpc = "2.0", method = "textDocument/documentSymbol", params = { textDocument = { uri = "file:///Users/h4s/projects/github.com/theherk/terraform-ls-1838/terraform.tfvars" } }} [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:18:00 opts.go:215: Received request batch of size 1 (qlen=0)\n" [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:18:00 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/10/07 14:18:00 rpc_logger.go:32: Incoming request for "textDocument/documentSymbol" (ID 11): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/h4s\\/projects\\/github.com\\/theherk\\/terraform-ls-1838\\/terraform.tfvars"}}\n' [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/10/07 14:18:00 rpc_logger.go:53: Response to "textDocument/documentSymbol" (ID 11): [{"name":"cname_records","kind":23,"range":{"start":{"line":0,"character":0},"end":{"line":2,"character":1}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":2,"character":1}},"children":[{"name":"_cea53b5cd872a2d2d966a339ae031d59.foo.no.","kind":15,"range":{"start":{"line":1,"character":2},"end":{"line":1,"character":115}},"selectionRange":{"start":{"line":1,"character":2},"end":{"line":1,"character":115}}}]}]\n' [ERROR][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:770 "rpc" "/Users/h4s/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/10/07 14:18:00 opts.go:215: Completed 1 requests [1.568708ms elapsed]\n" [DEBUG][2024-10-07 14:18:00] .../vim/lsp/rpc.lua:408 "rpc.receive" { id = 11, jsonrpc = "2.0", result = { { children = { { kind = 15, name = "_cea53b5cd872a2d2d966a339ae031d59.foo.no.", range = { ["end"] = { character = 115, line = 1 }, start = { character = 2, line = 1 } }, selectionRange = { ["end"] = { character = 115, line = 1 }, start = { character = 2, line = 1 } } } }, kind = 23, name = "cname_records", range = { ["end"] = { character = 1, line = 2 }, start = { character = 0, line = 0 } }, selectionRange = { ["end"] = { character = 1, line = 2 }, start = { character = 0, line = 0 } } } }} ```
quadespresso commented 5 days ago

I'm hitting the same issue. Or at least, it manifests with the same "Unexpected attribute" in terraform.tfvars. This is with nvim. If I start nvim anew, there are no warnings. But if I so much as comment out a line (without even saving), I get "Unexpected attribute" for each and every variable in terraform.tfvars. But I've observed something else that I'll get to in a moment.

For reference:

❯ terraform version
Terraform v1.9.5
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.68.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.3.5
+ provider registry.terraform.io/hashicorp/http v3.4.5
+ provider registry.terraform.io/hashicorp/local v2.5.2
+ provider registry.terraform.io/hashicorp/null v3.2.3
+ provider registry.terraform.io/hashicorp/random v3.6.3
+ provider registry.terraform.io/hashicorp/time v0.12.1
+ provider registry.terraform.io/hashicorp/tls v4.0.6
❯ terraform-ls --version
0.34.3
❯ nvim --version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1725453128

image

My observation is that if there is a .terraform dir (post-terraform init) that the reported issue is present. Indeed, I used @theherk 's example files and didn't even need to edit tfvars to get it to repro, as long as I also copied my .terraform dir to the freshly created dir that has only the 2 files they provided.

In case it mattered: I deleted my .terraform dir and lock file, re-ran terraform init, and the reported issue is still there for my own case. I then copied the .terraform dir over to the fresh dir again (after having removed the first copy from earlier) and am still able to repro using the files provided by @theherk .

I'm no doubt glossing over the importance of .terraform at least as far as terraform-ls is concerned. But to your point, @dbanck, if I drop just those 2 files into a freshly created dir (no other files or subdirs present) then I am also unable to repro the issue.

(Someone may be along shortly to tell me I've misconfigured something. And that's fine :slightly_smiling_face: I'm always happy to learn something useful.)