Closed lawrencegripper closed 4 years ago
I to am receiving this error when trying to use the terraform-lsp
on my MacBook.
I have updated my vscode-terraform
plugin to v1.4 per this PR https://github.com/mauve/vscode-terraform/pull/200.
That PR has a few similar instances of this problem with terraform-lsp
and specifically said to raise an issue here.
Im unsure how to resolve the problem though.
2019/08/26 16:05:56 Server started
2019/08/26 16:05:56 [DEBUG] plugin dirs: []string{".", "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin", "terraform.d/plugins/darwin_amd64", "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64", "/Users/abest/.terraform.d/plugins", "/Users/abest/.terraform.d/plugins/darwin_amd64", "/Users/abest/go/bin"}
2019/08/26 16:05:56 [DEBUG] checking for provider in "."
2019/08/26 16:05:56 [DEBUG] checking for provider in "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-alicloud_v1.55.1_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-archive_v1.2.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-aws_v2.25.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-google_v2.13.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-helm_v0.10.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-kubernetes_v1.9.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-random_v2.2.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2019/08/26 16:05:56 [DEBUG] checking for provider in "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019-08-26T16:05:56.611+1000 [INFO] plugin: configuring client automatic mTLS
2019-08-26T16:05:56.639+1000 [DEBUG] plugin: starting plugin: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 args=[/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4]
2019-08-26T16:05:56.642+1000 [DEBUG] plugin: plugin started: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46377
2019-08-26T16:05:56.642+1000 [DEBUG] plugin: waiting for RPC address: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4
2019-08-26T16:05:56.663+1000 [INFO] plugin.terraform-provider-azurerm_v1.33.0_x4: configuring server automatic mTLS: timestamp=2019-08-26T16:05:56.662+1000
2019-08-26T16:05:56.688+1000 [DEBUG] plugin: using plugin: version=5
2019-08-26T16:05:56.688+1000 [DEBUG] plugin.terraform-provider-azurerm_v1.33.0_x4: plugin address: address=/var/folders/8j/qynlblrn77xcj8lvcm11ydjm0000gn/T/plugin940270652 network=unix timestamp=2019-08-26T16:05:56.688+1000
2019/08/26 16:05:56 [TRACE] GRPCProvider: GetSchema
2019-08-26T16:05:56.758+1000 [DEBUG] plugin: plugin process exited: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46377
2019-08-26T16:05:56.758+1000 [DEBUG] plugin: plugin exited
2019/08/26 16:05:56 [DEBUG] plugin dirs: []string{".", "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin", "terraform.d/plugins/darwin_amd64", "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64", "/Users/abest/.terraform.d/plugins", "/Users/abest/.terraform.d/plugins/darwin_amd64", "/Users/abest/go/bin"}
2019/08/26 16:05:56 [DEBUG] checking for provider in "."
2019/08/26 16:05:56 [DEBUG] checking for provider in "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-alicloud_v1.55.1_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-archive_v1.2.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-aws_v2.25.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-google_v2.13.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-helm_v0.10.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-kubernetes_v1.9.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-random_v2.2.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2019/08/26 16:05:56 [DEBUG] checking for provider in "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019-08-26T16:05:56.758+1000 [INFO] plugin: configuring client automatic mTLS
2019-08-26T16:05:56.781+1000 [DEBUG] plugin: starting plugin: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 args=[/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4]
2019-08-26T16:05:56.785+1000 [DEBUG] plugin: plugin started: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46378
2019-08-26T16:05:56.785+1000 [DEBUG] plugin: waiting for RPC address: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4
2019-08-26T16:05:56.803+1000 [INFO] plugin.terraform-provider-azurerm_v1.33.0_x4: configuring server automatic mTLS: timestamp=2019-08-26T16:05:56.803+1000
2019-08-26T16:05:56.831+1000 [DEBUG] plugin.terraform-provider-azurerm_v1.33.0_x4: plugin address: address=/var/folders/8j/qynlblrn77xcj8lvcm11ydjm0000gn/T/plugin498051201 network=unix timestamp=2019-08-26T16:05:56.830+1000
2019-08-26T16:05:56.831+1000 [DEBUG] plugin: using plugin: version=5
2019/08/26 16:05:56 [TRACE] GRPCProvider: GetSchema
2019-08-26T16:05:56.902+1000 [DEBUG] plugin: plugin process exited: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46378
2019-08-26T16:05:56.902+1000 [DEBUG] plugin: plugin exited
2019/08/26 16:05:56 [DEBUG] plugin dirs: []string{".", "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin", "terraform.d/plugins/darwin_amd64", "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64", "/Users/abest/.terraform.d/plugins", "/Users/abest/.terraform.d/plugins/darwin_amd64", "/Users/abest/go/bin"}
2019/08/26 16:05:56 [DEBUG] checking for provider in "."
2019/08/26 16:05:56 [DEBUG] checking for provider in "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-alicloud_v1.55.1_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-archive_v1.2.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-aws_v2.25.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-google_v2.13.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-helm_v0.10.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-kubernetes_v1.9.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-random_v2.2.0_x4"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2019/08/26 16:05:56 [DEBUG] checking for provider in "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64"
2019/08/26 16:05:56 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019-08-26T16:05:56.902+1000 [INFO] plugin: configuring client automatic mTLS
2019-08-26T16:05:56.925+1000 [DEBUG] plugin: starting plugin: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 args=[/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4]
2019-08-26T16:05:56.928+1000 [DEBUG] plugin: plugin started: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46379
2019-08-26T16:05:56.928+1000 [DEBUG] plugin: waiting for RPC address: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4
2019-08-26T16:05:56.948+1000 [INFO] plugin.terraform-provider-azurerm_v1.33.0_x4: configuring server automatic mTLS: timestamp=2019-08-26T16:05:56.948+1000
2019-08-26T16:05:56.973+1000 [DEBUG] plugin: using plugin: version=5
2019-08-26T16:05:56.973+1000 [DEBUG] plugin.terraform-provider-azurerm_v1.33.0_x4: plugin address: address=/var/folders/8j/qynlblrn77xcj8lvcm11ydjm0000gn/T/plugin405714750 network=unix timestamp=2019-08-26T16:05:56.973+1000
2019/08/26 16:05:56 [TRACE] GRPCProvider: GetSchema
2019-08-26T16:05:57.041+1000 [DEBUG] plugin: plugin process exited: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46379
2019-08-26T16:05:57.041+1000 [DEBUG] plugin: plugin exited
2019/08/26 16:05:57 [DEBUG] plugin dirs: []string{".", "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin", "terraform.d/plugins/darwin_amd64", "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64", "/Users/abest/.terraform.d/plugins", "/Users/abest/.terraform.d/plugins/darwin_amd64", "/Users/abest/go/bin"}
2019/08/26 16:05:57 [DEBUG] checking for provider in "."
2019/08/26 16:05:57 [DEBUG] checking for provider in "/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-alicloud_v1.55.1_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-archive_v1.2.2_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-aws_v2.25.0_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-external_v1.2.0_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-google_v2.13.0_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-helm_v0.10.2_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-kubernetes_v1.9.0_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-null_v2.1.2_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-random_v2.2.0_x4"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-template_v2.1.2_x4"
2019/08/26 16:05:57 [DEBUG] checking for provider in "/Users/abest/github/azure-jira-terraform/.terraform/plugins/darwin_amd64"
2019/08/26 16:05:57 [DEBUG] found provider "terraform-provider-azurerm_v1.33.0_x4"
2019-08-26T16:05:57.042+1000 [INFO] plugin: configuring client automatic mTLS
2019-08-26T16:05:57.064+1000 [DEBUG] plugin: starting plugin: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 args=[/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4]
2019-08-26T16:05:57.068+1000 [DEBUG] plugin: plugin started: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46380
2019-08-26T16:05:57.068+1000 [DEBUG] plugin: waiting for RPC address: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4
2019-08-26T16:05:57.087+1000 [INFO] plugin.terraform-provider-azurerm_v1.33.0_x4: configuring server automatic mTLS: timestamp=2019-08-26T16:05:57.087+1000
2019-08-26T16:05:57.111+1000 [DEBUG] plugin: using plugin: version=5
2019-08-26T16:05:57.111+1000 [DEBUG] plugin.terraform-provider-azurerm_v1.33.0_x4: plugin address: address=/var/folders/8j/qynlblrn77xcj8lvcm11ydjm0000gn/T/plugin812677891 network=unix timestamp=2019-08-26T16:05:57.111+1000
2019/08/26 16:05:57 [TRACE] GRPCProvider: GetSchema
2019-08-26T16:05:57.179+1000 [DEBUG] plugin: plugin process exited: path=/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-azurerm_v1.33.0_x4 pid=46380
2019-08-26T16:05:57.179+1000 [DEBUG] plugin: plugin exited
[Error - 4:05:57 PM] Request textDocument/hover failed.
Error: The received response has neither a result nor an error property.
at handleInvalidMessage (/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:517:40)
at processMessageQueue (/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:266:17)
at Immediate.setImmediate (/Users/abest/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:247:13)
at runCallback (timers.js:694:18)
at tryOnImmediate (timers.js:665:5)
at processImmediate (timers.js:647:5)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x14d70ac]
goroutine 146 [running]:
github.com/hashicorp/terraform/lang.(*Scope).evalContext(0xc00065cff0, 0xc0004440d0, 0x1, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0)
/home/travis/gopath/pkg/mod/github.com/hashicorp/terraform@v0.12.5/lang/eval.go:184 +0x11c
github.com/hashicorp/terraform/lang.(*Scope).EvalContext(0xc00065cff0, 0xc0004440d0, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0)
/home/travis/gopath/pkg/mod/github.com/hashicorp/terraform@v0.12.5/lang/eval.go:160 +0x5f
github.com/hashicorp/terraform/lang.(*Scope).EvalExpr(0xc00065cff0, 0x1da8e00, 0xc00011e000, 0x1da9ac0, 0x2542040, 0x1ad9260, 0xc0000f2400, 0x1bdd169, 0x8, 0xc00049c2c0, ...)
/home/travis/gopath/pkg/mod/github.com/hashicorp/terraform@v0.12.5/lang/eval.go:87 +0xa0
main.TextDocumentHover(0x1da87c0, 0xc00024a0c0, 0xc0006ce000, 0x36, 0x8, 0x21, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/main.go:549 +0x28c
reflect.Value.call(0x1a8dcc0, 0x1c20698, 0x13, 0x1bd8646, 0x4, 0xc00024a180, 0x2, 0x2, 0xc000593000, 0xc0001a9dc8, ...)
/home/travis/.gimme/versions/go1.11.12.linux.amd64/src/reflect/value.go:447 +0x454
reflect.Value.Call(0x1a8dcc0, 0x1c20698, 0x13, 0xc00024a180, 0x2, 0x2, 0x1a313c0, 0xc00024a180, 0x1)
/home/travis/.gimme/versions/go1.11.12.linux.amd64/src/reflect/value.go:308 +0xa4
reflect.Value.Call-fm(0xc00024a180, 0x2, 0x2, 0x1, 0xc00000afc0, 0x1)
/home/travis/gopath/pkg/mod/github.com/creachadair/jrpc2@v0.1.2/handler/handler.go:211 +0x60
github.com/creachadair/jrpc2/handler.newHandler.func7(0x1da87c0, 0xc00024a0c0, 0xc000440580, 0xc00007bcb0, 0xc0004baee8, 0x10, 0xc0004baee0)
/home/travis/gopath/pkg/mod/github.com/creachadair/jrpc2@v0.1.2/handler/handler.go:222 +0x22b
github.com/creachadair/jrpc2/handler.Func.Handle(0xc0002df440, 0x1da87c0, 0xc00024a0c0, 0xc000440580, 0x0, 0x0, 0x1da87c0, 0xc00024a0c0)
/home/travis/gopath/pkg/mod/github.com/creachadair/jrpc2@v0.1.2/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc0000b63c0, 0x1da8700, 0xc0004b0e80, 0x1d9d820, 0xc0002df440, 0xc000440580, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/pkg/mod/github.com/creachadair/jrpc2@v0.1.2/server.go:294 +0x1b0
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc00063b1d0, 0xc0000b63c0, 0xc0004ae510)
/home/travis/gopath/pkg/mod/github.com/creachadair/jrpc2@v0.1.2/server.go:185 +0x101
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/pkg/mod/github.com/creachadair/jrpc2@v0.1.2/server.go:183 +0x13a
[Error - 4:05:57 PM] Connection to server got closed. Server will not be restarted.
I'm running into the same issue after installing 1.4.0, just like @ausfestivus reported, but I am using AWS as my provider.
With the lsp version 0.0.9 I am not seeing these crashes using azurerm. Have you tried the latest lsp as well? Does it still occur?
I have 0.0.10:
$ /home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-lsp -version
v0.0.10, commit: 058c36f7fe4b68a7335cc63e066deebe3a3b238c, build on: 2020-02-17T14:32:20Z
and I'm getting this error (using AWS provider). Running Ubuntu 18.04. I'll paste my log here:
time="2020-02-19T19:38:51Z" level=info msg="Log Level is Debug: false"
time="2020-02-19T19:38:51Z" level=info msg="Server started"
2020-02-19T19:38:51.084Z [INFO] plugin: configuring client automatic mTLS
2020-02-19T19:38:51.109Z [DEBUG] plugin: starting plugin: path=/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-aws_v2.49.0_x4 args=[/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-aws_v2.49.0_x4]
2020-02-19T19:38:51.109Z [DEBUG] plugin: plugin started: path=/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-aws_v2.49.0_x4 pid=3194
2020-02-19T19:38:51.109Z [DEBUG] plugin: waiting for RPC address: path=/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-aws_v2.49.0_x4
2020-02-19T19:38:51.121Z [INFO] plugin.terraform-provider-aws_v2.49.0_x4: configuring server automatic mTLS: timestamp=2020-02-19T19:38:51.121Z
2020-02-19T19:38:51.150Z [DEBUG] plugin: using plugin: version=5
2020-02-19T19:38:51.150Z [DEBUG] plugin.terraform-provider-aws_v2.49.0_x4: plugin address: address=/tmp/plugin854519442 network=unix timestamp=2020-02-19T19:38:51.149Z
2020-02-19T19:38:51.237Z [DEBUG] plugin: plugin process exited: path=/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/lspbin/terraform-provider-aws_v2.49.0_x4 pid=3194
2020-02-19T19:38:51.238Z [DEBUG] plugin: plugin exited
panic: runtime error: slice bounds out of range
goroutine 100 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc000474760, 0xc00068ad5a, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x200
github.com/spf13/afero/mem.(*File).ReadAt(0xc000474760, 0xc00068ad5a, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13b1580, 0xc000305860)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x51
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc0003ec920, 0x13b1580, 0xc000474760, 0x33, 0x18, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x266
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a1a20, 0xc0005a4cc0, 0xc0005b4b80, 0x39, 0x32, 0x18, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c1
reflect.Value.call(0xf6b200, 0x110c3c8, 0x13, 0x10c22a3, 0x4, 0xc0005a4cf0, 0x2, 0x2, 0x0, 0xc0000e5dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x461
reflect.Value.Call(0xf6b200, 0x110c3c8, 0x13, 0xc0005a4cf0, 0x2, 0x2, 0x2, 0xc0005a4cf0, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xa4
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a1a20, 0xc0005a4cc0, 0xc000302540, 0xc0003020f0, 0xc0004fb6f0, 0x10, 0xc0004fb6e8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x20c
github.com/creachadair/jrpc2/handler.Func.Handle(0xc0002fb4c0, 0x13a1a20, 0xc0005a4cc0, 0xc000302540, 0x0, 0x0, 0x13a1a20, 0xc0005a4cc0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc000100480, 0x13a1960, 0xc00046e500, 0x13887a0, 0xc0002fb4c0, 0xc000302540, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1aa
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc0006624b0, 0xc000100480, 0xc000572120)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x101
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x13a
[Info - 19:39:21] Connection to server got closed. Server will restart.
[Error - 19:39:21] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:876:25)
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:71:35)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2153:42)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/main.js:151:15)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2140:18)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:226:26)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at StreamMessageReader.fireClose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket.<anonymous> (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-19T19:39:21Z" level=info msg="Log Level is Debug: false"
time="2020-02-19T19:39:21Z" level=info msg="Server started"
2020-02-19T19:39:21.540Z [INFO] plugin: configuring client automatic mTLS
panic: runtime error: slice bounds out of range
goroutine 51 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc0005b0780, 0xc00049a3e7, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x200
github.com/spf13/afero/mem.(*File).ReadAt(0xc0005b0780, 0xc00049a3e7, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13b1580, 0xc0002c4380)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x51
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc0002e0920, 0x13b1580, 0xc0005b0780, 0x33, 0x18, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x266
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a1a20, 0xc000320ae0, 0xc0002d4100, 0x39, 0x32, 0x18, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c1
reflect.Value.call(0xf6b200, 0x110c3c8, 0x13, 0x10c22a3, 0x4, 0xc000321230, 0x2, 0x2, 0x0, 0xc0002e1dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x461
reflect.Value.Call(0xf6b200, 0x110c3c8, 0x13, 0xc000321230, 0x2, 0x2, 0x2, 0xc000321230, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xa4
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a1a20, 0xc000320ae0, 0xc0002ca100, 0xc0002ca170, 0xc000507ef0, 0x10, 0xc000507ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x20c
github.com/creachadair/jrpc2/handler.Func.Handle(0xc00000e300, 0x13a1a20, 0xc000320ae0, 0xc0002ca100, 0x0, 0x0, 0x13a1a20, 0xc000320ae0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc0004d80c0, 0x13a1960, 0xc0002ca040, 0x13887a0, 0xc00000e300, 0xc0002ca100, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1aa
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc00049a150, 0xc0004d80c0, 0xc0002c6000)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x101
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x13a
[Info - 19:39:21] Connection to server got closed. Server will restart.
[Error - 19:39:21] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:876:25)
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:71:35)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2153:42)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/main.js:151:15)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2140:18)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:226:26)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at StreamMessageReader.fireClose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket.<anonymous> (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-19T19:39:21Z" level=info msg="Log Level is Debug: false"
time="2020-02-19T19:39:21Z" level=info msg="Server started"
2020-02-19T19:39:21.558Z [INFO] plugin: configuring client automatic mTLS
panic: runtime error: slice bounds out of range
goroutine 22 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc0002fbf00, 0xc0000384c7, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x200
github.com/spf13/afero/mem.(*File).ReadAt(0xc0002fbf00, 0xc0000384c7, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13b1580, 0xc0002aa380)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x51
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc000214920, 0x13b1580, 0xc0002fbf00, 0x33, 0x18, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x266
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a1a20, 0xc0002b6060, 0xc0002c2100, 0x39, 0x32, 0x18, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c1
reflect.Value.call(0xf6b200, 0x110c3c8, 0x13, 0x10c22a3, 0x4, 0xc0002b6210, 0x2, 0x2, 0x0, 0xc000215dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x461
reflect.Value.Call(0xf6b200, 0x110c3c8, 0x13, 0xc0002b6210, 0x2, 0x2, 0x2, 0xc0002b6210, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xa4
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a1a20, 0xc0002b6060, 0xc0000a1b80, 0xc0000a1bf0, 0xc0002b1ef0, 0x10, 0xc0002b1ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x20c
github.com/creachadair/jrpc2/handler.Func.Handle(0xc0002fb4e0, 0x13a1a20, 0xc0002b6060, 0xc0000a1b80, 0x0, 0x0, 0x13a1a20, 0xc0002b6060)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc000100480, 0x13a1960, 0xc0000a0440, 0x13887a0, 0xc0002fb4e0, 0xc0000a1b80, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1aa
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc0000380e0, 0xc000100480, 0xc000304090)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x101
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x13a
[Info - 19:39:21] Connection to server got closed. Server will restart.
[Error - 19:39:21] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:876:25)
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:71:35)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2153:42)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/main.js:151:15)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2140:18)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:226:26)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at StreamMessageReader.fireClose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket.<anonymous> (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-19T19:39:21Z" level=info msg="Log Level is Debug: false"
time="2020-02-19T19:39:21Z" level=info msg="Server started"
2020-02-19T19:39:21.577Z [INFO] plugin: configuring client automatic mTLS
panic: runtime error: slice bounds out of range
goroutine 66 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc000323ea0, 0xc0005dc2f7, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x200
github.com/spf13/afero/mem.(*File).ReadAt(0xc000323ea0, 0xc0005dc2f7, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13b1580, 0xc0006d03e0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x51
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc00013e920, 0x13b1580, 0xc000323ea0, 0x33, 0x18, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x266
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a1a20, 0xc000494690, 0xc00003e300, 0x39, 0x32, 0x18, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c1
reflect.Value.call(0xf6b200, 0x110c3c8, 0x13, 0x10c22a3, 0x4, 0xc0005da180, 0x2, 0x2, 0x0, 0xc00013fdd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x461
reflect.Value.Call(0xf6b200, 0x110c3c8, 0x13, 0xc0005da180, 0x2, 0x2, 0x2, 0xc0005da180, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xa4
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a1a20, 0xc000494690, 0xc0005ec100, 0xc0004b6270, 0xc0001db6f0, 0x10, 0xc0001db6e8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x20c
github.com/creachadair/jrpc2/handler.Func.Handle(0xc000323480, 0x13a1a20, 0xc000494690, 0xc0005ec100, 0x0, 0x0, 0x13a1a20, 0xc000494690)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc000112480, 0x13a1960, 0xc0005ec0c0, 0x13887a0, 0xc000323480, 0xc0005ec100, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1aa
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc0004a4030, 0xc000112480, 0xc000320120)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x101
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x13a
[Info - 19:39:21] Connection to server got closed. Server will restart.
[Error - 19:39:21] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:876:25)
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:71:35)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2153:42)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/main.js:151:15)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2140:18)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:226:26)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at StreamMessageReader.fireClose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket.<anonymous> (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-19T19:39:21Z" level=info msg="Log Level is Debug: false"
time="2020-02-19T19:39:21Z" level=info msg="Server started"
2020-02-19T19:39:21.598Z [INFO] plugin: configuring client automatic mTLS
panic: runtime error: slice bounds out of range
goroutine 24 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc000566740, 0xc0004f02d7, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x200
github.com/spf13/afero/mem.(*File).ReadAt(0xc000566740, 0xc0004f02d7, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13b1580, 0xc0002fac60)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x51
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc0001ce920, 0x13b1580, 0xc000566740, 0x33, 0x18, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x266
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a1a20, 0xc00047e2d0, 0xc00003e440, 0x39, 0x32, 0x18, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c1
reflect.Value.call(0xf6b200, 0x110c3c8, 0x13, 0x10c22a3, 0x4, 0xc00047e510, 0x2, 0x2, 0x0, 0xc0001cfdd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x461
reflect.Value.Call(0xf6b200, 0x110c3c8, 0x13, 0xc00047e510, 0x2, 0x2, 0x2, 0xc00047e510, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xa4
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a1a20, 0xc00047e2d0, 0xc000302180, 0xc0003021f0, 0xc0001b1ef0, 0x10, 0xc0001b1ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x20c
github.com/creachadair/jrpc2/handler.Func.Handle(0xc0004722e0, 0x13a1a20, 0xc00047e2d0, 0xc000302180, 0x0, 0x0, 0x13a1a20, 0xc00047e2d0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x44
github.com/creachadair/jrpc2.(*Server).invoke(0xc0004cc0c0, 0x13a1960, 0xc0003020c0, 0x13887a0, 0xc0004722e0, 0xc000302180, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1aa
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc0004f0040, 0xc0004cc0c0, 0xc0004b01b0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x101
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x13a
[Error - 19:39:21] Connection to server got closed. Server will not be restarted.
[Error - 19:39:21] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:876:25)
at Object.dispose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:71:35)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2153:42)
at LanguageClient.handleConnectionClosed (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/main.js:151:15)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-languageclient/lib/client.js:2140:18)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at closeHandler (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/main.js:226:26)
at CallbackList.invoke (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:62:39)
at Emitter.fire (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/events.js:120:36)
at StreamMessageReader.fireClose (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:111:27)
at Socket.<anonymous> (/home/mendhak/.vscode/extensions/mauve.terraform-1.4.0/node_modules/vscode-jsonrpc/lib/messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
I am encountering the same issue.
Terraform: 1.4.0 terraform-lsp: 0.10.0 Visual Studio Code: Version: 1.42.1 (user setup) OS: Windows_NT x64 10.0.18363
panic: runtime error: slice bounds out of range
goroutine 13 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc00044cc20, 0xc000032778, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x207
github.com/spf13/afero/mem.(*File).ReadAt(0xc00044cc20, 0xc000032778, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13ba4a0, 0xc0004344c0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x58
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc0001c4920, 0x13ba4a0, 0xc00044cc20, 0xf, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x26d
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a9ea0, 0xc000432210, 0xc00008e000, 0x5d, 0xe, 0x19, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c8
reflect.Value.call(0xf78be0, 0x11191d0, 0x13, 0x10ce0e7, 0x4, 0xc000432390, 0x2, 0x2, 0x0, 0xc0001c5dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x468
reflect.Value.Call(0xf78be0, 0x11191d0, 0x13, 0xc000432390, 0x2, 0x2, 0x2, 0xc000432390, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xab
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a9ea0, 0xc000432210, 0xc00041a200, 0xc000446330, 0xc0004b9ef0, 0x10, 0xc0004b9ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x213
github.com/creachadair/jrpc2/handler.Func.Handle(0xc00044c260, 0x13a9ea0, 0xc000432210, 0xc00041a200, 0x0, 0x0, 0x13a9ea0, 0xc000432210)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x4b
github.com/creachadair/jrpc2.(*Server).invoke(0xc00049c0c0, 0x13a9de0, 0xc00041a1c0, 0x13910e0, 0xc00044c260, 0xc00041a200, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1b1
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc000032570, 0xc00049c0c0, 0xc00008a000)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x108
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x141
[Info - 7:53:42 AM] Connection to server got closed. Server will restart.
[Error - 7:53:42 AM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:876:25)
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:71:35)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2153:42)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\main.js:151:15)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2140:18)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:226:26)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at StreamMessageReader.fireClose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:111:27)
at Socket.<anonymous> (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-25T07:53:42-05:00" level=info msg="Log Level is Debug: false"
time="2020-02-25T07:53:42-05:00" level=info msg="Server started"
panic: runtime error: slice bounds out of range
goroutine 5 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc0002f9920, 0xc00049c250, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x207
github.com/spf13/afero/mem.(*File).ReadAt(0xc0002f9920, 0xc00049c250, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13ba4a0, 0xc000004300)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x58
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc00000e920, 0x13ba4a0, 0xc0002f9920, 0xf, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x26d
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a9ea0, 0xc0002c6240, 0xc0003c0000, 0x5d, 0xe, 0x19, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c8
reflect.Value.call(0xf78be0, 0x11191d0, 0x13, 0x10ce0e7, 0x4, 0xc0002c7b90, 0x2, 0x2, 0x0, 0xc00000fdd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x468
reflect.Value.Call(0xf78be0, 0x11191d0, 0x13, 0xc0002c7b90, 0x2, 0x2, 0x2, 0xc0002c7b90, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xab
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a9ea0, 0xc0002c6240, 0xc00035a0c0, 0xc00035a130, 0xc0003f7ef0, 0x10, 0xc0003f7ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x213
github.com/creachadair/jrpc2/handler.Func.Handle(0xc0001f88e0, 0x13a9ea0, 0xc0002c6240, 0xc00035a0c0, 0x0, 0x0, 0x13a9ea0, 0xc0002c6240)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x4b
github.com/creachadair/jrpc2.(*Server).invoke(0xc0000d63c0, 0x13a9de0, 0xc00035a040, 0x13910e0, 0xc0001f88e0, 0xc00035a0c0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1b1
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc00049c040, 0xc0000d63c0, 0xc000490000)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x108
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x141
[Info - 7:53:42 AM] Connection to server got closed. Server will restart.
[Error - 7:53:42 AM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:876:25)
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:71:35)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2153:42)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\main.js:151:15)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2140:18)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:226:26)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at StreamMessageReader.fireClose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:111:27)
at Socket.<anonymous> (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-25T07:53:42-05:00" level=info msg="Log Level is Debug: false"
time="2020-02-25T07:53:42-05:00" level=info msg="Server started"
panic: runtime error: slice bounds out of range
goroutine 51 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc000450600, 0xc000384390, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x207
github.com/spf13/afero/mem.(*File).ReadAt(0xc000450600, 0xc000384390, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13ba4a0, 0xc0001f8520)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x58
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc000290920, 0x13ba4a0, 0xc000450600, 0xf, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x26d
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a9ea0, 0xc000337ef0, 0xc000014000, 0x5d, 0xe, 0x19, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c8
reflect.Value.call(0xf78be0, 0x11191d0, 0x13, 0x10ce0e7, 0x4, 0xc000367260, 0x2, 0x2, 0x0, 0xc000291dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x468
reflect.Value.Call(0xf78be0, 0x11191d0, 0x13, 0xc000367260, 0x2, 0x2, 0x2, 0xc000367260, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xab
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a9ea0, 0xc000337ef0, 0xc0004903c0, 0xc000490430, 0xc000009ef0, 0x10, 0xc000009ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x213
github.com/creachadair/jrpc2/handler.Func.Handle(0xc000474240, 0x13a9ea0, 0xc000337ef0, 0xc0004903c0, 0x0, 0x0, 0x13a9ea0, 0xc000337ef0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x4b
github.com/creachadair/jrpc2.(*Server).invoke(0xc0005080c0, 0x13a9de0, 0xc000490300, 0x13910e0, 0xc000474240, 0xc0004903c0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1b1
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc000384010, 0xc0005080c0, 0xc000012000)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x108
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x141
[Info - 7:53:42 AM] Connection to server got closed. Server will restart.
[Error - 7:53:42 AM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:876:25)
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:71:35)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2153:42)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\main.js:151:15)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2140:18)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:226:26)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at StreamMessageReader.fireClose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:111:27)
at Socket.<anonymous> (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-25T07:53:43-05:00" level=info msg="Log Level is Debug: false"
time="2020-02-25T07:53:43-05:00" level=info msg="Server started"
panic: runtime error: slice bounds out of range
goroutine 10 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc000460040, 0xc00007a858, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x207
github.com/spf13/afero/mem.(*File).ReadAt(0xc000460040, 0xc00007a858, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13ba4a0, 0xc000071f00)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x58
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc000440920, 0x13ba4a0, 0xc000460040, 0xf, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x26d
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a9ea0, 0xc0003339b0, 0xc0004e6120, 0x5d, 0xe, 0x19, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c8
reflect.Value.call(0xf78be0, 0x11191d0, 0x13, 0x10ce0e7, 0x4, 0xc000333b30, 0x2, 0x2, 0x0, 0xc000441dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x468
reflect.Value.Call(0xf78be0, 0x11191d0, 0x13, 0xc000333b30, 0x2, 0x2, 0x2, 0xc000333b30, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xab
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a9ea0, 0xc0003339b0, 0xc00047a380, 0xc00010f470, 0xc000551ef0, 0x10, 0xc000551ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x213
github.com/creachadair/jrpc2/handler.Func.Handle(0xc000474280, 0x13a9ea0, 0xc0003339b0, 0xc00047a380, 0x0, 0x0, 0x13a9ea0, 0xc0003339b0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x4b
github.com/creachadair/jrpc2.(*Server).invoke(0xc0004e40c0, 0x13a9de0, 0xc00047a340, 0x13910e0, 0xc000474280, 0xc00047a380, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1b1
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc00007a650, 0xc0004e40c0, 0xc0004c4900)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x108
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x141
[Info - 7:53:43 AM] Connection to server got closed. Server will restart.
[Error - 7:53:43 AM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:876:25)
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:71:35)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2153:42)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\main.js:151:15)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2140:18)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:226:26)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at StreamMessageReader.fireClose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:111:27)
at Socket.<anonymous> (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
time="2020-02-25T07:53:43-05:00" level=info msg="Log Level is Debug: false"
time="2020-02-25T07:53:43-05:00" level=info msg="Server started"
panic: runtime error: slice bounds out of range
goroutine 40 [running]:
github.com/spf13/afero/mem.(*File).Read(0xc000005ee0, 0xc00047c710, 0x1, 0x1, 0x1, 0x0, 0x0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:190 +0x207
github.com/spf13/afero/mem.(*File).ReadAt(0xc000005ee0, 0xc00047c710, 0x1, 0x1, 0xffffffffffffffff, 0xc, 0x13ba4a0, 0xc000474a80)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/spf13/afero/mem/file.go:197 +0x58
github.com/juliosueiras/terraform-lsp/helper.CheckAndGetConfig(0xc0003d0920, 0x13ba4a0, 0xc000005ee0, 0xf, 0x19, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/helper/file.go:29 +0x26d
github.com/juliosueiras/terraform-lsp/langserver.TextDocumentComplete(0x13a9ea0, 0xc00047a5a0, 0xc0003aa1e0, 0x5d, 0xe, 0x19, 0x1, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/langserver/complete.go:50 +0x3c8
reflect.Value.call(0xf78be0, 0x11191d0, 0x13, 0x10ce0e7, 0x4, 0xc00047a720, 0x2, 0x2, 0x0, 0xc0003d1dd0, ...)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:447 +0x468
reflect.Value.Call(0xf78be0, 0x11191d0, 0x13, 0xc00047a720, 0x2, 0x2, 0x2, 0xc00047a720, 0x1)
/home/travis/.gimme/versions/go1.12.linux.amd64/src/reflect/value.go:308 +0xab
github.com/creachadair/jrpc2/handler.newHandler.func7(0x13a9ea0, 0xc00047a5a0, 0xc000360500, 0xc000360570, 0xc000391ef0, 0x10, 0xc000391ee8)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:222 +0x213
github.com/creachadair/jrpc2/handler.Func.Handle(0xc000370900, 0x13a9ea0, 0xc00047a5a0, 0xc000360500, 0x0, 0x0, 0x13a9ea0, 0xc00047a5a0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/handler/handler.go:23 +0x4b
github.com/creachadair/jrpc2.(*Server).invoke(0xc0003b6300, 0x13a9de0, 0xc000360480, 0x13910e0, 0xc000370900, 0xc000360500, 0x0, 0x0, 0x0, 0x0, ...)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:294 +0x1b1
github.com/creachadair/jrpc2.(*Server).dispatch.func1(0xc00047c500, 0xc0003b6300, 0xc0003841b0)
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:185 +0x108
created by github.com/creachadair/jrpc2.(*Server).dispatch
/home/travis/gopath/src/github.com/juliosueiras/terraform-lsp/vendor/github.com/creachadair/jrpc2/server.go:183 +0x141
[Error - 7:53:43 AM] Connection to server got closed. Server will not be restarted.
[Error - 7:53:43 AM] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:876:25)
at Object.dispose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:71:35)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2153:42)
at LanguageClient.handleConnectionClosed (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\main.js:151:15)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-languageclient\lib\client.js:2140:18)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at closeHandler (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\main.js:226:26)
at CallbackList.invoke (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:62:39)
at Emitter.fire (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\events.js:120:36)
at StreamMessageReader.fireClose (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:111:27)
at Socket.<anonymous> (c:\Users\45413\.vscode\extensions\mauve.terraform-1.4.0\node_modules\vscode-jsonrpc\lib\messageReader.js:151:46)
at Socket.emit (events.js:205:15)
at Pipe.<anonymous> (net.js:586:12)
will close this for now, please reopen if the issue still persist in the newest version
Hi,
Haven't had a chance to dig into this one much, currently seeing the following when using in a set of
tfs
usingazurerm
provider.