Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Couldn't start client Terraform LS" error despite installing language server via extension/brew #707

Closed
balaji-dutt opened this issue Jul 31, 2021 · 15 comments
Labels
bug Something isn't working

Comments

@balaji-dutt
Copy link

balaji-dutt commented Jul 31, 2021

Extension version:

2.14.0

My Environment

  • macOS Big Sur 11.5.1
  • VSCode 1.58.2 (Universal)

Expected Behavior

  • When I run the command Terraform: Enable Language Server, the command should validate open .tf files.

Actual Behavior

  • When I run the command Terraform: Enable Language Server, I get an error message "Couldn't start client Terraform LS".

Steps to reproduce the problem (?)

  • Install extension
  • Open a .tf file (?)
  • Accept prompt to install 0.20.0 version of Terraform language server. Reload VSCode

OR

  • Install Language Server via brew with brew install hashicorp/tap/terraform-ls
  • Install extension
  • Configure settings.json as follows:
    "terraform.languageServer": {
         "external": true,
         "pathToBinary": "/usr/local/bin/terraform-ls",
         "args": [
             "serve"
         ],
         "maxNumberOfProblems": 100,
         "trace.server": "off"
     },
  • Open a .tf file (?)
@TonyRobillard
Copy link

Same issue…

Couldn't start client Terraform LS

Uninstalled everything (Plugin, VSCode, Terraform, Terraform-LS) Reinstalled everything (Homebrew)

Same error every time...

terraform -version Terraform v1.0.3 on darwin_amd64

provider registry.terraform.io/hashicorp/azurerm v2.70.0
terraform-ls -version 0.20.0

VSCode Version: 1.58.2

HashiCorp Terraform Plugin Version: 2.14.0

macOS Big Sur Version: 11.5.1

@radeksimko
Copy link
Member

Thank you for these reports.

@balaji-dutt @TonyRobillard I see both of you are on macOS. Just to rule out or confirm that's in any way related - are you running on any latest Apple device with M1 processor based on ARM?

Can either/both of you also attach the full screenshot of the error and where it appears?

Can you also try opening the Output pane, switch to Log (Extension Host) and check if there is any output at all for hashicorp.terraform?

Screenshot 2021-08-02 at 10 25 04

Screenshot 2021-08-02 at 10 25 52

Thanks.

@balaji-dutt
Copy link
Author

@balaji-dutt @TonyRobillard I see both of you are on macOS. Just to rule out or confirm that's in any way related - are you running on any latest Apple device with M1 processor based on ARM?

I'm using an Intel processor based Mac.

Can either/both of you also attach the full screenshot of the error and where it appears?

Can you also try opening the Output pane, switch to Log (Extension Host) and check if there is any output at all for hashicorp.terraform?

Here is a screenshot of the error and in the background is the output from the Log (Extension Host) in the Output Pane:

Remotix_rADEwKp7Xp

In addition if I try to run the command "Terraform: validate" I get the following error on screen and with some additional error messages in the Output Pane:

Remotix_2Yizl06n03

[2021-08-02 18:38:32.938] [exthost] [error] Error: Language client is not ready yet
	at LanguageClient.sendRequest (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/common/client.js:1828:19)
	at execWorkspaceCommand (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:188:19)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:193:16
	at Generator.next (<anonymous>)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:8:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:4:12)
	at modulesCallersCommand (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:191:12)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:198:32
	at Generator.next (<anonymous>)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:8:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:4:12)
	at moduleCallers (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:197:12)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:209:36
	at Generator.next (<anonymous>)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:8:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:4:12)
	at terraformCommand (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:204:12)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:86:19
	at Generator.next (<anonymous>)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:8:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:4:12)
	at /Users/balaji/.vscode/extensions/hashicorp.terraform-2.14.0/out/extension.js:85:74
	at S._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:120585)
	at S.$executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:121023)
	at c._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:88:12743)
	at c._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:88:12435)
	at c._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:88:11097)
	at c._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:88:9900)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:88:8004
	at d.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57:1726)
	at h.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:15777)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103:29836
	at d.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57:1726)
	at h.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:15777)
	at r._receiveMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:21035)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:17921
	at d.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:57:1726)
	at u.acceptChunk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:13138)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:65:12486
	at Socket._ (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103:13107)
	at Socket.emit (events.js:315:20)
	at addChunk (internal/streams/readable.js:309:12)
	at readableAddChunk (internal/streams/readable.js:284:9)
	at Socket.Readable.push (internal/streams/readable.js:223:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:188:23) terraform.validate

@radeksimko
Copy link
Member

Thank you for these additional details.

Can you also check if there is terraform-ls Output pane and search for any panic within that pane? Alternatively if you are willing - can you share the whole output of these two output panes - ideally as text, not a screenshot - with me? You can also send these to me privately to radek<at>hashicorp.com and/or encrypt any sensitive data using my public PGP key if you wish.

@balaji-dutt
Copy link
Author

Thank you for these additional details.

Can you also check if there is terraform-ls Output pane and search for any panic within that pane? Alternatively if you are willing - can you share the whole output of these two output panes - ideally as text, not a screenshot - with me? You can also send these to me privately to radek<at>hashicorp.com and/or encrypt any sensitive data using my public PGP key if you wish.

I've sent the details via @radeksimko . I don't think there is sensitive data in there, but figure it would be better kept off a public channel.

@kerin
Copy link

kerin commented Aug 2, 2021

I'm seeing this too, using latest versions of VS Code, Terraform and the TF extension - here's my terraform-ls output:

Launching language server: /Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/lsp/terraform-ls serve
2021/08/02 14:01:16 serve_command.go:150: Starting terraform-ls 0.20.0
2021/08/02 14:01:16 service.go:82: Preparing new session ...
2021/08/02 14:01:18 watcher.go:281: watching for changes ...
2021/08/02 14:01:18 langserver.go:94: Starting server (pid 55913; concurrency: 8) ...
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 server.go:175: Processing 1 requests
2021/08/02 14:01:18 server.go:266: Checking request for "initialize": {"processId":55797,"clientInfo":{"name":"vscode","version":"1.58.2"},"rootPath":"/Users/kerin/Projects/eks-stuff","rootUri":"file:///Users/kerin/Projects/eks-stuff","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":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]},"tagSupport":{"valueSet":[1]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]}},"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]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":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]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","member","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}}}},"window":{"workDoneProgress":true},"experimental":{"showReferencesCommandId":"client.showReferences"}},"initializationOptions":{"commandPrefix":"m","experimentalFeatures":{}},"trace":"off","workspaceFolders":[{"uri":"file:///Users/kerin/Projects/eks-stuff","name":"eks-stuff"}]}
2021/08/02 14:01:18 rpc_logger.go:29: Incoming request for "initialize" (ID 0): {"processId":55797,"clientInfo":{"name":"vscode","version":"1.58.2"},"rootPath":"/Users/kerin/Projects/eks-stuff","rootUri":"file:///Users/kerin/Projects/eks-stuff","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":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]},"tagSupport":{"valueSet":[1]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]}},"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]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":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]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","member","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}}}},"window":{"workDoneProgress":true},"experimental":{"showReferencesCommandId":"client.showReferences"}},"initializationOptions":{"commandPrefix":"m","experimentalFeatures":{}},"trace":"off","workspaceFolders":[{"uri":"file:///Users/kerin/Projects/eks-stuff","name":"eks-stuff"}]}
2021/08/02 14:01:18 rpc_logger.go:50: Response to "initialize" (ID 0): {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":[".","["]},"hoverProvider":true,"signatureHelpProvider":{},"declarationProvider":{},"definitionProvider":true,"referencesProvider":true,"documentSymbolProvider":true,"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"executeCommandProvider":{"commands":["m.terraform-ls.module.callers","m.terraform-ls.rootmodules","m.terraform-ls.terraform.init","m.terraform-ls.terraform.validate"],"workDoneProgress":true},"semanticTokensProvider":{"legend":{"tokenTypes":["type","string","property","keyword","number","parameter","variable"],"tokenModifiers":["deprecated","modification"]},"full":true},"experimental":{"referenceCountCodeLens":true},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"terraform-ls","version":"0.20.0"}}
2021/08/02 14:01:18 server.go:247: Completed 1 requests [3.197527ms elapsed]
2021/08/02 14:01:18 walker.go:180: asynchronously walking through /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:228: found module /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeGetTerraformVersion" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleManifest" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeObtainSchema" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeGetTerraformVersion" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeObtainSchema" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/.git
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 server.go:175: Processing 1 requests
2021/08/02 14:01:18 server.go:266: Checking request for "initialized": {}
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 rpc_logger.go:29: Incoming notification for "initialized": {}
2021/08/02 14:01:18 server.go:175: Processing 1 requests
2021/08/02 14:01:18 server.go:266: Checking request for "textDocument/didOpen": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf","languageId":"terraform","version":1,"text":"data \"aws_availability_zones\" \"current\" {}\n\ndata \"aws_eks_cluster\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\ndata \"aws_eks_cluster_auth\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\nlocals {\n  cluster_name = \"eks-test\"\n}\n\nmodule \"vpc\" {\n  source  = \"terraform-aws-modules/vpc/aws\"\n  version = \"3.2.0\"\n\n  name = local.cluster_name\n  cidr = \"10.0.0.0/16\"\n\n  azs             = data.aws_availability_zones.current.names\n  private_subnets = [\"10.0.1.0/24\", \"10.0.2.0/24\", \"10.0.3.0/24\"]\n  public_subnets  = [\"10.0.101.0/24\", \"10.0.102.0/24\", \"10.0.103.0/24\"]\n\n  enable_nat_gateway     = true\n  single_nat_gateway     = true\n  one_nat_gateway_per_az = false\n  enable_dns_hostnames   = true\n\n  public_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/elb\"                      = \"1\"\n  }\n\n  private_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/internal-elb\"             = \"1\"\n  }\n}\n\nmodule \"cluster\" {\n  source  = \"terraform-aws-modules/eks/aws\"\n  version = \"17.1.0\"\n\n  cluster_name    = local.cluster_name\n  cluster_version = \"1.21\"\n\n  subnets = module.vpc.private_subnets\n  vpc_id  = module.vpc.vpc_id\n\n  worker_groups = [\n    {\n      instance_type = \"t3.micro\"\n      asg_max_size  = 3\n    }\n  ]\n}\n"}}
2021/08/02 14:01:18 rpc_logger.go:29: Incoming notification for "textDocument/didOpen": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf","languageId":"terraform","version":1,"text":"data \"aws_availability_zones\" \"current\" {}\n\ndata \"aws_eks_cluster\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\ndata \"aws_eks_cluster_auth\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\nlocals {\n  cluster_name = \"eks-test\"\n}\n\nmodule \"vpc\" {\n  source  = \"terraform-aws-modules/vpc/aws\"\n  version = \"3.2.0\"\n\n  name = local.cluster_name\n  cidr = \"10.0.0.0/16\"\n\n  azs             = data.aws_availability_zones.current.names\n  private_subnets = [\"10.0.1.0/24\", \"10.0.2.0/24\", \"10.0.3.0/24\"]\n  public_subnets  = [\"10.0.101.0/24\", \"10.0.102.0/24\", \"10.0.103.0/24\"]\n\n  enable_nat_gateway     = true\n  single_nat_gateway     = true\n  one_nat_gateway_per_az = false\n  enable_dns_hostnames   = true\n\n  public_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/elb\"                      = \"1\"\n  }\n\n  private_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/internal-elb\"             = \"1\"\n  }\n}\n\nmodule \"cluster\" {\n  source  = \"terraform-aws-modules/eks/aws\"\n  version = \"17.1.0\"\n\n  cluster_name    = local.cluster_name\n  cluster_version = \"1.21\"\n\n  subnets = module.vpc.private_subnets\n  vpc_id  = module.vpc.vpc_id\n\n  worker_groups = [\n    {\n      instance_type = \"t3.micro\"\n      asg_max_size  = 3\n    }\n  ]\n}\n"}}
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 did_open.go:44: opened module: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 server.go:175: Processing 1 requests
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 server.go:266: Checking request for "textDocument/documentSymbol": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:18 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc/.git
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:281: walking of /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:18 walker.go:186: async walking through /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:18 walker.go:180: asynchronously walking through /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:228: found module /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeGetTerraformVersion" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleManifest" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeObtainSchema" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/.git
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc/.git
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeGetTerraformVersion" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 walker.go:281: walking of /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:18 walker.go:186: async walking through /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeGetTerraformVersion" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeGetTerraformVersion" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 server.go:591: Received 1 new requests
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeDecodeReferenceTargets" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/modules/fargate
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/modules/fargate
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:18 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeDecodeReferenceTargets" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:18 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:18 module_loader.go:200: finished "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_loader.go:148: executing "OpTypeDecodeReferenceOrigins" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:19 module_loader.go:148: executing "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:19 module_loader.go:148: executing "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/modules/fargate
2021/08/02 14:01:19 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:19 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/modules/fargate
2021/08/02 14:01:19 module_loader.go:200: finished "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster
2021/08/02 14:01:19 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:19 module_loader.go:200: finished "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:19 module_loader.go:200: finished "OpTypeDecodeReferenceOrigins" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:19 watcher.go:75: adding module for watching: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:19 server.go:175: Processing 1 requests
2021/08/02 14:01:19 server.go:266: Checking request for "textDocument/documentLink": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 server.go:175: Processing 1 requests
2021/08/02 14:01:19 server.go:266: Checking request for "textDocument/codeLens": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 server.go:175: Processing 1 requests
2021/08/02 14:01:19 rpc_logger.go:29: Incoming request for "textDocument/documentSymbol" (ID 1): {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 rpc_logger.go:29: Incoming request for "textDocument/codeLens" (ID 3): {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 rpc_logger.go:29: Incoming request for "textDocument/documentLink" (ID 2): {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 server.go:266: Checking request for "textDocument/semanticTokens/full": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 rpc_logger.go:29: Incoming request for "textDocument/semanticTokens/full" (ID 4): {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf"}}
2021/08/02 14:01:19 rpc_logger.go:50: Response to "textDocument/documentSymbol" (ID 1): [{"name":"data \"aws_availability_zones\" \"current\"","kind":5,"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":42}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":0,"character":42}}},{"name":"data \"aws_eks_cluster\" \"cluster\"","kind":5,"range":{"start":{"line":2,"character":0},"end":{"line":4,"character":1}},"selectionRange":{"start":{"line":2,"character":0},"end":{"line":4,"character":1}},"children":[{"name":"name","kind":14,"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":34}},"selectionRange":{"start":{"line":3,"character":2},"end":{"line":3,"character":34}}}]},{"name":"data \"aws_eks_cluster_auth\" \"cluster\"","kind":5,"range":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"children":[{"name":"name","kind":14,"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":34}},"selectionRange":{"start":{"line":7,"character":2},"end":{"line":7,"character":34}}}]},{"name":"locals","kind":5,"range":{"start":{"line":10,"character":0},"end":{"line":12,"character":1}},"selectionRange":{"start":{"line":10,"character":0},"end":{"line":12,"character":1}},"children":[{"name":"cluster_name","kind":15,"range":{"start":{"line":11,"character":2},"end":{"line":11,"character":27}},"selectionRange":{"start":{"line":11,"character":2},"end":{"line":11,"character":27}}}]},{"name":"module \"vpc\"","kind":5,"range":{"start":{"line":14,"character":0},"end":{"line":39,"character":1}},"selectionRange":{"start":{"line":14,"character":0},"end":{"line":39,"character":1}},"children":[{"name":"source","kind":15,"range":{"start":{"line":15,"character":2},"end":{"line":15,"character":43}},"selectionRange":{"start":{"line":15,"character":2},"end":{"line":15,"character":43}}},{"name":"version","kind":15,"range":{"start":{"line":16,"character":2},"end":{"line":16,"character":19}},"selectionRange":{"start":{"line":16,"character":2},"end":{"line":16,"character":19}}},{"name":"name","kind":14,"range":{"start":{"line":18,"character":2},"end":{"line":18,"character":27}},"selectionRange":{"start":{"line":18,"character":2},"end":{"line":18,"character":27}}},{"name":"cidr","kind":15,"range":{"start":{"line":19,"character":2},"end":{"line":19,"character":22}},"selectionRange":{"start":{"line":19,"character":2},"end":{"line":19,"character":22}}},{"name":"azs","kind":14,"range":{"start":{"line":21,"character":2},"end":{"line":21,"character":61}},"selectionRange":{"start":{"line":21,"character":2},"end":{"line":21,"character":61}}},{"name":"private_subnets","kind":18,"range":{"start":{"line":22,"character":2},"end":{"line":22,"character":65}},"selectionRange":{"start":{"line":22,"character":2},"end":{"line":22,"character":65}},"children":[{"name":"0","kind":15,"range":{"start":{"line":22,"character":21},"end":{"line":22,"character":34}},"selectionRange":{"start":{"line":22,"character":21},"end":{"line":22,"character":34}}},{"name":"1","kind":15,"range":{"start":{"line":22,"character":36},"end":{"line":22,"character":49}},"selectionRange":{"start":{"line":22,"character":36},"end":{"line":22,"character":49}}},{"name":"2","kind":15,"range":{"start":{"line":22,"character":51},"end":{"line":22,"character":64}},"selectionRange":{"start":{"line":22,"character":51},"end":{"line":22,"character":64}}}]},{"name":"public_subnets","kind":18,"range":{"start":{"line":23,"character":2},"end":{"line":23,"character":71}},"selectionRange":{"start":{"line":23,"character":2},"end":{"line":23,"character":71}},"children":[{"name":"0","kind":15,"range":{"start":{"line":23,"character":21},"end":{"line":23,"character":36}},"selectionRange":{"start":{"line":23,"character":21},"end":{"line":23,"character":36}}},{"name":"1","kind":15,"range":{"start":{"line":23,"character":38},"end":{"line":23,"character":53}},"selectionRange":{"start":{"line":23,"character":38},"end":{"line":23,"character":53}}},{"name":"2","kind":15,"range":{"start":{"line":23,"character":55},"end":{"line":23,"character":70}},"selectionRange":{"start":{"line":23,"character":55},"end":{"line":23,"character":70}}}]},{"name":"enable_nat_gateway","kind":17,"range":{"start":{"line":25,"character":2},"end":{"line":25,"character":31}},"selectionRange":{"start":{"line":25,"character":2},"end":{"line":25,"character":31}}},{"name":"single_nat_gateway","kind":17,"range":{"start":{"line":26,"character":2},"end":{"line":26,"character":31}},"selectionRange":{"start":{"line":26,"character":2},"end":{"line":26,"character":31}}},{"name":"one_nat_gateway_per_az","kind":17,"range":{"start":{"line":27,"character":2},"end":{"line":27,"character":32}},"selectionRange":{"start":{"line":27,"character":2},"end":{"line":27,"character":32}}},{"name":"enable_dns_hostnames","kind":17,"range":{"start":{"line":28,"character":2},"end":{"line":28,"character":31}},"selectionRange":{"start":{"line":28,"character":2},"end":{"line":28,"character":31}}},{"name":"public_subnet_tags","kind":23,"range":{"start":{"line":30,"character":2},"end":{"line":33,"character":3}},"selectionRange":{"start":{"line":30,"character":2},"end":{"line":33,"character":3}},"children":[{"name":"kubernetes.io/role/elb","kind":15,"range":{"start":{"line":32,"character":4},"end":{"line":32,"character":55}},"selectionRange":{"start":{"line":32,"character":4},"end":{"line":32,"character":55}}}]},{"name":"private_subnet_tags","kind":23,"range":{"start":{"line":35,"character":2},"end":{"line":38,"character":3}},"selectionRange":{"start":{"line":35,"character":2},"end":{"line":38,"character":3}},"children":[{"name":"kubernetes.io/role/internal-elb","kind":15,"range":{"start":{"line":37,"character":4},"end":{"line":37,"character":55}},"selectionRange":{"start":{"line":37,"character":4},"end":{"line":37,"character":55}}}]}]},{"name":"module \"cluster\"","kind":5,"range":{"start":{"line":41,"character":0},"end":{"line":57,"character":1}},"selectionRange":{"start":{"line":41,"character":0},"end":{"line":57,"character":1}},"children":[{"name":"source","kind":15,"range":{"start":{"line":42,"character":2},"end":{"line":42,"character":43}},"selectionRange":{"start":{"line":42,"character":2},"end":{"line":42,"character":43}}},{"name":"version","kind":15,"range":{"start":{"line":43,"character":2},"end":{"line":43,"character":20}},"selectionRange":{"start":{"line":43,"character":2},"end":{"line":43,"character":20}}},{"name":"cluster_name","kind":14,"range":{"start":{"line":45,"character":2},"end":{"line":45,"character":38}},"selectionRange":{"start":{"line":45,"character":2},"end":{"line":45,"character":38}}},{"name":"cluster_version","kind":15,"range":{"start":{"line":46,"character":2},"end":{"line":46,"character":26}},"selectionRange":{"start":{"line":46,"character":2},"end":{"line":46,"character":26}}},{"name":"subnets","kind":14,"range":{"start":{"line":48,"character":2},"end":{"line":48,"character":38}},"selectionRange":{"start":{"line":48,"character":2},"end":{"line":48,"character":38}}},{"name":"vpc_id","kind":14,"range":{"start":{"line":49,"character":2},"end":{"line":49,"character":29}},"selectionRange":{"start":{"line":49,"character":2},"end":{"line":49,"character":29}}},{"name":"worker_groups","kind":18,"range":{"start":{"line":51,"character":2},"end":{"line":56,"character":3}},"selectionRange":{"start":{"line":51,"character":2},"end":{"line":56,"character":3}},"children":[{"name":"0","kind":23,"range":{"start":{"line":52,"character":4},"end":{"line":55,"character":5}},"selectionRange":{"start":{"line":52,"character":4},"end":{"line":55,"character":5}},"children":[{"name":"instance_type","kind":15,"range":{"start":{"line":53,"character":6},"end":{"line":53,"character":32}},"selectionRange":{"start":{"line":53,"character":6},"end":{"line":53,"character":32}}},{"name":"asg_max_size","kind":16,"range":{"start":{"line":54,"character":6},"end":{"line":54,"character":23}},"selectionRange":{"start":{"line":54,"character":6},"end":{"line":54,"character":23}}}]}]}]}]
2021/08/02 14:01:19 server.go:247: Completed 1 requests [564.112895ms elapsed]
2021/08/02 14:01:19 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:19 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:19 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:19 rpc_logger.go:50: Response to "textDocument/documentLink" (ID 2): []
2021/08/02 14:01:19 server.go:247: Completed 1 requests [4.445047ms elapsed]
2021/08/02 14:01:19 rpc_logger.go:50: Response to "textDocument/codeLens" (ID 3): []
2021/08/02 14:01:19 server.go:247: Completed 1 requests [4.695572ms elapsed]
panic: runtime error: index out of range [0] with length 0

goroutine 44 [running]:
github.com/zclconf/go-cty/cty.Type.TupleElementType(...)
	github.com/zclconf/go-cty@v1.9.0/cty/tuple_type.go:103
github.com/hashicorp/hcl-lang/decoder.tokensForTupleConsExpr(0xc009fdc320, 0x199af20, 0xc005aa1f20, 0x199af20, 0xc005aa1f20, 0x1)
	github.com/hashicorp/hcl-lang@v0.0.0-20210728150846-565e9ca96f5a/decoder/semantic_tokens.go:504 +0x33e
github.com/hashicorp/hcl-lang/decoder.(*Decoder).tokensForExpression(0xc006768300, 0x199be58, 0xc009fdc320, 0xc007dbcb10, 0x1, 0x1, 0x2, 0x4, 0x0)
	github.com/hashicorp/hcl-lang@v0.0.0-20210728150846-565e9ca96f5a/decoder/semantic_tokens.go:299 +0x3805
github.com/hashicorp/hcl-lang/decoder.(*Decoder).tokensForBody(0xc006768300, 0xc009fd0370, 0xc00a1e7d80, 0xc00a1e7d01, 0x1cb44e8, 0x0, 0x0)
	github.com/hashicorp/hcl-lang@v0.0.0-20210728150846-565e9ca96f5a/decoder/semantic_tokens.go:71 +0x331
github.com/hashicorp/hcl-lang/decoder.(*Decoder).tokensForBody(0xc006768300, 0xc009fd0420, 0xc009f18700, 0xc009e78800, 0x1, 0x1, 0x0)
	github.com/hashicorp/hcl-lang@v0.0.0-20210728150846-565e9ca96f5a/decoder/semantic_tokens.go:121 +0x8d1
github.com/hashicorp/hcl-lang/decoder.(*Decoder).SemanticTokensInFile(0xc006768300, 0xc009e5c117, 0x7, 0xc0084281d0, 0x9, 0xc006768300, 0x0, 0x0)
	github.com/hashicorp/hcl-lang@v0.0.0-20210728150846-565e9ca96f5a/decoder/semantic_tokens.go:30 +0x107
github.com/hashicorp/terraform-ls/internal/langserver/handlers.(*logHandler).TextDocumentSemanticTokensFull(0xc00009c008, 0x199a820, 0xc008077e30, 0xc0062881e0, 0x2e, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	github.com/hashicorp/terraform-ls/internal/langserver/handlers/semantic_tokens.go:64 +0x593
reflect.Value.call(0x15bda20, 0xc001383c50, 0x13, 0x1654ca9, 0x4, 0xc00960c120, 0x2, 0x2, 0xc00960c120, 0x199, ...)
	reflect/value.go:476 +0x8e7
reflect.Value.Call(0x15bda20, 0xc001383c50, 0x13, 0xc00960c120, 0x2, 0x2, 0x2, 0xc00960c120, 0x1)
	reflect/value.go:337 +0xb9
github.com/creachadair/jrpc2/handler.newHandler.func8(0x199a820, 0xc008077e30, 0xc0024b6700, 0x0, 0x0, 0x10, 0xc001383c50)
	github.com/creachadair/jrpc2@v0.18.0/handler/handler.go:226 +0x1f4
github.com/creachadair/jrpc2/handler.Func.Handle(...)
	github.com/creachadair/jrpc2@v0.18.0/handler/handler.go:23
github.com/hashicorp/terraform-ls/internal/langserver/handlers.handle(0x199a820, 0xc008077e30, 0xc0024b6700, 0x15bda20, 0xc001383c50, 0xc009884880, 0x199a820, 0xc008077e30, 0x15eef80)
	github.com/hashicorp/terraform-ls/internal/langserver/handlers/service.go:473 +0x94
github.com/hashicorp/terraform-ls/internal/langserver/handlers.(*service).Assigner.func14(0x199a820, 0xc008077e30, 0xc0024b6700, 0x0, 0x0, 0x0, 0x0)
	github.com/hashicorp/terraform-ls/internal/langserver/handlers/service.go:317 +0x22b
reflect.Value.call(0x15d6ac0, 0xc0098770b0, 0x13, 0x1654ca9, 0x4, 0xc008077d40, 0x2, 0x2, 0xc008077d40, 0x0, ...)
	reflect/value.go:476 +0x8e7
reflect.Value.Call(0x15d6ac0, 0xc0098770b0, 0x13, 0xc008077d40, 0x2, 0x2, 0x2, 0xc008077d40, 0x1)
	reflect/value.go:337 +0xb9
github.com/creachadair/jrpc2/handler.newHandler.func8(0x199a820, 0xc008077bf0, 0xc0024b6700, 0x159fe20, 0xc001383c20, 0x15bcbe0, 0xc0018ca810)
	github.com/creachadair/jrpc2@v0.18.0/handler/handler.go:226 +0x1f4
github.com/creachadair/jrpc2/handler.Func.Handle(0xc009886440, 0x199a820, 0xc008077bf0, 0xc0024b6700, 0x0, 0x0, 0x199a820, 0xc008077bf0)
	github.com/creachadair/jrpc2@v0.18.0/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc00988a000, 0x199a778, 0xc0024b6740, 0x1990d20, 0xc009886440, 0xc0024b6700, 0x0, 0x0, 0x0, 0x0, ...)
	github.com/creachadair/jrpc2@v0.18.0/server.go:344 +0x1ab
