You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just save the above terraform config in a tf file and open.
Expected Behavior
Not to crash!
Actual Behavior
Client terraformls quit with exit code 2 and signal 0. Check log for errors: /Users/hamidrezaebtehaj/.local/state/nvim/lsp.log
Here's the log on my machine
[START][2024-12-12 12:49:55] LSP logging initiated
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 serve_command.go:108: Starting terraform-ls 0.36.1\n2024/12/12 12:49:55 service.go:118: Preparing new session ...\n2024/12/12 12:49:55 langserver.go:102: Starting server (pid 20141; concurrency: 4) ...\n2024/12/12 12:49:55 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/12/12 12:49:55 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/12/12 12:49:55 rpc_logger.go:32: Incoming request for "initialize" (ID 1): {"capabilities":{"textDocument":{"callHierarchy":{"dynamicRegistration":false},"publishDiagnostics":{"relatedInformation":true,"dataSupport":true,"tagSupport":{"valueSet":[1,2]}},"formatting":{"dynamicRegistration":true},"foldingRange":{"foldingRange":{"collapsedText":true},"lineFoldingOnly":true,"dynamicRegistration":false},"diagnostic":{"dynamicRegistration":false},"codeLens":{"dynamicRegistration":false,"resolveSupport":{"properties":["command"]}},"signatureHelp":{"dynamicRegistration":false,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"activeParameterSupport":true,"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"willSaveWaitUntil":true,"didSave":true,"dynamicRegistration":false,"willSave":true},"rangeFormatting":{"dynamicRegistration":true,"rangesSupport":true},"typeDefinition":{"linkSupport":true},"documentHighlight":{"dynamicRegistration":false},"definition":{"linkSupport":true,"dynamicRegistration":true},"completion":{"dynamicRegistration":false,"insertTextMode":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]},"completionItem":{"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"commitCharactersSupport":true,"snippetSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"labelDetailsSupport":true,"resolveSupport":{"properties":["documentation","additionalTextEdits","insertTextFormat","insertTextMode","command"]}},"contextSupport":true,"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}},"documentSymbol":{"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]},"dynamicRegistration":false,"hierarchicalDocumentSymbolSupport":true},"declaration":{"linkSupport":true},"references":{"dynamicRegistration":false},"implementation":{"linkSupport":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["textEdits","tooltip","location","command"]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"semanticTokens":{"augmentsSyntaxTokens":true,"overlappingTokenSupport":true,"dynamicRegistration":false,"requests":{"range":false,"full":{"delta":true}},"formats":["relative"],"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"],"serverCancelSupport":false,"multilineTokenSupport":false},"codeAction":{"isPreferredSupport":true,"dynamicRegistration":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}}},"general":{"positionEncodings":["utf-8","utf-16","utf-32"]},"window":{"showDocument":{"support":true},"workDoneProgress":true,"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}}},"workspace":{"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"workspaceEdit":{"resourceOperations":["rename","create","delete"]},"didChangeConfiguration":{"dynamicRegistration":false},"inlayHint":{"refreshSupport":true},"applyEdit":true,"workspaceFolders":true,"configuration":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]}},"semanticTokens":{"refreshSupport":true}}},"initializationOptions":{},"rootUri":"file:\\/\\/\\/Users\\/hamidrezaebtehaj\\/P\\/ter","rootPath":"\\/Users\\/hamidrezaebtehaj\\/P\\/ter","clientInfo":{"version":"0.11.0-dev+Homebrew","name":"Neovim"},"processId":20139,"workDoneToken":"1","trace":"off","workspaceFolders":[{"name":"\\/Users\\/hamidrezaebtehaj\\/P\\/ter","uri":"file:\\/\\/\\/Users\\/hamidrezaebtehaj\\/P\\/ter"}]}\n2024/12/12 12:49:55 scheduler.go:56: launching eval loop 0\n2024/12/12 12:49:55 service.go:489: started low priority scheduler\n2024/12/12 12:49:55 scheduler.go:56: launching eval loop 0\n2024/12/12 12:49:55 service.go:494: started high priority scheduler\n2024/12/12 12:49:55 discover.go:21: bus: "feature.rootmodules" subscribed to OnDiscover\n2024/12/12 12:49:55 did_open.go:28: bus: "feature.rootmodules" subscribed to OnDidOpen\n2024/12/12 12:49:55 manifest_change.go:23: bus: "feature.rootmodules" subscribed to OnManifestChange\n2024/12/12 12:49:55 lockfile_change.go:23: bus: "feature.rootmodules" subscribed to OnPluginLockChange\n2024/12/12 12:49:55 discover.go:21: bus: "feature.modules" subscribed to OnDiscover\n2024/12/12 12:49:55 did_open.go:28: bus: "feature.modules" subscribed to OnDidOpen\n2024/12/12 12:49:55 did_change.go:24: bus: "feature.modules" subscribed to OnDidChange\n2024/12/12 12:49:55 did_change_watched.go:27: bus: "feature.modules" subscribed to OnDidChangeWatched\n2024/12/12 12:49:55 discover.go:21: bus: "feature.variables" subscribed to OnDiscover\n2024/12/12 12:49:55 did_open.go:28: bus: "feature.variables" subscribed to OnDidOpen\n2024/12/12 12:49:55 did_change.go:24: bus: "feature.variables" subscribed to OnDidChange\n2024/12/12 12:49:55 did_change_watched.go:27: bus: "feature.variables" subscribed to OnDidChangeWatched\n2024/12/12 12:49:55 discover.go:21: bus: "feature.stacks" subscribed to OnDiscover\n2024/12/12 12:49:55 did_open.go:28: bus: "feature.stacks" subscribed to OnDidOpen\n2024/12/12 12:49:55 did_change.go:24: bus: "feature.stacks" subscribed to OnDidChange\n2024/12/12 12:49:55 did_change_watched.go:27: bus: "feature.stacks" subscribed to OnDidChangeWatched\n2024/12/12 12:49:55 discover.go:21: bus: "feature.tests" subscribed to OnDiscover\n2024/12/12 12:49:55 did_open.go:28: bus: "feature.tests" subscribed to OnDidOpen\n2024/12/12 12:49:55 did_change.go:24: bus: "feature.tests" subscribed to OnDidChange\n2024/12/12 12:49:55 did_change_watched.go:27: bus: "feature.tests" subscribed to OnDidChangeWatched\n2024/12/12 12:49:55 walker_paths.go:255: walking next dir: {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 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.36.1"}}\n2024/12/12 12:49:55 opts.go:215: Completed 1 requests [3.713041ms elapsed]\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter\n2024/12/12 12:49:55 events.go:36: discovered root module file in /Users/hamidrezaebtehaj/P/ter\n2024/12/12 12:49:55 events.go:30: discovered module file in /Users/hamidrezaebtehaj/P/ter\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform\n2024/12/12 12:49:55 events.go:24: discovered root module in file:///Users/hamidrezaebtehaj/P/ter\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform/providers\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp/null\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp/null/3.2.3\n2024/12/12 12:49:55 discover.go:26: bus: -> Discover /Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp/null/3.2.3/darwin_arm64\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp/null/3.2.3/darwin_arm64} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp/null/3.2.3} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp/null} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io/hashicorp} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform/providers/registry.terraform.io} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform/providers} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter/.terraform} finished\n2024/12/12 12:49:55 walker.go:217: walking of {file:///Users/hamidrezaebtehaj/P/ter} finished\n2024/12/12 12:49:55 walker.go:145: walker: walking through {"file:///Users/hamidrezaebtehaj/P/ter"} finished\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/12/12 12:49:55 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/12/12 12:49:55 rpc_logger.go:32: Incoming notification for "initialized": {}\n2024/12/12 12:49:55 opts.go:215: Received request batch of size 1 (qlen=0)\n2024/12/12 12:49:55 opts.go:215: Posting server call "client/registerCapability" {"registrations":[{"id":"17048f3f-0ee2-99e4-368c-ed16362c11df","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/12/12 12:49:55 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/12/12 12:49:55 opts.go:215: Received request batch of size 1 (qlen=0)\n"
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 opts.go:215: Received response for callback "1"\n2024/12/12 12:49:55 opts.go:215: Dequeued request batch of length 1 (qlen=0)\n2024/12/12 12:49:55 rpc_logger.go:32: Incoming notification for "textDocument/didOpen": {"textDocument":{"text":"terraform {\\n required_providers {\\n google = {\\n source = \\"hashicorp\\/google\\"\\n version = \\"6.12.0\\"\\n }\\n }\\n}\\n\\nprovider \\"null\\" {}\\n\\nresource \\"null_resource\\" \\"example\\" {}\\n","version":0,"uri":"file:\\/\\/\\/Users\\/hamidrezaebtehaj\\/P\\/ter\\/main.tf","languageId":"terraform"}}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 did_open.go:33: bus: -> DidOpen {file:///Users/hamidrezaebtehaj/P/ter}\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "1": "OpTypeGetTerraformVersion" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "2": "OpTypeParseModuleManifest" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "3": "OpTypeParseTerraformSources" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "4": "OpTypeParseProviderVersions" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "5": "OpTypeObtainSchema" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 events.go:47: did open "/Users/hamidrezaebtehaj/P/ter" "terraform"\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "6": "OpTypeParseModuleConfiguration" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "7": "OpTypeLoadModuleMetadata" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "8": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 events.go:51: did open "/Users/hamidrezaebtehaj/P/ter" "terraform"\n2024/12/12 12:49:55 events.go:48: did open "/Users/hamidrezaebtehaj/P/ter" "terraform"\n2024/12/12 12:49:55 rpc_logger.go:32: Incoming request for "textDocument/semanticTokens/full" (ID 2): {"textDocument":{"uri":"file:\\/\\/\\/Users\\/hamidrezaebtehaj\\/P\\/ter\\/main.tf"}}\n2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "1" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeGetTerraformVersion" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "1": "OpTypeGetTerraformVersion" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = %!s(<nil>), deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "2" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseModuleManifest" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "2": "OpTypeParseModuleManifest" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = /Users/hamidrezaebtehaj/P/ter: manifest file does not exist, deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "3" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseTerraformSources" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "3": "OpTypeParseTerraformSources" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = failed to parse terraform sources: cannot read manifest: open /Users/hamidrezaebtehaj/P/ter/.terraform/modules/terraform-sources.json: no such file or directory, deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "4" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseProviderVersions" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "4": "OpTypeParseProviderVersions" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = %!s(<nil>), deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "5" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeObtainSchema" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "5": "OpTypeObtainSchema" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = exit status 1\n\nError: Inconsistent dependency lock file\n\nThe following dependency selections recorded in the lock file are\ninconsistent with the current configuration:\n - provider registry.terraform.io/hashicorp/google: required by this configuration but no version is selected\n\nTo update the locked dependency selections to match a changed configuration,\nrun:\n terraform init -upgrade\n\n, deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "6" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeParseModuleConfiguration" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "6": "OpTypeParseModuleConfiguration" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = %!s(<nil>), deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "7" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeLoadModuleMetadata" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "9": "OpTypePreloadEmbeddedSchema" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "10": "OpTypeDecodeReferenceTargets" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "11": "OpTypeDecodeReferenceOrigins" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "12": "OpTypeSchemaModuleValidation" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:140: JOBS: Enqueueing new job "13": "OpTypeReferenceValidation" for {"file:///Users/hamidrezaebtehaj/P/ter"} (IsDirOpen: true, IgnoreState: false)\n2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "7": "OpTypeLoadModuleMetadata" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = %!s(<nil>), deferredJobs: ["9" "10" "11"])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "9" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypePreloadEmbeddedSchema" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "8" (scheduler prio: -1, job prio: -1, isDirOpen: true): "OpTypeGetModuleDataFromRegistry" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "8": "OpTypeGetModuleDataFromRegistry" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = %!s(<nil>), deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" "2024/12/12 12:49:55 provider_schema.go:604: preloaded schema for registry.terraform.io/hashicorp/null 3.2.3 in 563.667µs\n"
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 provider_schema.go:604: preloaded schema for registry.terraform.io/hashicorp/google 6.13.0 in 131.930208ms\n2024/12/12 12:49:55 jobs.go:487: JOBS: Finishing job "9": "OpTypePreloadEmbeddedSchema" for {"file:///Users/hamidrezaebtehaj/P/ter"} (err = %!s(<nil>), deferredJobs: [])\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" '2024/12/12 12:49:55 jobs.go:345: JOBS: Dispatching next job "10" (scheduler prio: 1, job prio: 0, isDirOpen: true): "OpTypeDecodeReferenceTargets" for {"file:///Users/hamidrezaebtehaj/P/ter"}\n'
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" "panic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x2 addr=0x40 pc=0x10312f698]\n\ngoroutine 36 [running]:\n"
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" "github.com/hashicorp/terraform-schema/schema.(*SchemaMerger).SchemaForModule(0x14000451868, 0x140004517f0)\n\tgithub.com/hashicorp/[email protected]/schema/schema_merge.go:164 +0x1708\ngithub.com/hashicorp/terraform-ls/internal/features/modules/decoder.schemaForModule(0x14000eaea20, {{0x1043ec988, 0x14000325e40}, {0x1043f14b0, 0x140003b6280}})\n\tgithub.com/hashicorp/terraform-ls/internal/features/modules/decoder/module_schema.go:30 +0x13c\ngithub.com/hashicorp/terraform-ls/internal/features/modules/decoder.modulePathContext(0x14000eaea20, {{0x1043ec988?, 0x14000325e40?}, {0x1043f14b0?, 0x140003b6280?}})\n\tgithub.com/hashicorp/terraform-ls/internal/features/modules/decoder/module_context.go:15 +0x48\ngithub.com/hashicorp/terraform-ls/internal/features/modules/decoder.(*PathReader).PathContext(0x1400204ef00, {{0x140000be127?, 0x0?}, {0x1032c2883?, 0x0?}})\n\tgithub.com/hashicorp/terraform-ls/internal/features/modules/decoder/path_reader.go:72 +0x64\ngithub.com/hashicorp/hcl-lang/decoder.(*Decoder).Path(0x14000451c38, {{0x140000be127?, 0x1d?}, {0x1032c2883?, 0x14000451bf8?}})\n\tgithub.com/hashicorp/[email protected]/decoder/path_decoder.go:29 +0x48\ngithub.com/hashicorp/terraform-ls/internal/features/modules/jobs.DecodeReferenceTargets({0x1043edbb8, 0x140020521e0}, 0x140003b6280, {0x1043ec988, 0x14000325e40}, {0x140000be127, 0x1d})\n\tgithub.com/hashicorp/terraform-ls/internal/features/modules/jobs/references.go:52 +0x198\ngithub.com/hashicorp/terraform-ls/internal/features/modules.(*ModulesFeature).decodeModule.func3.2({0x1043edbb8?"
[ERROR][2024-12-12 12:49:55] .../vim/lsp/rpc.lua:759 "rpc" "/Users/hamidrezaebtehaj/.local/share/nvim/mason/bin/terraform-ls" "stderr" ", 0x140020521e0?})\n\tgithub.com/hashicorp/terraform-ls/internal/features/modules/events.go:309 +0x3c\ngithub.com/hashicorp/terraform-ls/internal/scheduler.(*Scheduler).eval(0x140003a6a50, {0x1043edbf0, 0x140003225f0})\n\tgithub.com/hashicorp/terraform-ls/internal/scheduler/scheduler.go:95 +0x428\ncreated by github.com/hashicorp/terraform-ls/internal/scheduler.(*Scheduler).Start in goroutine 33\n\tgithub.com/hashicorp/terraform-ls/internal/scheduler/scheduler.go:57 +0x80\n"
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
The text was updated successfully, but these errors were encountered:
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.
Language Server Version
v0.36.1
Terraform Version
Terraform v1.9.8 on darwin_arm64
Client Version
Neovim (builtin lsp)
Terraform Configuration
Steps to Reproduce
Just save the above terraform config in a tf file and open.
Expected Behavior
Not to crash!
Actual Behavior
Client terraformls quit with exit code 2 and signal 0. Check log for errors: /Users/hamidrezaebtehaj/.local/state/nvim/lsp.log
Here's the log on my machine
Gist
No response
Workarounds
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: