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

x/tools/gopls: crash due to panic: invalid Pos value (go/token/position.go:281) #47231

Closed
Gusted opened this issue Jul 15, 2021 · 1 comment
Closed
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@Gusted
Copy link
Contributor

Gusted commented Jul 15, 2021

gopls version: v0.7.0
gopls flags:
update flags: proxy
extension version: 2021.7.219
go version: 1.16.5
environment: VSCodium linux
initialization error: undefined
manual restart count: 0
total start count: 1

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

So pretty much, second time it happened. I was just doing some text editing of some variables, and out of nowhere the crash popped up. I'm not sure if I did really anything strange.

panic: invalid Pos value 5242695 (should be in [5240473, 5242689[)

goroutine 1588 [running]:
go/token.(*File).Offset(0xc002909560, 0x4fff47, 0x889)
	  position.go:281  0x146
golang.org/x/tools/internal/lsp/cache.fixArrayType(0xc00297cdd0, 0xfb0d70, 0xc00297e8c0, 0xc002909560, 0xc001854900, 0x8a8, 0x900, 0x60c700)
	  parse.go:1074  0xe6
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0aa0, 0xc00297cdd0, 0xfb0d70, 0xc00297e8c0, 0xd9e500)
	  parse.go:689  0x2fe
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0aa0, 0xc00297cdd0, 0xc002ada600)
	  parse.go:749  0xb2
go/ast.inspector.Visit(0xc00295ac00, 0xfb0aa0, 0xc00297cdd0, 0x0, 0x0)
	  walk.go:373  0x3a
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0aa0, 0xc00297cdd0)
	  walk.go:52  0x63
go/ast.walkExprList(0xfae140, 0xc00295ac00, 0xc00297e840, 0x3, 0x4)
	  walk.go:26  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0d70, 0xc00297e8c0)
	  walk.go:104  0x406
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0b40, 0xc002971380)
	  walk.go:147  0x17fe
go/ast.walkExprList(0xfae140, 0xc00295ac00, 0xc00297e700, 0x4, 0x4)
	  walk.go:26  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0d70, 0xc00297e900)
	  walk.go:104  0x406
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0b40, 0xc0029713b0)
	  walk.go:147  0x17fe
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0e60, 0xc002959e90)
	  walk.go:196  0x1a05
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959ea0, 0x1, 0x1)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc0029713e0)
	  walk.go:224  0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb1040, 0xc00297e940)
	  walk.go:231  0x1af2
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959eb0, 0x1, 0x1)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002971410)
	  walk.go:224  0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0f00, 0xc00297e980)
	  walk.go:275  0x6aa
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959ec0, 0x1, 0x1)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002971440)
	  walk.go:224  0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb1040, 0xc00297e9c0)
	  walk.go:231  0x1af2
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002907980, 0x6, 0x8)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002971470)
	  walk.go:224  0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0f00, 0xc00297ea00)
	  walk.go:275  0x6aa
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959ed0, 0x1, 0x1)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc0029714a0)
	  walk.go:224  0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0f50, 0xc002959ee0)
	  walk.go:98  0x29f2
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0c08, 0xc00297ea40)
	  walk.go:136  0xf85
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0fc8, 0xc002959830)
	  walk.go:210  0x385
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959800, 0x1, 0x1)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002970d20)
	  walk.go:224  0x1968
go/ast.Inspect(...)
	  walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0bb8, 0xc002970d20, 0xc002962640)
	  parse.go:732  0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc002953d10, 0xfb0bb8, 0xc002970d20, 0xc002909560, 0xc001854900, 0x8a8, 0x900, 0xc00295a8d0)
	  parse.go:678  0x105
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0ac8, 0xc00297c540, 0xfb0bb8, 0xc002970d20, 0xd9e520)
	  parse.go:683  0x20a
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0ac8, 0xc00297c540, 0xc00295a800)
	  parse.go:749  0xb2
go/ast.inspector.Visit(0xc00295a8d0, 0xfb0ac8, 0xc00297c540, 0x60f6da, 0x0)
	  walk.go:373  0x3a
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0ac8, 0xc00297c540)
	  walk.go:52  0x63
go/ast.walkStmtList(0xfae140, 0xc00295a8d0, 0xc002959800, 0x1, 0x1)
	  walk.go:32  0x9e
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0bb8, 0xc002970d20)
	  walk.go:224  0x1968
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0f28, 0xc002970d50)
	  walk.go:344  0xce6
go/ast.walkDeclList(0xfae140, 0xc00295a8d0, 0xc002960840, 0x4, 0x4)
	  walk.go:38  0x9e
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0ed8, 0xc002907700)
	  walk.go:353  0x2446
go/ast.Inspect(...)
	  walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0ed8, 0xc002907700, 0xc002962460)
	  parse.go:732  0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc002953d10, 0xfb0ed8, 0xc002907700, 0xc002909560, 0xc001854900, 0x8a8, 0x900, 0xc00295a8a0)
	  parse.go:678  0x105
golang.org/x/tools/internal/lsp/cache.parseGo(0xfbf318, 0xc002953d10, 0xc000123840, 0xfc3218, 0xc000675380, 0x2, 0x0)
	  parse.go:283  0x9ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle.func1(0xfbf318, 0xc002960200, 0xfad200, 0xc0014c60e0, 0xc0005a7008, 0x0)
	  parse.go:62  0x7d
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc002958f20, 0xfbf318, 0xc002960200, 0xc002107ae0, 0xfad200, 0xc0014c60e0, 0xc00103b0e0)
	  memoize.go:322  0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	  memoize.go:315  0x185
[Error - 8:06:59 PM] 

GOPLS server log:

[Info  - 8:03:43 PM] 2021/07/15 20:03:43 go env for /home/gusted/Desktop/coding/bot
(root /home/gusted/Desktop/coding/bot)
(go version go version go1.16.5 linux/amd64)
(valid build configuration = true)
(build flags: [])
GONOPROXY=
GOPATH=/home/gusted/go
GOPROXY=https://proxy.golang.org,direct
GOMOD=/home/gusted/Desktop/coding/bot/go.mod
GOPRIVATE=
GOROOT=/usr/lib/go
GOMODCACHE=/home/gusted/go/pkg/mod
GONOSUMDB=
GO111MODULE=
GOSUMDB=sum.golang.org
GOCACHE=/home/gusted/.cache/go-build
GOFLAGS=
GOINSECURE=


[Info  - 8:03:43 PM] 2021/07/15 20:03:43 go/packages.Load
	snapshot=0
	directory=/home/gusted/Desktop/coding/bot
	query=[bot/... builtin]
	packages=7

[Info  - 8:03:44 PM] 2021/07/15 20:03:44 falling back to safe trimming due to type errors: [/usr/lib/go/src/runtime/vdso_linux.go:54:38: invalid operation: division by zero /usr/lib/go/src/runtime/vdso_linux.go:55:38: invalid operation: division by zero] or still-missing identifiers: map[memRecordCycle:true pageBits:true]
	package="runtime"

[Info  - 8:03:44 PM] 2021/07/15 20:03:44 discovered missing identifiers: map[options:true]
	package="vendor/golang.org/x/text/unicode/bidi"

[Info  - 8:03:44 PM] 2021/07/15 20:03:44 discovered missing identifiers: map[encoder:true]
	package="image/png"

[Info  - 8:04:13 PM] 2021/07/15 20:04:13 background imports cache refresh starting

[Info  - 8:04:14 PM] 2021/07/15 20:04:14 background refresh finished after 54.66734ms

[Error - 8:04:19 PM] Request textDocument/definition failed.
  Message: no identifier found
  Code: 0 
[Info  - 8:04:50 PM] 2021/07/15 20:04:50 background imports cache refresh starting

[Info  - 8:04:50 PM] 2021/07/15 20:04:50 background refresh finished after 14.599771ms

[Error - 8:05:18 PM] 2021/07/15 20:05:18 no signature help: cannot find an enclosing function
	position={25 5}

[Error - 8:05:18 PM] 2021/07/15 20:05:18 imports fixes: AllImportsFixes: /home/gusted/Desktop/coding/bot/utils/knock-port.go:28:2: expected ')', found 'return' (and 9 more errors)
	file="/home/gusted/Desktop/coding/bot/utils/knock-port.go"

[Error - 8:05:22 PM] 2021/07/15 20:05:22 unable to compute positions for type errors: no parsed file for  in bot/utils
	package="bot/utils"

[Error - 8:05:22 PM] 2021/07/15 20:05:22 unable to compute positions for type errors: invalid pos
	package="bot/utils"

[Error - 8:05:22 PM] 2021/07/15 20:05:22 DocumentSymbols failed: invalid pos
	URI=file:///home/gusted/Desktop/coding/bot/utils/knock-port.go

[Error - 8:05:22 PM] 2021/07/15 20:05:22 imports fixes: AllImportsFixes: /home/gusted/Desktop/coding/bot/utils/knock-port.go:28:2: expected operand, found 'return' (and 15 more errors)
	file="/home/gusted/Desktop/coding/bot/utils/knock-port.go"

[Error - 8:05:23 PM] 2021/07/15 20:05:23 no signature help: cannot find an enclosing function
	position={27 2}

[Info  - 8:05:44 PM] 2021/07/15 20:05:44 background imports cache refresh starting

[Info  - 8:05:44 PM] 2021/07/15 20:05:44 background refresh finished after 13.469362ms

[Info  - 8:06:26 PM] 2021/07/15 20:06:26 background imports cache refresh starting

[Info  - 8:06:26 PM] 2021/07/15 20:06:26 background refresh finished after 14.480352ms

[Error - 8:06:49 PM] 2021/07/15 20:06:49 no completions found: this is a definition of var _ error
	position={64 12}

panic: invalid Pos value 19117163 (should be in [19114941, 19117157[)

goroutine 5872 [running]:
go/token.(*File).Offset(0xc001a386c0, 0x123b46b, 0x889)
	/usr/lib/go/src/go/token/position.go:281 +0x146
golang.org/x/tools/internal/lsp/cache.fixArrayType(0xc003e210e0, 0xfb0d70, 0xc003a41140, 0xc001a386c0, 0xc001687000, 0x8a8, 0xfcf, 0x60c700)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:1074 +0xe6
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0aa0, 0xc003e210e0, 0xfb0d70, 0xc003a41140, 0xd9e500)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:689 +0x2fe
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0aa0, 0xc003e210e0, 0xc001738700)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc0033289f0, 0xfb0aa0, 0xc003e210e0, 0x0, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0aa0, 0xc003e210e0)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkExprList(0xfae140, 0xc0033289f0, 0xc003a410c0, 0x3, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0d70, 0xc003a41140)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0b40, 0xc003908e40)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.walkExprList(0xfae140, 0xc0033289f0, 0xc003a40f40, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0d70, 0xc003a41180)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0b40, 0xc003908e70)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0e60, 0xc001dc1030)
	/usr/lib/go/src/go/ast/walk.go:196 +0x1a05
go/ast.walkStmtList(0xfae140, 0xc0033289f0, 0xc001dc1040, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0bb8, 0xc003908ea0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb1040, 0xc003a411c0)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc0033289f0, 0xc001dc1050, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0bb8, 0xc003908ed0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0f00, 0xc003a41200)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc0033289f0, 0xc001dc1060, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0bb8, 0xc003908f00)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb1040, 0xc003a41240)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc0033289f0, 0xc005fa5080, 0x6, 0x8)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0bb8, 0xc003908f30)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0f00, 0xc003a41280)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc0033289f0, 0xc001dc1070, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0bb8, 0xc003908f60)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0f50, 0xc001dc1080)
	/usr/lib/go/src/go/ast/walk.go:98 +0x29f2
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0c08, 0xc003a412c0)
	/usr/lib/go/src/go/ast/walk.go:136 +0xf85
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0fc8, 0xc001dc09c0)
	/usr/lib/go/src/go/ast/walk.go:210 +0x385
go/ast.walkStmtList(0xfae140, 0xc0033289f0, 0xc001dc0990, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033289f0, 0xfb0bb8, 0xc003908780)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0bb8, 0xc003908780, 0xc00572a870)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc001aaf5c0, 0xfb0bb8, 0xc003908780, 0xc001a386c0, 0xc001687000, 0x8a8, 0xfcf, 0xc0033286c0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0ac8, 0xc003e20800, 0xfb0bb8, 0xc003908780, 0xd9e520)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:683 +0x20a
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0ac8, 0xc003e20800, 0xc003328600)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc0033286c0, 0xfb0ac8, 0xc003e20800, 0x60f6da, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc0033286c0, 0xfb0ac8, 0xc003e20800)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkStmtList(0xfae140, 0xc0033286c0, 0xc001dc0990, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0033286c0, 0xfb0bb8, 0xc003908780)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0033286c0, 0xfb0f28, 0xc0039087b0)
	/usr/lib/go/src/go/ast/walk.go:344 +0xce6
go/ast.walkDeclList(0xfae140, 0xc0033286c0, 0xc003a34100, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:38 +0x9e
go/ast.Walk(0xfae140, 0xc0033286c0, 0xfb0ed8, 0xc005fa4e00)
	/usr/lib/go/src/go/ast/walk.go:353 +0x2446
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0ed8, 0xc005fa4e00, 0xc00572a690)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc001aaf5c0, 0xfb0ed8, 0xc005fa4e00, 0xc001a386c0, 0xc001687000, 0x8a8, 0xfcf, 0xc003328690)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.parseGo(0xfbf318, 0xc001aaf5c0, 0xc000201fc0, 0xfc3218, 0xc001a38060, 0x2, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:283 +0x9ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle.func1(0xfbf318, 0xc003949b00, 0xfad200, 0xc0023a40e0, 0xc0050fa2a0, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:62 +0x7d
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc001dc0010, 0xfbf318, 0xc003949b00, 0xc002f377a0, 0xfad200, 0xc0023a40e0, 0xc001a381e0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:322 +0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:315 +0x185
[Info  - 8:06:50 PM] Connection to server got closed. Server will restart.
[Info  - 8:06:50 PM] 2021/07/15 20:06:50 go env for /home/gusted/Desktop/coding/bot
(root /home/gusted/Desktop/coding/bot)
(go version go version go1.16.5 linux/amd64)
(valid build configuration = true)
(build flags: [])
GOROOT=/usr/lib/go
GONOSUMDB=
GOPRIVATE=
GOPATH=/home/gusted/go
GO111MODULE=
GOCACHE=/home/gusted/.cache/go-build
GOMOD=/home/gusted/Desktop/coding/bot/go.mod
GOPROXY=https://proxy.golang.org,direct
GONOPROXY=
GOMODCACHE=/home/gusted/go/pkg/mod
GOSUMDB=sum.golang.org
GOFLAGS=
GOINSECURE=


[Info  - 8:06:50 PM] 2021/07/15 20:06:50 go/packages.Load
	snapshot=0
	directory=/home/gusted/Desktop/coding/bot
	query=[bot/... builtin]
	packages=7

panic: invalid Pos value 8733431 (should be in [8731209, 8733425[)

goroutine 1597 [running]:
go/token.(*File).Offset(0xc002778600, 0x8542f7, 0x889)
	/usr/lib/go/src/go/token/position.go:281 +0x146
golang.org/x/tools/internal/lsp/cache.fixArrayType(0xc00245bee0, 0xfb0d70, 0xc002768400, 0xc002778600, 0xc000ebb200, 0x8a8, 0x900, 0x60c700)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:1074 +0xe6
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0aa0, 0xc00245bee0, 0xfb0d70, 0xc002768400, 0xd9e500)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:689 +0x2fe
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0aa0, 0xc00245bee0, 0xc0013af000)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc00243f140, 0xfb0aa0, 0xc00245bee0, 0x0, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0aa0, 0xc00245bee0)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkExprList(0xfae140, 0xc00243f140, 0xc002768380, 0x3, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0d70, 0xc002768400)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0b40, 0xc0024fd140)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.walkExprList(0xfae140, 0xc00243f140, 0xc002768240, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0d70, 0xc002768440)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0b40, 0xc0024fd170)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0e60, 0xc001cf6490)
	/usr/lib/go/src/go/ast/walk.go:196 +0x1a05
go/ast.walkStmtList(0xfae140, 0xc00243f140, 0xc001cf64a0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0bb8, 0xc0024fd1a0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb1040, 0xc002768480)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc00243f140, 0xc001cf64b0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0bb8, 0xc0024fd1d0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0f00, 0xc0027684c0)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc00243f140, 0xc001cf64e0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0bb8, 0xc0024fd200)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb1040, 0xc002768500)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc00243f140, 0xc002dfd880, 0x6, 0x8)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0bb8, 0xc0024fd230)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0f00, 0xc002768540)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc00243f140, 0xc001cf64f0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0bb8, 0xc0024fd260)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0f50, 0xc001cf6500)
	/usr/lib/go/src/go/ast/walk.go:98 +0x29f2
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0c08, 0xc002768580)
	/usr/lib/go/src/go/ast/walk.go:136 +0xf85
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0fc8, 0xc00157dc40)
	/usr/lib/go/src/go/ast/walk.go:210 +0x385
go/ast.walkStmtList(0xfae140, 0xc00243f140, 0xc00157dbc0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243f140, 0xfb0bb8, 0xc0024fc960)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0bb8, 0xc0024fc960, 0xc001ca5040)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc0022cb7d0, 0xfb0bb8, 0xc0024fc960, 0xc002778600, 0xc000ebb200, 0x8a8, 0x900, 0xc00243ecf0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0ac8, 0xc00245b640, 0xfb0bb8, 0xc0024fc960, 0xd9e520)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:683 +0x20a
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0ac8, 0xc00245b640, 0xc00243ec00)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc00243ecf0, 0xfb0ac8, 0xc00245b640, 0x60f6da, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc00243ecf0, 0xfb0ac8, 0xc00245b640)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkStmtList(0xfae140, 0xc00243ecf0, 0xc00157dbc0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00243ecf0, 0xfb0bb8, 0xc0024fc960)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00243ecf0, 0xfb0f28, 0xc0024fc990)
	/usr/lib/go/src/go/ast/walk.go:344 +0xce6