github.com/creachadair/jrpc2.(*Server).dispatch.func1.1()
	github.com/creachadair/jrpc2@v0.18.0/server.go:226 +0xb7
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0x1040ef6, 0x18fe8f8)
	github.com/creachadair/jrpc2@v0.18.0/server.go:231 +0x16a
github.com/creachadair/jrpc2.(*Server).serve.func1(0xc00988a000, 0xc006768240)
	github.com/creachadair/jrpc2@v0.18.0/server.go:152 +0x51
created by github.com/creachadair/jrpc2.(*Server).serve
	github.com/creachadair/jrpc2@v0.18.0/server.go:150 +0x71
[Info  - 14:01:19] Connection to server got closed. Server will restart.
[Error - 14:01:19] Request textDocument/semanticTokens/full failed.
Error: Connection got disposed.
	at Object.dispose (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
	at Object.dispose (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/common/client.js:73:35)
	at LanguageClient.handleConnectionClosed (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/common/client.js:2352:42)
	at LanguageClient.handleConnectionClosed (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/node/main.js:155:15)
	at closeHandler (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/common/client.js:2339:18)
	at CallbackList.invoke (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
	at CallbackList.invoke (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at StreamMessageReader.fireClose (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at Socket.<anonymous> (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js:125:42)
	at Socket.emit (events.js:327:22)
	at Pipe.<anonymous> (net.js:673:12)
2021/08/02 14:01:19 serve_command.go:150: Starting terraform-ls 0.20.0
2021/08/02 14:01:19 service.go:82: Preparing new session ...
2021/08/02 14:01:20 watcher.go:281: watching for changes ...
2021/08/02 14:01:20 langserver.go:94: Starting server (pid 55969; concurrency: 8) ...
2021/08/02 14:01:20 server.go:591: Received 1 new requests
2021/08/02 14:01:20 server.go:175: Processing 1 requests
2021/08/02 14:01:20 server.go:266: Checking request for "initialize": {"processId":55797,"clientInfo":{"name":"vscode","version":"1.58.2"},"rootPath":"/Users/kerin/Projects/eks-stuff","rootUri":"file:///Users/kerin/Projects/eks-stuff","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":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]},"tagSupport":{"valueSet":[1]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]}},"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]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":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]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","member","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}}}},"window":{"workDoneProgress":true},"experimental":{"showReferencesCommandId":"client.showReferences"}},"initializationOptions":{"commandPrefix":"m","experimentalFeatures":{}},"trace":"off","workspaceFolders":[{"uri":"file:///Users/kerin/Projects/eks-stuff","name":"eks-stuff"}]}
2021/08/02 14:01:20 rpc_logger.go:29: Incoming request for "initialize" (ID 0): {"processId":55797,"clientInfo":{"name":"vscode","version":"1.58.2"},"rootPath":"/Users/kerin/Projects/eks-stuff","rootUri":"file:///Users/kerin/Projects/eks-stuff","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":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]},"tagSupport":{"valueSet":[1]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]}},"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]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":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]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","member","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}}}},"window":{"workDoneProgress":true},"experimental":{"showReferencesCommandId":"client.showReferences"}},"initializationOptions":{"commandPrefix":"m","experimentalFeatures":{}},"trace":"off","workspaceFolders":[{"uri":"file:///Users/kerin/Projects/eks-stuff","name":"eks-stuff"}]}
2021/08/02 14:01:20 walker.go:180: asynchronously walking through /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 rpc_logger.go:50: Response to "initialize" (ID 0): {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":[".","["]},"hoverProvider":true,"signatureHelpProvider":{},"declarationProvider":{},"definitionProvider":true,"referencesProvider":true,"documentSymbolProvider":true,"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"executeCommandProvider":{"commands":["m.terraform-ls.module.callers","m.terraform-ls.rootmodules","m.terraform-ls.terraform.init","m.terraform-ls.terraform.validate"],"workDoneProgress":true},"semanticTokensProvider":{"legend":{"tokenTypes":["type","string","property","keyword","number","parameter","variable"],"tokenModifiers":["deprecated","modification"]},"full":true},"experimental":{"referenceCountCodeLens":true},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"terraform-ls","version":"0.20.0"}}
2021/08/02 14:01:20 server.go:247: Completed 1 requests [869.454µs elapsed]
2021/08/02 14:01:20 walker.go:228: found module /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeGetTerraformVersion" module operation: /Users/kerin/Projects/eks-stuff
[Error - 14:01:20] Starting client failed
Error: command 'client.showReferences' already exists
	at S.registerCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:119253)
	at Object.registerCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93:20920)
	at ShowReferencesFeature.initialize (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/out/showReferences.js:33:42)
	at LanguageClient.initializeFeatures (/Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/common/client.js:2504:21)
	at /Users/kerin/.vscode/extensions/hashicorp.terraform-2.14.0/node_modules/vscode-languageclient/lib/common/client.js:2189:18
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseModuleManifest" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeObtainSchema" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeGetTerraformVersion" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeObtainSchema" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/.git
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 server.go:591: Received 1 new requests
2021/08/02 14:01:20 server.go:591: Received 1 new requests
2021/08/02 14:01:20 server.go:175: Processing 1 requests
2021/08/02 14:01:20 server.go:266: Checking request for "initialized": {}
2021/08/02 14:01:20 server.go:175: Processing 1 requests
2021/08/02 14:01:20 server.go:266: Checking request for "textDocument/didOpen": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf","languageId":"terraform","version":1,"text":"data \"aws_availability_zones\" \"current\" {}\n\ndata \"aws_eks_cluster\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\ndata \"aws_eks_cluster_auth\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\nlocals {\n  cluster_name = \"eks-test\"\n}\n\nmodule \"vpc\" {\n  source  = \"terraform-aws-modules/vpc/aws\"\n  version = \"3.2.0\"\n\n  name = local.cluster_name\n  cidr = \"10.0.0.0/16\"\n\n  azs             = data.aws_availability_zones.current.names\n  private_subnets = [\"10.0.1.0/24\", \"10.0.2.0/24\", \"10.0.3.0/24\"]\n  public_subnets  = [\"10.0.101.0/24\", \"10.0.102.0/24\", \"10.0.103.0/24\"]\n\n  enable_nat_gateway     = true\n  single_nat_gateway     = true\n  one_nat_gateway_per_az = false\n  enable_dns_hostnames   = true\n\n  public_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/elb\"                      = \"1\"\n  }\n\n  private_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/internal-elb\"             = \"1\"\n  }\n}\n\nmodule \"cluster\" {\n  source  = \"terraform-aws-modules/eks/aws\"\n  version = \"17.1.0\"\n\n  cluster_name    = local.cluster_name\n  cluster_version = \"1.21\"\n\n  subnets = module.vpc.private_subnets\n  vpc_id  = module.vpc.vpc_id\n\n  worker_groups = [\n    {\n      instance_type = \"t3.micro\"\n      asg_max_size  = 3\n    }\n  ]\n}\n"}}
2021/08/02 14:01:20 rpc_logger.go:29: Incoming notification for "initialized": {}
2021/08/02 14:01:20 server.go:591: Received 1 new requests
2021/08/02 14:01:20 server.go:175: Processing 1 requests
2021/08/02 14:01:20 server.go:266: Checking request for "shutdown": 
2021/08/02 14:01:20 rpc_logger.go:29: Incoming notification for "textDocument/didOpen": {"textDocument":{"uri":"file:///Users/kerin/Projects/eks-stuff/main.tf","languageId":"terraform","version":1,"text":"data \"aws_availability_zones\" \"current\" {}\n\ndata \"aws_eks_cluster\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\ndata \"aws_eks_cluster_auth\" \"cluster\" {\n  name = module.cluster.cluster_id\n}\n\nlocals {\n  cluster_name = \"eks-test\"\n}\n\nmodule \"vpc\" {\n  source  = \"terraform-aws-modules/vpc/aws\"\n  version = \"3.2.0\"\n\n  name = local.cluster_name\n  cidr = \"10.0.0.0/16\"\n\n  azs             = data.aws_availability_zones.current.names\n  private_subnets = [\"10.0.1.0/24\", \"10.0.2.0/24\", \"10.0.3.0/24\"]\n  public_subnets  = [\"10.0.101.0/24\", \"10.0.102.0/24\", \"10.0.103.0/24\"]\n\n  enable_nat_gateway     = true\n  single_nat_gateway     = true\n  one_nat_gateway_per_az = false\n  enable_dns_hostnames   = true\n\n  public_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/elb\"                      = \"1\"\n  }\n\n  private_subnet_tags = {\n    \"kubernetes.io/cluster/${local.cluster_name}\" = \"shared\"\n    \"kubernetes.io/role/internal-elb\"             = \"1\"\n  }\n}\n\nmodule \"cluster\" {\n  source  = \"terraform-aws-modules/eks/aws\"\n  version = \"17.1.0\"\n\n  cluster_name    = local.cluster_name\n  cluster_version = \"1.21\"\n\n  subnets = module.vpc.private_subnets\n  vpc_id  = module.vpc.vpc_id\n\n  worker_groups = [\n    {\n      instance_type = \"t3.micro\"\n      asg_max_size  = 3\n    }\n  ]\n}\n"}}
2021/08/02 14:01:20 did_open.go:44: opened module: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc/.git
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeParseVariables" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeLoadModuleMetadata" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeDecodeReferenceTargets" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:20 walker.go:281: walking of /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:20 walker.go:186: async walking through /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:20 walker.go:180: asynchronously walking through /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 walker.go:228: found module /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeGetTerraformVersion" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseModuleManifest" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeObtainSchema" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/cluster/.git
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeDecodeReferenceTargets" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 walker.go:275: skipping /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc/.git
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeGetTerraformVersion" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 walker.go:281: walking of /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:20 walker.go:186: async walking through /Users/kerin/Projects/eks-stuff finished
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeParseModuleManifest" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 module_manager.go:70: MM: adding new module: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/kerin/Projects/eks-stuff/.terraform/modules/vpc
2021/08/02 14:01:20 module_loader.go:148: executing "OpTypeDecodeReferenceOrigins" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 provider_schema.go:196: PSS: getting provider schema (/Users/kerin/Projects/eks-stuff, registry.terraform.io/hashicorp/aws, 3.52.0)
2021/08/02 14:01:20 module_loader.go:118: no available capacity, retrying dispatch
2021/08/02 14:01:20 module_loader.go:200: finished "OpTypeDecodeReferenceOrigins" for /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 watcher.go:75: adding module for watching: /Users/kerin/Projects/eks-stuff
2021/08/02 14:01:20 rpc_logger.go:29: Incoming request for "shutdown" (ID 1): 
2021/08/02 14:01:20 service.go:434: stopping walker for session ...
2021/08/02 14:01:20 walker.go:92: stopping walker
2021/08/02 14:01:20 service.go:436: walker stopped
2021/08/02 14:01:20 service.go:440: stopping watcher for session ...
2021/08/02 14:01:20 service.go:445: watcher stopped
2021/08/02 14:01:20 service.go:450: cancelling any module loading ...
2021/08/02 14:01:20 service.go:452: module loading cancelled
2021/08/02 14:01:20 rpc_logger.go:50: Response to "shutdown" (ID 1): null
2021/08/02 14:01:20 server.go:247: Completed 1 requests [51.748577ms elapsed]
2021/08/02 14:01:20 server.go:517: Server signaled to stop with err=EOF
2021/08/02 14:01:20 server.go:146: Reading next request: EOF
2021/08/02 14:01:20 service.go:425: session stopped unexpectedly (err: <nil>)
2021/08/02 14:01:20 service.go:434: stopping walker for session ...
2021/08/02 14:01:20 service.go:436: walker stopped
2021/08/02 14:01:20 service.go:440: stopping watcher for session ...
2021/08/02 14:01:20 service.go:445: watcher stopped
2021/08/02 14:01:20 service.go:450: cancelling any module loading ...
2021/08/02 14:01:20 service.go:452: module loading cancelled
2021/08/02 14:01:20 langserver.go:107: Stopping server (pid 55969) ...
2021/08/02 14:01:20 langserver.go:111: Server (pid 55969) stopped.

@TonyRobillard
Copy link

I was able to get it to work.
If you just open a file, it fails.
However, if you open the entire project folder, it loads and works properly.

@balaji-dutt
Copy link
Author

I was able to get it to work.
If you just open a file, it fails.
However, if you open the entire project folder, it loads and works properly.

I think this is the correct solution. However it's a bit frustrating that there is no visible error message that single files are not supported.

@TonyRobillard
Copy link

Agreed.
Now if I can just get it working again on PyCharm...

@kerin
Copy link

kerin commented Aug 2, 2021

In my case this seems to be caused by the worker_groups block here:

module "cluster" {
  source  = "terraform-aws-modules/eks/aws"
  version = "17.1.0"

  cluster_name    = local.cluster_name
  cluster_version = "1.21"

  subnets = module.vpc.private_subnets
  vpc_id  = module.vpc.vpc_id

  worker_groups = [
    {
      instance_type = "t3.micro"
      asg_max_size  = 3
    }
  ]
}

if I comment that out terraform-ls no longer crashes.

@radeksimko
Copy link
Member

There seem to be at least two problems in play here.

Single file Editing

@balaji-dutt was kind enough to send me their log - and spotted a relevant error message in the log:

[Error - 8:32:16 PM] Starting client failed
Message: Editing a single file is not yet supported. Please open a directory.
Code: -32098

We do not support editing single files yet as the message suggests - but you are absolutely right that this should be surfaced to the user and they should not need to look for it in any log.

Crash on tuple highlighting

As kindly reported by @kerin

LS certainly shouldn't be crashing under any circumstances - so this is a bug. I am guessing that it's getting triggered by the worker_groups in your last attached config.


I will look into the crash at first because that seems more serious at this point.

Thank you all so far for all your cooperation, I appreciate it!

@radeksimko
Copy link
Member

The main root cause of the crash should now be fixed in 0.20.1. VS Code should prompt you to upgrade in the next 24 hours or upon (re)launch.

I'm going to keep this issue open until we address the vague error message when LS crashes though.

@wbourne0
Copy link

wbourne0 commented May 18, 2022

Running into this issue on arch (amd64) (version 0.20.1).

logs (unlikely to be useful; included anyways just in case)
Launching language server: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls serve
/home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: cannot execute binary file
[Info  - 8:25:26 PM] Connection to server got closed. Server will restart.
[Info  - 8:25:27 PM] Connection to server got closed. Server will restart.
/home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: cannot execute binary file
[Info  - 8:25:27 PM] Connection to server got closed. Server will restart.
/home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: cannot execute binary file
[Info  - 8:25:27 PM] Connection to server got closed. Server will restart.
/home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: cannot execute binary file
/home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls: cannot execute binary file
[Error - 8:25:27 PM] Connection to server got closed. Server will not be restarted.

When I tried to execute the binary manually, it failed to run. I checked the elf header and it appears to be a binary for arm, not amd.

~ ❯❯❯ /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls serve
zsh: exec format error: /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls
~ ❯❯❯ readelf -h /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x7d950
  Start of program headers:          52 (bytes into file)
  Start of section headers:          276 (bytes into file)
  Flags:                             0x5000002, Version5 EABI, <unknown>
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         7
  Size of section headers:           40 (bytes)
  Number of section headers:         14
  Section header string table index: 3

When I installed 2.20.0, I got an amd64 binary as expected (and the plugin worked).

~ ❯❯❯ readelf -h /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.0/bin/terraform-ls
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x467500
  Start of program headers:          64 (bytes into file)
  Start of section headers:          456 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         7
  Size of section headers:           64 (bytes)
  Number of section headers:         14
  Section header string table index: 3

replacing the binary with a manually compiled one at v0.27.0 fixes the issue.

git clone https://github.com/hashicorp/terraform-ls
cd terraform-ls
git checkout v0.27.0
go build
mv terraform-ls /home/wade/.vscode-oss/extensions/hashicorp.terraform-2.20.1/bin/terraform-ls

@radeksimko
Copy link
Member

Based on the file paths, it looks like you installed the extension into VS Codium or similar build of VS Code, which generally doesn't install from the MS Marketplace. The latest builds on OpenVSX - which you likely used - are currently broken, because of an older version of ovsx was used which doesn't support multi-platform extensions. We are currently blocked by eclipse/openvsx#450

Since v2.20.0 we embed the LS binary in the extension itself (within vsix), so folks who consume the extension via official VS Code builds and MS Marketplace should no longer face this error.

We track OpenVSX publishing under #1064

@allawesome497 We also provide terraform-ls package for various Linux distributions, so you don't have to build LS yourself: https://www.hashicorp.com/official-packaging-guide (terraform-ls is the package name).

@github-actions
Copy link

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

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

No branches or pull requests

5 participants