go/ast.walkDeclList(0xfae140, 0xc00243ecf0, 0xc0026b3980, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:38 +0x9e
go/ast.Walk(0xfae140, 0xc00243ecf0, 0xfb0ed8, 0xc002dfd600)
	/usr/lib/go/src/go/ast/walk.go:353 +0x2446
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0ed8, 0xc002dfd600, 0xc001ca4910)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc0022cb7d0, 0xfb0ed8, 0xc002dfd600, 0xc002778600, 0xc000ebb200, 0x8a8, 0x900, 0xc00243ecc0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.parseGo(0xfbf318, 0xc0022cb7d0, 0xc00040c540, 0xfc3218, 0xc00279cd20, 0x2, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:283 +0x9ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle.func1(0xfbf318, 0xc0026b3180, 0xfad200, 0xc000cc3b20, 0x0, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:62 +0x7d
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc00157d240, 0xfbf318, 0xc0026b3180, 0xc0009d0760, 0xfad200, 0xc000cc3b20, 0xc0027784e0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:322 +0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:315 +0x185
[Info  - 8:06:51 PM] Connection to server got closed. Server will restart.
[Error - 8:06:51 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:51 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:51 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:51 PM] Request textDocument/completion failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Info  - 8:06:51 PM] 2021/07/15 20:06:51 go env for /home/gusted/Desktop/coding/bot
(root /home/gusted/Desktop/coding/bot)
(go version go version go1.16.5 linux/amd64)
(valid build configuration = true)
(build flags: [])
GOPATH=/home/gusted/go
GO111MODULE=
GOMOD=/home/gusted/Desktop/coding/bot/go.mod
GONOPROXY=
GOPROXY=https://proxy.golang.org,direct
GOSUMDB=sum.golang.org
GOMODCACHE=/home/gusted/go/pkg/mod
GONOSUMDB=
GOFLAGS=
GOINSECURE=
GOPRIVATE=
GOROOT=/usr/lib/go
GOCACHE=/home/gusted/.cache/go-build


[Info  - 8:06:51 PM] 2021/07/15 20:06:51 go/packages.Load
	snapshot=0
	directory=/home/gusted/Desktop/coding/bot
	query=[bot/... builtin]
	packages=7

[Info  - 8:06:51 PM] 2021/07/15 20:06:51 falling back to safe trimming due to type errors: [/usr/lib/go/src/runtime/vdso_linux.go:54:38: invalid operation: division by zero /usr/lib/go/src/runtime/vdso_linux.go:55:38: invalid operation: division by zero] or still-missing identifiers: map[memRecordCycle:true pageBits:true]
	package="runtime"

[Info  - 8:06:51 PM] 2021/07/15 20:06:51 discovered missing identifiers: map[options:true]
	package="vendor/golang.org/x/text/unicode/bidi"

[Info  - 8:06:51 PM] 2021/07/15 20:06:51 discovered missing identifiers: map[encoder:true]
	package="image/png"

[Error - 8:06:51 PM] 2021/07/15 20:06:51 no completions found: this is a definition of var p string
	position={64 9}

panic: invalid Pos value 18605701 (should be in [18603479, 18605695[)

goroutine 2310 [running]:
go/token.(*File).Offset(0xc003b06660, 0x11be685, 0x889)
	/usr/lib/go/src/go/token/position.go:281 +0x146
golang.org/x/tools/internal/lsp/cache.fixArrayType(0xc003267170, 0xfb0d70, 0xc0046b43c0, 0xc003b06660, 0xc0029f7000, 0x8a8, 0xfcf, 0x60c700)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:1074 +0xe6
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0aa0, 0xc003267170, 0xfb0d70, 0xc0046b43c0, 0xd9e500)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:689 +0x2fe
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0aa0, 0xc003267170, 0xc001252000)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc0028c5a28, 0xfb0aa0, 0xc003267170, 0x0, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0aa0, 0xc003267170)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkExprList(0xfae140, 0xc0028c5a28, 0xc0046b4340, 0x3, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0d70, 0xc0046b43c0)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0b40, 0xc004853f50)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.walkExprList(0xfae140, 0xc0028c5a28, 0xc0046b4200, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0d70, 0xc0046b4400)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0b40, 0xc004853fb0)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0e60, 0xc004656360)
	/usr/lib/go/src/go/ast/walk.go:196 +0x1a05
go/ast.walkStmtList(0xfae140, 0xc0028c5a28, 0xc004656410, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0bb8, 0xc001ef8000)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb1040, 0xc0046b4440)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc0028c5a28, 0xc004656470, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0bb8, 0xc001ef80c0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0f00, 0xc0046b4480)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc0028c5a28, 0xc0046564c0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0bb8, 0xc001ef8240)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb1040, 0xc0046b44c0)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc0028c5a28, 0xc001b1fd00, 0x6, 0x8)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0bb8, 0xc001ef8270)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0f00, 0xc0046b4500)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc0028c5a28, 0xc004656500, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0bb8, 0xc001ef82d0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0f50, 0xc004656580)
	/usr/lib/go/src/go/ast/walk.go:98 +0x29f2
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0c08, 0xc0046b4540)
	/usr/lib/go/src/go/ast/walk.go:136 +0xf85
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0fc8, 0xc0033677d0)
	/usr/lib/go/src/go/ast/walk.go:210 +0x385
go/ast.walkStmtList(0xfae140, 0xc0028c5a28, 0xc0033677a0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c5a28, 0xfb0bb8, 0xc004853170)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0bb8, 0xc004853170, 0xc0057aa870)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc004852180, 0xfb0bb8, 0xc004853170, 0xc003b06660, 0xc0029f7000, 0x8a8, 0xfcf, 0xc0028c54d0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0ac8, 0xc0032667e0, 0xfb0bb8, 0xc004853170, 0xd9e520)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:683 +0x20a
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0ac8, 0xc0032667e0, 0xc0028c5400)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc0028c54d0, 0xfb0ac8, 0xc0032667e0, 0x60f6da, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc0028c54d0, 0xfb0ac8, 0xc0032667e0)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkStmtList(0xfae140, 0xc0028c54d0, 0xc0033677a0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc0028c54d0, 0xfb0bb8, 0xc004853170)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc0028c54d0, 0xfb0f28, 0xc0048531d0)
	/usr/lib/go/src/go/ast/walk.go:344 +0xce6
go/ast.walkDeclList(0xfae140, 0xc0028c54d0, 0xc0044e21c0, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:38 +0x9e
go/ast.Walk(0xfae140, 0xc0028c54d0, 0xfb0ed8, 0xc001b1f880)
	/usr/lib/go/src/go/ast/walk.go:353 +0x2446
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0ed8, 0xc001b1f880, 0xc0057aa690)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc004852180, 0xfb0ed8, 0xc001b1f880, 0xc003b06660, 0xc0029f7000, 0x8a8, 0xfcf, 0xc0028c54a0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.parseGo(0xfbf318, 0xc004852180, 0xc00007fb40, 0xfc3218, 0xc003b06120, 0x2, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:283 +0x9ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle.func1(0xfbf318, 0xc0045cf9c0, 0xfad200, 0xc000da22a0, 0xc00037fce0, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:62 +0x7d
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc003366d20, 0xfbf318, 0xc0045cf9c0, 0xc0024f0660, 0xfad200, 0xc000da22a0, 0xc003b06420)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:322 +0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:315 +0x185
[Info  - 8:06:58 PM] Connection to server got closed. Server will restart.
[Info  - 8:06:58 PM] 2021/07/15 20:06:58 go env for /home/gusted/Desktop/coding/bot
(root /home/gusted/Desktop/coding/bot)
(go version go version go1.16.5 linux/amd64)
(valid build configuration = true)
(build flags: [])
GOPATH=/home/gusted/go
GOROOT=/usr/lib/go
GO111MODULE=
GONOPROXY=
GOPROXY=https://proxy.golang.org,direct
GOFLAGS=
GOCACHE=/home/gusted/.cache/go-build
GOINSECURE=
GOSUMDB=sum.golang.org
GOMODCACHE=/home/gusted/go/pkg/mod
GONOSUMDB=
GOMOD=/home/gusted/Desktop/coding/bot/go.mod
GOPRIVATE=


[Info  - 8:06:58 PM] 2021/07/15 20:06:58 go/packages.Load
	snapshot=0
	directory=/home/gusted/Desktop/coding/bot
	query=[bot/... builtin]
	packages=7

panic: invalid Pos value 6362804 (should be in [6360582, 6362798[)

goroutine 2048 [running]:
go/token.(*File).Offset(0xc0022b9da0, 0x6116b4, 0x889)
	/usr/lib/go/src/go/token/position.go:281 +0x146
golang.org/x/tools/internal/lsp/cache.fixArrayType(0xc002a7ae90, 0xfb0d70, 0xc003100480, 0xc0022b9da0, 0xc000841200, 0x8a8, 0x900, 0x60c700)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:1074 +0xe6
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0aa0, 0xc002a7ae90, 0xfb0d70, 0xc003100480, 0xd9e500)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:689 +0x2fe
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0aa0, 0xc002a7ae90, 0xc00268d000)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc002a5d6e0, 0xfb0aa0, 0xc002a7ae90, 0x0, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0aa0, 0xc002a7ae90)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkExprList(0xfae140, 0xc002a5d6e0, 0xc003100400, 0x3, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0d70, 0xc003100480)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0b40, 0xc00268e480)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.walkExprList(0xfae140, 0xc002a5d6e0, 0xc0031002c0, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0d70, 0xc0031004c0)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0b40, 0xc00268e4b0)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0e60, 0xc002a698c0)
	/usr/lib/go/src/go/ast/walk.go:196 +0x1a05
go/ast.walkStmtList(0xfae140, 0xc002a5d6e0, 0xc002a698d0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0bb8, 0xc00268e4e0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb1040, 0xc003100500)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc002a5d6e0, 0xc002a698e0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0bb8, 0xc00268e510)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0f00, 0xc003100540)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc002a5d6e0, 0xc002a698f0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0bb8, 0xc00268e540)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb1040, 0xc003100580)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc002a5d6e0, 0xc002a7c500, 0x6, 0x8)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0bb8, 0xc00268e570)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0f00, 0xc0031005c0)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc002a5d6e0, 0xc002a69900, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0bb8, 0xc00268e5a0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0f50, 0xc002a69910)
	/usr/lib/go/src/go/ast/walk.go:98 +0x29f2
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0c08, 0xc003100600)
	/usr/lib/go/src/go/ast/walk.go:136 +0xf85
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0fc8, 0xc002a69260)
	/usr/lib/go/src/go/ast/walk.go:210 +0x385
go/ast.walkStmtList(0xfae140, 0xc002a5d6e0, 0xc002a69230, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d6e0, 0xfb0bb8, 0xc002a65e00)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0bb8, 0xc002a65e00, 0xc002a55e00)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc002a65110, 0xfb0bb8, 0xc002a65e00, 0xc0022b9da0, 0xc000841200, 0x8a8, 0x900, 0xc002a5d3b0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0ac8, 0xc002a7a600, 0xfb0bb8, 0xc002a65e00, 0xd9e520)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:683 +0x20a
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0ac8, 0xc002a7a600, 0xc002a5d300)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc002a5d3b0, 0xfb0ac8, 0xc002a7a600, 0x60f6da, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc002a5d3b0, 0xfb0ac8, 0xc002a7a600)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkStmtList(0xfae140, 0xc002a5d3b0, 0xc002a69230, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d3b0, 0xfb0bb8, 0xc002a65e00)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc002a5d3b0, 0xfb0f28, 0xc002a65e30)
	/usr/lib/go/src/go/ast/walk.go:344 +0xce6
go/ast.walkDeclList(0xfae140, 0xc002a5d3b0, 0xc002a7e400, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:38 +0x9e
go/ast.Walk(0xfae140, 0xc002a5d3b0, 0xfb0ed8, 0xc002a7c280)
	/usr/lib/go/src/go/ast/walk.go:353 +0x2446
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0ed8, 0xc002a7c280, 0xc002a55c20)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc002a65110, 0xfb0ed8, 0xc002a7c280, 0xc0022b9da0, 0xc000841200, 0x8a8, 0x900, 0xc002a5d380)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.parseGo(0xfbf318, 0xc002a65110, 0xc0001c6d80, 0xfc3218, 0xc0017bca20, 0x2, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:283 +0x9ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle.func1(0xfbf318, 0xc002a63e80, 0xfad200, 0xc001b2a0e0, 0x0, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:62 +0x7d
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc002a68a50, 0xfbf318, 0xc002a63e80, 0xc00191b400, 0xfad200, 0xc001b2a0e0, 0xc001864900)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:322 +0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:315 +0x185
[Info  - 8:06:58 PM] Connection to server got closed. Server will restart.
[Error - 8:06:58 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:58 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:58 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:58 PM] Request textDocument/foldingRange failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:58 PM] Request textDocument/codeLens failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Info  - 8:06:59 PM] 2021/07/15 20:06:59 go env for /home/gusted/Desktop/coding/bot
(root /home/gusted/Desktop/coding/bot)
(go version go version go1.16.5 linux/amd64)
(valid build configuration = true)
(build flags: [])
GOCACHE=/home/gusted/.cache/go-build
GONOSUMDB=
GOPRIVATE=
GOROOT=/usr/lib/go
GO111MODULE=
GOINSECURE=
GOMODCACHE=/home/gusted/go/pkg/mod
GOSUMDB=sum.golang.org
GOPATH=/home/gusted/go
GOFLAGS=
GOMOD=/home/gusted/Desktop/coding/bot/go.mod
GONOPROXY=
GOPROXY=https://proxy.golang.org,direct


[Info  - 8:06:59 PM] 2021/07/15 20:06:59 go/packages.Load
	snapshot=0
	directory=/home/gusted/Desktop/coding/bot
	query=[bot/... builtin]
	packages=7

panic: invalid Pos value 5242695 (should be in [5240473, 5242689[)

goroutine 1588 [running]:
go/token.(*File).Offset(0xc002909560, 0x4fff47, 0x889)
	/usr/lib/go/src/go/token/position.go:281 +0x146
golang.org/x/tools/internal/lsp/cache.fixArrayType(0xc00297cdd0, 0xfb0d70, 0xc00297e8c0, 0xc002909560, 0xc001854900, 0x8a8, 0x900, 0x60c700)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:1074 +0xe6
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0aa0, 0xc00297cdd0, 0xfb0d70, 0xc00297e8c0, 0xd9e500)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:689 +0x2fe
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0aa0, 0xc00297cdd0, 0xc002ada600)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc00295ac00, 0xfb0aa0, 0xc00297cdd0, 0x0, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0aa0, 0xc00297cdd0)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkExprList(0xfae140, 0xc00295ac00, 0xc00297e840, 0x3, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0d70, 0xc00297e8c0)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0b40, 0xc002971380)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.walkExprList(0xfae140, 0xc00295ac00, 0xc00297e700, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:26 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0d70, 0xc00297e900)
	/usr/lib/go/src/go/ast/walk.go:104 +0x406
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0b40, 0xc0029713b0)
	/usr/lib/go/src/go/ast/walk.go:147 +0x17fe
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0e60, 0xc002959e90)
	/usr/lib/go/src/go/ast/walk.go:196 +0x1a05
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959ea0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc0029713e0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb1040, 0xc00297e940)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959eb0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002971410)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0f00, 0xc00297e980)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959ec0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002971440)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb1040, 0xc00297e9c0)
	/usr/lib/go/src/go/ast/walk.go:231 +0x1af2
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002907980, 0x6, 0x8)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002971470)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0f00, 0xc00297ea00)
	/usr/lib/go/src/go/ast/walk.go:275 +0x6aa
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959ed0, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc0029714a0)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0f50, 0xc002959ee0)
	/usr/lib/go/src/go/ast/walk.go:98 +0x29f2
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0c08, 0xc00297ea40)
	/usr/lib/go/src/go/ast/walk.go:136 +0xf85
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0fc8, 0xc002959830)
	/usr/lib/go/src/go/ast/walk.go:210 +0x385
go/ast.walkStmtList(0xfae140, 0xc00295ac00, 0xc002959800, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295ac00, 0xfb0bb8, 0xc002970d20)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0bb8, 0xc002970d20, 0xc002962640)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc002953d10, 0xfb0bb8, 0xc002970d20, 0xc002909560, 0xc001854900, 0x8a8, 0x900, 0xc00295a8d0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.fixAST.func1(0xfb0ac8, 0xc00297c540, 0xfb0bb8, 0xc002970d20, 0xd9e520)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:683 +0x20a
golang.org/x/tools/internal/lsp/cache.walkASTWithParent.func1(0xfb0ac8, 0xc00297c540, 0xc00295a800)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:749 +0xb2
go/ast.inspector.Visit(0xc00295a8d0, 0xfb0ac8, 0xc00297c540, 0x60f6da, 0x0)
	/usr/lib/go/src/go/ast/walk.go:373 +0x3a
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0ac8, 0xc00297c540)
	/usr/lib/go/src/go/ast/walk.go:52 +0x63
go/ast.walkStmtList(0xfae140, 0xc00295a8d0, 0xc002959800, 0x1, 0x1)
	/usr/lib/go/src/go/ast/walk.go:32 +0x9e
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0bb8, 0xc002970d20)
	/usr/lib/go/src/go/ast/walk.go:224 +0x1968
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0f28, 0xc002970d50)
	/usr/lib/go/src/go/ast/walk.go:344 +0xce6
go/ast.walkDeclList(0xfae140, 0xc00295a8d0, 0xc002960840, 0x4, 0x4)
	/usr/lib/go/src/go/ast/walk.go:38 +0x9e
go/ast.Walk(0xfae140, 0xc00295a8d0, 0xfb0ed8, 0xc002907700)
	/usr/lib/go/src/go/ast/walk.go:353 +0x2446
go/ast.Inspect(...)
	/usr/lib/go/src/go/ast/walk.go:385
golang.org/x/tools/internal/lsp/cache.walkASTWithParent(0xfb0ed8, 0xc002907700, 0xc002962460)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:732 +0x9e
golang.org/x/tools/internal/lsp/cache.fixAST(0xfbf3c0, 0xc002953d10, 0xfb0ed8, 0xc002907700, 0xc002909560, 0xc001854900, 0x8a8, 0x900, 0xc00295a8a0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:678 +0x105
golang.org/x/tools/internal/lsp/cache.parseGo(0xfbf318, 0xc002953d10, 0xc000123840, 0xfc3218, 0xc000675380, 0x2, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:283 +0x9ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle.func1(0xfbf318, 0xc002960200, 0xfad200, 0xc0014c60e0, 0xc0005a7008, 0x0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/lsp/cache/parse.go:62 +0x7d
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc002958f20, 0xfbf318, 0xc002960200, 0xc002107ae0, 0xfad200, 0xc0014c60e0, 0xc00103b0e0)
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:322 +0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	/home/gusted/go/pkg/mod/golang.org/x/tools@v0.1.3-0.20210608163600-9ed039809d4c/internal/memoize/memoize.go:315 +0x185
[Error - 8:06:59 PM] Connection to server got closed. Server will not be restarted.
[Error - 8:06:59 PM] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:59 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:59 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
[Error - 8:06:59 PM] Request textDocument/completion failed.
Error: Connection got disposed.
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78902:27)
    at Object.dispose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:81053:35)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83404:42)
    at LanguageClient.handleConnectionClosed (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:87196:15)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:83391:18)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at closeHandler (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:78114:26)
    at CallbackList.invoke (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79032:39)
    at Emitter.fire (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79094:36)
    at StreamMessageReader.fireClose (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79766:27)
    at Socket. (/home/gusted/.vscode-oss/extensions/golang.go-nightly-2021.7.219/dist/goMain.js:79851:42)
    at Socket.emit (events.js:327:22)
    at Pipe. (net.js:673:12)
@hyangah hyangah changed the title gopls: automated issue report (crash) x/tools/gopls: crash due to panic: invalid Pos value (go/token/position.go:281) Jul 15, 2021
@hyangah hyangah transferred this issue from golang/vscode-go Jul 15, 2021
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Jul 15, 2021
@gopherbot gopherbot added this to the Unreleased milestone Jul 15, 2021
@hyangah hyangah modified the milestones: Unreleased, gopls/v0.7.1 Jul 15, 2021
@gopherbot
Copy link
Contributor

Change https://golang.org/cl/334892 mentions this issue: internal/lsp: handle panic in fix AST

@golang golang locked and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants