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 in go/types with 1.15 #43765

Open
damilolarandolph opened this issue Jan 19, 2021 · 5 comments
Open

x/tools/gopls: crash in go/types with 1.15 #43765

damilolarandolph opened this issue Jan 19, 2021 · 5 comments

Comments

@damilolarandolph
Copy link

@damilolarandolph damilolarandolph commented Jan 19, 2021

gopls version: v0.6.3
gopls flags:
extension version: 0.20.2
environment: Visual Studio Code

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

gopls simply crashed while typing

EDIT: Its seems to be happening when typing the maximum value for a 32 bit number in hex.

Please attach the stack trace from the crash.
A window with the error message should have popped up in the lower half of your screen.
Please copy the stack trace and error messages from that window and paste it in this issue.

[Error - 01:50:42] 2021/01/19 01:50:42 imports fixes: AllImportsFixes: /home/damilola/Documents/projects/go/casper/cpu/multiply.go:55:24: expected operand, found ')' (and 5 more errors)
file="/home/damilola/Documents/projects/go/casper/cpu/multiply.go"

[Error - 01:50:42] 2021/01/19 01:50:42 DocumentSymbols failed: invalid pos
URI=file:///home/damilola/Documents/projects/go/casper/cpu/multiply.go

[Info - 01:50:43] 2021/01/19 01:50:43 background imports cache refresh starting

[Info - 01:50:43] 2021/01/19 01:50:43 background refresh finished after 36.550698ms

panic: assertion failed [recovered]
panic: assertion failed

goroutine 153648 [running]:
go/types.(*Checker).handleBailout(0xc011cfd9e0, 0xc0121a59f0)
/usr/lib/go/src/go/types/check.go:244 +0x98
panic(0xca9380, 0xf06850)
/usr/lib/go/src/runtime/panic.go:969 +0x1b9
go/types.assert(...)
/usr/lib/go/src/go/types/errors.go:19
go/types.(*Checker).shift(0xc011cfd9e0, 0xc0073a2cc0, 0xc0073a2d00, 0xc00691c2d0, 0x14)
/usr/lib/go/src/go/types/expr.go:679 +0xc05
go/types.(*Checker).binary(0xc011cfd9e0, 0xc0073a2cc0, 0xc00691c2d0, 0xf2b2a0, 0xc006cdf560, 0xf2ada0, 0xc006cdf580, 0x14)
/usr/lib/go/src/go/types/expr.go:791 +0x155
go/types.(*Checker).exprInternal(0xc011cfd9e0, 0xc0073a2cc0, 0xf2ade0, 0xc00691c2d0, 0x0, 0x0, 0xc0121a40d0)
/usr/lib/go/src/go/types/expr.go:1505 +0x1d5b
go/types.(*Checker).rawExpr(0xc011cfd9e0, 0xc0073a2cc0, 0xf2ade0, 0xc00691c2d0, 0x0, 0x0, 0xc0121a4128)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc011cfd9e0, 0xc0073a2cc0, 0xf2ade0, 0xc00691c2d0)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).expr(0xc011cfd9e0, 0xc0073a2cc0, 0xf2ade0, 0xc00691c2d0)
/usr/lib/go/src/go/types/expr.go:1598 +0x49
go/types.(*Checker).call(0xc011cfd9e0, 0xc0073a2cc0, 0xc009401c00, 0xf2aea0)
/usr/lib/go/src/go/types/call.go:34 +0x1c5
go/types.(*Checker).exprInternal(0xc011cfd9e0, 0xc0073a2cc0, 0xf2aea0, 0xc009401c00, 0x0, 0x0, 0xc0121a4a20)
/usr/lib/go/src/go/types/expr.go:1471 +0x1db0
go/types.(*Checker).rawExpr(0xc011cfd9e0, 0xc0073a2cc0, 0xf2aea0, 0xc009401c00, 0x0, 0x0, 0x0)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc011cfd9e0, 0xc0073a2cc0, 0xf2aea0, 0xc009401c00)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).initVars.func1(0xc0073a2cc0, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0x5d
go/types.unpack(0xc0121a4b68, 0x1, 0x71e000000db0200, 0x5, 0x20, 0x80)
/usr/lib/go/src/go/types/call.go:189 +0x66
go/types.(*Checker).initVars(0xc011cfd9e0, 0xc00b3d6cb8, 0x1, 0x1, 0xc0057f9280, 0x1, 0x1, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0xe5
go/types.(*Checker).shortVarDecl(0xc011cfd9e0, 0xe3fe67, 0xc0057f9260, 0x1, 0x1, 0xc0057f9280, 0x1, 0x1)
/usr/lib/go/src/go/types/assignments.go:322 +0x28c
go/types.(*Checker).stmt(0xc011cfd9e0, 0x0, 0xf2aca0, 0xc009401c40)
/usr/lib/go/src/go/types/stmt.go:398 +0x36aa
go/types.(*Checker).stmtList(0xc011cfd9e0, 0x0, 0xc009401b80, 0x4, 0x4)
/usr/lib/go/src/go/types/stmt.go:120 +0xd1
go/types.(*Checker).funcBody(0xc011cfd9e0, 0xc008b5c8a0, 0xc002c58960, 0x5, 0xc0086e5b00, 0xc00691c300, 0x0, 0x0)
/usr/lib/go/src/go/types/stmt.go:42 +0x21c
go/types.(*Checker).funcDecl.func1()
/usr/lib/go/src/go/types/decl.go:662 +0x67
go/types.(*Checker).processDelayed(0xc011cfd9e0, 0x0)
/usr/lib/go/src/go/types/check.go:290 +0x3e
go/types.(*Checker).checkFiles(0xc011cfd9e0, 0xc013c46d80, 0xb, 0xb, 0x0, 0x0)
/usr/lib/go/src/go/types/check.go:266 +0xd0
go/types.(*Checker).Files(...)
/usr/lib/go/src/go/types/check.go:249
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf2d720, 0xc003f270c0, 0xc0109521c0, 0xc0038efd40, 0x2, 0xc0087618c0, 0x0, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:431 +0x1273
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf2d720, 0xc003f270c0, 0xf19b40, 0xc0109521c0, 0x2, 0xc012c08e40)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:97 +0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc009b1b5d0, 0xf2d720, 0xc003f270c0, 0xc006d4ea40, 0xf19b40, 0xc0109521c0, 0xc013c46c60)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:322 +0xa8
created by golang.org/x/tools/internal/memoize.(*Handle).run
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:315 +0x185
[Info - 01:50:44] Connection to server got closed. Server will restart.
[Error - 01:50:44] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:44] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Info - 01:50:44] 2021/01/19 01:50:44 go env for /home/damilola/Documents/projects/go/casper
(root /home/damilola/Documents/projects/go/casper)
(go version go version go1.15.6 linux/amd64)
(valid build configuration = true)
(build flags: [])
GONOPROXY=
GO111MODULE=
GOMODCACHE=/home/damilola/go/pkg/mod
GOSUMDB=sum.golang.org
GONOSUMDB=
GOPATH=/home/damilola/go
GOPROXY=https://proxy.golang.org,direct
GOCACHE=/home/damilola/.cache/go-build
GOFLAGS=
GOPRIVATE=
GOROOT=/usr/lib/go
GOINSECURE=
GOMOD=/home/damilola/Documents/projects/go/casper/go.mod

[Info - 01:50:45] 2021/01/19 01:50:45 go/packages.Load
snapshot=0
directory=/home/damilola/Documents/projects/go/casper
query=[builtin github.com/damilolarandolph/casper/...]
packages=9

[Error - 01:50:45] 2021/01/19 01:50:45 creating workspace dir: mkdir /tmp/gopls-5339.workspace: file exists

[Error - 01:50:45] 2021/01/19 01:50:45 unable to compute error positions: no parsed file for file:///home/damilola/Documents/projects/go/casper/cpu/bus/io.go in github.com/damilolarandolph/casper/cpu/bus
package="github.com/damilolarandolph/casper/cpu/bus"

panic: assertion failed [recovered]
panic: assertion failed

goroutine 1435 [running]:
go/types.(*Checker).handleBailout(0xc0086fc120, 0xc0063579f0)
/usr/lib/go/src/go/types/check.go:244 +0x98
panic(0xca9380, 0xf06850)
/usr/lib/go/src/runtime/panic.go:969 +0x1b9
go/types.assert(...)
/usr/lib/go/src/go/types/errors.go:19
go/types.(*Checker).shift(0xc0086fc120, 0xc0089a38c0, 0xc0089a3900, 0xc008746cc0, 0x14)
/usr/lib/go/src/go/types/expr.go:679 +0xc05
go/types.(*Checker).binary(0xc0086fc120, 0xc0089a38c0, 0xc008746cc0, 0xf2b2a0, 0xc008750460, 0xf2ada0, 0xc008750480, 0x14)
/usr/lib/go/src/go/types/expr.go:791 +0x155
go/types.(*Checker).exprInternal(0xc0086fc120, 0xc0089a38c0, 0xf2ade0, 0xc008746cc0, 0x0, 0x0, 0xc0063560d0)
/usr/lib/go/src/go/types/expr.go:1505 +0x1d5b
go/types.(*Checker).rawExpr(0xc0086fc120, 0xc0089a38c0, 0xf2ade0, 0xc008746cc0, 0x0, 0x0, 0xc006356128)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc0086fc120, 0xc0089a38c0, 0xf2ade0, 0xc008746cc0)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).expr(0xc0086fc120, 0xc0089a38c0, 0xf2ade0, 0xc008746cc0)
/usr/lib/go/src/go/types/expr.go:1598 +0x49
go/types.(*Checker).call(0xc0086fc120, 0xc0089a38c0, 0xc00874ad40, 0xf2aea0)
/usr/lib/go/src/go/types/call.go:34 +0x1c5
go/types.(*Checker).exprInternal(0xc0086fc120, 0xc0089a38c0, 0xf2aea0, 0xc00874ad40, 0x0, 0x0, 0xc006356a20)
/usr/lib/go/src/go/types/expr.go:1471 +0x1db0
go/types.(*Checker).rawExpr(0xc0086fc120, 0xc0089a38c0, 0xf2aea0, 0xc00874ad40, 0x0, 0x0, 0xc00028ca80)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc0086fc120, 0xc0089a38c0, 0xf2aea0, 0xc00874ad40)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).initVars.func1(0xc0089a38c0, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0x5d
go/types.unpack(0xc006356b68, 0x1, 0x79a000000000000, 0x4, 0x0, 0x80)
/usr/lib/go/src/go/types/call.go:189 +0x66
go/types.(*Checker).initVars(0xc0086fc120, 0xc008878830, 0x1, 0x1, 0xc00873ac50, 0x1, 0x1, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0xe5
go/types.(*Checker).shortVarDecl(0xc0086fc120, 0x8b849e, 0xc00873ac30, 0x1, 0x1, 0xc00873ac50, 0x1, 0x1)
/usr/lib/go/src/go/types/assignments.go:322 +0x28c
go/types.(*Checker).stmt(0xc0086fc120, 0x0, 0xf2aca0, 0xc00874ad80)
/usr/lib/go/src/go/types/stmt.go:398 +0x36aa
go/types.(*Checker).stmtList(0xc0086fc120, 0x0, 0xc00874acc0, 0x4, 0x4)
/usr/lib/go/src/go/types/stmt.go:120 +0xd1
go/types.(*Checker).funcBody(0xc0086fc120, 0xc008763ec0, 0xc007a7f350, 0x5, 0xc00885dcb0, 0xc008746cf0, 0x0, 0x0)
/usr/lib/go/src/go/types/stmt.go:42 +0x21c
go/types.(*Checker).funcDecl.func1()
/usr/lib/go/src/go/types/decl.go:662 +0x67
go/types.(*Checker).processDelayed(0xc0086fc120, 0x0)
/usr/lib/go/src/go/types/check.go:290 +0x3e
go/types.(*Checker).checkFiles(0xc0086fc120, 0xc008740240, 0xb, 0xb, 0x0, 0x0)
/usr/lib/go/src/go/types/check.go:266 +0xd0
go/types.(*Checker).Files(...)
/usr/lib/go/src/go/types/check.go:249
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf2d720, 0xc007ca7a40, 0xc001fdc0e0, 0xc000462410, 0x2, 0xc0085ee9c0, 0x0, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:431 +0x1273
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf2d720, 0xc007ca7a40, 0xf19b40, 0xc001fdc0e0, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:97 +0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc00873a360, 0xf2d720, 0xc007ca7a40, 0xc0086e83a0, 0xf19b40, 0xc001fdc0e0, 0xc00357ff80)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:322 +0xa8
created by golang.org/x/tools/internal/memoize.(*Handle).run
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:315 +0x185
[Info - 01:50:45] Connection to server got closed. Server will restart.
[Error - 01:50:45] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/documentLink failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:45] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Info - 01:50:45] 2021/01/19 01:50:45 go env for /home/damilola/Documents/projects/go/casper
(root /home/damilola/Documents/projects/go/casper)
(go version go version go1.15.6 linux/amd64)
(valid build configuration = true)
(build flags: [])
GONOPROXY=
GOROOT=/usr/lib/go
GOSUMDB=sum.golang.org
GOINSECURE=
GOMODCACHE=/home/damilola/go/pkg/mod
GOPATH=/home/damilola/go
GOPRIVATE=
GOPROXY=https://proxy.golang.org,direct
GOMOD=/home/damilola/Documents/projects/go/casper/go.mod
GONOSUMDB=
GO111MODULE=
GOCACHE=/home/damilola/.cache/go-build
GOFLAGS=

[Info - 01:50:45] 2021/01/19 01:50:45 go/packages.Load
snapshot=0
directory=/home/damilola/Documents/projects/go/casper
query=[builtin github.com/damilolarandolph/casper/...]
packages=9

[Error - 01:50:45] 2021/01/19 01:50:45 creating workspace dir: mkdir /tmp/gopls-5339.workspace: file exists

[Error - 01:50:46] 2021/01/19 01:50:46 unable to compute error positions: no parsed file for file:///home/damilola/Documents/projects/go/casper/cpu/bus/io.go in github.com/damilolarandolph/casper/cpu/bus
package="github.com/damilolarandolph/casper/cpu/bus"

[Info - 01:50:46] 2021/01/19 01:50:46 go/packages.Load
snapshot=0
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

[Info - 01:50:46] 2021/01/19 01:50:46 go/packages.Load
snapshot=10
directory=/home/damilola/Documents/projects/go/casper
query=[github.com/damilolarandolph/casper/cpu/bus github.com/damilolarandolph/casper/dma]
packages=2

[Info - 01:50:46] 2021/01/19 01:50:46 go/packages.Load
snapshot=10
package="github.com/damilolarandolph/casper/cpu/bus"
files=[/home/damilola/Documents/projects/go/casper/cpu/bus/arm7.go /home/damilola/Documents/projects/go/casper/cpu/bus/bus.go]

[Info - 01:50:46] 2021/01/19 01:50:46 go/packages.Load
snapshot=10
package="github.com/damilolarandolph/casper/dma"
files=[/home/damilola/Documents/projects/go/casper/dma/dma.go]

[Info - 01:50:46] 2021/01/19 01:50:46 go/packages.Load
snapshot=10
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

[Error - 01:50:46] 2021/01/19 01:50:46 reloadOrphanedFiles: failed to load: no packages returned: packages.Load error
query=[file:///home/damilola/Documents/projects/go/casper/cpu/bus/io.go]

[Error - 01:50:46] 2021/01/19 01:50:46 unable to compute error positions: no parsed file for file:///home/damilola/Documents/projects/go/casper/cpu/bus/io.go in github.com/damilolarandolph/casper/cpu/bus
package="github.com/damilolarandolph/casper/cpu/bus"

[Info - 01:50:46] 2021/01/19 01:50:46 go/packages.Load
snapshot=10
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

[Info - 01:50:47] 2021/01/19 01:50:47 go/packages.Load
snapshot=11
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

[Info - 01:50:49] 2021/01/19 01:50:49 go/packages.Load
snapshot=14
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

[Info - 01:50:50] 2021/01/19 01:50:50 go/packages.Load
snapshot=15
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

[Info - 01:50:51] 2021/01/19 01:50:51 go/packages.Load
snapshot=16
directory=/home/damilola/Documents/projects/go/casper
query=[file=/home/damilola/Documents/projects/go/casper/cpu/bus/io.go]
packages=0

panic: assertion failed [recovered]
panic: assertion failed

goroutine 4902 [running]:
go/types.(*Checker).handleBailout(0xc011c74ea0, 0xc0120959f0)
/usr/lib/go/src/go/types/check.go:244 +0x98
panic(0xca9380, 0xf06850)
/usr/lib/go/src/runtime/panic.go:969 +0x1b9
go/types.assert(...)
/usr/lib/go/src/go/types/errors.go:19
go/types.(*Checker).shift(0xc011c74ea0, 0xc0078edec0, 0xc0078edf00, 0xc0062c3b30, 0x14)
/usr/lib/go/src/go/types/expr.go:679 +0xc05
go/types.(*Checker).binary(0xc011c74ea0, 0xc0078edec0, 0xc0062c3b30, 0xf2b2a0, 0xc009e4e920, 0xf2ada0, 0xc009e4e940, 0x14)
/usr/lib/go/src/go/types/expr.go:791 +0x155
go/types.(*Checker).exprInternal(0xc011c74ea0, 0xc0078edec0, 0xf2ade0, 0xc0062c3b30, 0x0, 0x0, 0xc0120940d0)
/usr/lib/go/src/go/types/expr.go:1505 +0x1d5b
go/types.(*Checker).rawExpr(0xc011c74ea0, 0xc0078edec0, 0xf2ade0, 0xc0062c3b30, 0x0, 0x0, 0xc012094128)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc011c74ea0, 0xc0078edec0, 0xf2ade0, 0xc0062c3b30)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).expr(0xc011c74ea0, 0xc0078edec0, 0xf2ade0, 0xc0062c3b30)
/usr/lib/go/src/go/types/expr.go:1598 +0x49
go/types.(*Checker).call(0xc011c74ea0, 0xc0078edec0, 0xc0079169c0, 0xf2aea0)
/usr/lib/go/src/go/types/call.go:34 +0x1c5
go/types.(*Checker).exprInternal(0xc011c74ea0, 0xc0078edec0, 0xf2aea0, 0xc0079169c0, 0x0, 0x0, 0xc012094a20)
/usr/lib/go/src/go/types/expr.go:1471 +0x1db0
go/types.(*Checker).rawExpr(0xc011c74ea0, 0xc0078edec0, 0xf2aea0, 0xc0079169c0, 0x0, 0x0, 0x0)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc011c74ea0, 0xc0078edec0, 0xf2aea0, 0xc0079169c0)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).initVars.func1(0xc0078edec0, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0x5d
go/types.unpack(0xc012094b68, 0x1, 0x793000000db0200, 0x4, 0x20, 0x80)
/usr/lib/go/src/go/types/call.go:189 +0x66
go/types.(*Checker).initVars(0xc011c74ea0, 0xc011e3b7b8, 0x1, 0x1, 0xc007a2d890, 0x1, 0x1, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0xe5
go/types.(*Checker).shortVarDecl(0xc011c74ea0, 0xcb2ae5, 0xc007a2d870, 0x1, 0x1, 0xc007a2d890, 0x1, 0x1)
/usr/lib/go/src/go/types/assignments.go:322 +0x28c
go/types.(*Checker).stmt(0xc011c74ea0, 0x0, 0xf2aca0, 0xc007916a00)
/usr/lib/go/src/go/types/stmt.go:398 +0x36aa
go/types.(*Checker).stmtList(0xc011c74ea0, 0x0, 0xc007916940, 0x4, 0x4)
/usr/lib/go/src/go/types/stmt.go:120 +0xd1
go/types.(*Checker).funcBody(0xc011c74ea0, 0xc00c3cdaa0, 0xc00abd4770, 0x5, 0xc005795cb0, 0xc0062c3b60, 0x0, 0x0)
/usr/lib/go/src/go/types/stmt.go:42 +0x21c
go/types.(*Checker).funcDecl.func1()
/usr/lib/go/src/go/types/decl.go:662 +0x67
go/types.(*Checker).processDelayed(0xc011c74ea0, 0x0)
/usr/lib/go/src/go/types/check.go:290 +0x3e
go/types.(*Checker).checkFiles(0xc011c74ea0, 0xc00c392cc0, 0xb, 0xb, 0x0, 0x0)
/usr/lib/go/src/go/types/check.go:266 +0xd0
go/types.(*Checker).Files(...)
/usr/lib/go/src/go/types/check.go:249
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf2d720, 0xc00776e500, 0xc00bff4380, 0xc0009a2c30, 0x2, 0xc006a8ca80, 0x0, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:431 +0x1273
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf2d720, 0xc00776e500, 0xf19b40, 0xc00bff4380, 0xc0062c2000, 0xf3f500)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:97 +0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc007ce8910, 0xf2d720, 0xc00776e500, 0xc009e42ca0, 0xf19b40, 0xc00bff4380, 0xc00c392ae0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:322 +0xa8
created by golang.org/x/tools/internal/memoize.(*Handle).run
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:315 +0x185
[Info - 01:50:52] Connection to server got closed. Server will restart.
[Error - 01:50:52] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Info - 01:50:52] 2021/01/19 01:50:52 go env for /home/damilola/Documents/projects/go/casper
(root /home/damilola/Documents/projects/go/casper)
(go version go version go1.15.6 linux/amd64)
(valid build configuration = true)
(build flags: [])
GOFLAGS=
GOINSECURE=
GOMODCACHE=/home/damilola/go/pkg/mod
GOSUMDB=sum.golang.org
GOPROXY=https://proxy.golang.org,direct
GOPRIVATE=
GOROOT=/usr/lib/go
GOPATH=/home/damilola/go
GO111MODULE=
GOCACHE=/home/damilola/.cache/go-build
GONOSUMDB=
GOMOD=/home/damilola/Documents/projects/go/casper/go.mod
GONOPROXY=

[Info - 01:50:52] 2021/01/19 01:50:52 go/packages.Load
snapshot=0
directory=/home/damilola/Documents/projects/go/casper
query=[builtin github.com/damilolarandolph/casper/...]
packages=9

[Error - 01:50:52] 2021/01/19 01:50:52 creating workspace dir: mkdir /tmp/gopls-5339.workspace: file exists

panic: assertion failed [recovered]
panic: assertion failed

goroutine 3134 [running]:
go/types.(*Checker).handleBailout(0xc008280b40, 0xc0095079f0)
/usr/lib/go/src/go/types/check.go:244 +0x98
panic(0xca9380, 0xf06850)
/usr/lib/go/src/runtime/panic.go:969 +0x1b9
go/types.assert(...)
/usr/lib/go/src/go/types/errors.go:19
go/types.(*Checker).shift(0xc008280b40, 0xc00a242780, 0xc00a2427c0, 0xc0082a5740, 0x14)
/usr/lib/go/src/go/types/expr.go:679 +0xc05
go/types.(*Checker).binary(0xc008280b40, 0xc00a242780, 0xc0082a5740, 0xf2b2a0, 0xc009ee73c0, 0xf2ada0, 0xc009ee73e0, 0x14)
/usr/lib/go/src/go/types/expr.go:791 +0x155
go/types.(*Checker).exprInternal(0xc008280b40, 0xc00a242780, 0xf2ade0, 0xc0082a5740, 0x0, 0x0, 0xc0095060d0)
/usr/lib/go/src/go/types/expr.go:1505 +0x1d5b
go/types.(*Checker).rawExpr(0xc008280b40, 0xc00a242780, 0xf2ade0, 0xc0082a5740, 0x0, 0x0, 0xc009506128)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc008280b40, 0xc00a242780, 0xf2ade0, 0xc0082a5740)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).expr(0xc008280b40, 0xc00a242780, 0xf2ade0, 0xc0082a5740)
/usr/lib/go/src/go/types/expr.go:1598 +0x49
go/types.(*Checker).call(0xc008280b40, 0xc00a242780, 0xc0082a7c00, 0xf2aea0)
/usr/lib/go/src/go/types/call.go:34 +0x1c5
go/types.(*Checker).exprInternal(0xc008280b40, 0xc00a242780, 0xf2aea0, 0xc0082a7c00, 0x0, 0x0, 0xc009506a20)
/usr/lib/go/src/go/types/expr.go:1471 +0x1db0
go/types.(*Checker).rawExpr(0xc008280b40, 0xc00a242780, 0xf2aea0, 0xc0082a7c00, 0x0, 0x0, 0x0)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc008280b40, 0xc00a242780, 0xf2aea0, 0xc0082a7c00)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).initVars.func1(0xc00a242780, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0x5d
go/types.unpack(0xc009506b68, 0x1, 0x7d6000000db0200, 0x5, 0x0, 0x80)
/usr/lib/go/src/go/types/call.go:189 +0x66
go/types.(*Checker).initVars(0xc008280b40, 0xc00a078df0, 0x1, 0x1, 0xc009ee81d0, 0x1, 0x1, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0xe5
go/types.(*Checker).shortVarDecl(0xc008280b40, 0xcabda8, 0xc009ee81b0, 0x1, 0x1, 0xc009ee81d0, 0x1, 0x1)
/usr/lib/go/src/go/types/assignments.go:322 +0x28c
go/types.(*Checker).stmt(0xc008280b40, 0x0, 0xf2aca0, 0xc0082a7c40)
/usr/lib/go/src/go/types/stmt.go:398 +0x36aa
go/types.(*Checker).stmtList(0xc008280b40, 0x0, 0xc0082a7b80, 0x4, 0x4)
/usr/lib/go/src/go/types/stmt.go:120 +0xd1
go/types.(*Checker).funcBody(0xc008280b40, 0xc009efb440, 0xc006405ec0, 0x5, 0xc00a07e750, 0xc0082a5770, 0x0, 0x0)
/usr/lib/go/src/go/types/stmt.go:42 +0x21c
go/types.(*Checker).funcDecl.func1()
/usr/lib/go/src/go/types/decl.go:662 +0x67
go/types.(*Checker).processDelayed(0xc008280b40, 0x0)
/usr/lib/go/src/go/types/check.go:290 +0x3e
go/types.(*Checker).checkFiles(0xc008280b40, 0xc007c2b8c0, 0xb, 0xb, 0x0, 0x0)
/usr/lib/go/src/go/types/check.go:266 +0xd0
go/types.(*Checker).Files(...)
/usr/lib/go/src/go/types/check.go:249
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf2d720, 0xc0082a69c0, 0xc00512e000, 0xc00080ad00, 0x2, 0xc0082a4a20, 0x0, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:431 +0x1273
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf2d720, 0xc0082a69c0, 0xf19b40, 0xc00512e000, 0xc00512e000, 0xc007c25670)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:97 +0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc007c25980, 0xf2d720, 0xc0082a69c0, 0xc007c29b80, 0xf19b40, 0xc00512e000, 0xc007c2b7a0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:322 +0xa8
created by golang.org/x/tools/internal/memoize.(*Handle).run
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:315 +0x185
[Info - 01:50:52] Connection to server got closed. Server will restart.
[Error - 01:50:52] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:52] Request textDocument/completion failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Info - 01:50:52] 2021/01/19 01:50:52 go env for /home/damilola/Documents/projects/go/casper
(root /home/damilola/Documents/projects/go/casper)
(go version go version go1.15.6 linux/amd64)
(valid build configuration = true)
(build flags: [])
GO111MODULE=
GOCACHE=/home/damilola/.cache/go-build
GOPATH=/home/damilola/go
GOROOT=/usr/lib/go
GOMOD=/home/damilola/Documents/projects/go/casper/go.mod
GONOPROXY=
GOPRIVATE=
GOPROXY=https://proxy.golang.org,direct
GOSUMDB=sum.golang.org
GOFLAGS=
GOMODCACHE=/home/damilola/go/pkg/mod
GOINSECURE=
GONOSUMDB=

[Info - 01:50:53] 2021/01/19 01:50:53 go/packages.Load
snapshot=0
directory=/home/damilola/Documents/projects/go/casper
query=[builtin github.com/damilolarandolph/casper/...]
packages=9

[Error - 01:50:53] 2021/01/19 01:50:53 creating workspace dir: mkdir /tmp/gopls-5339.workspace: file exists

panic: assertion failed [recovered]
panic: assertion failed

goroutine 2340 [running]:
go/types.(*Checker).handleBailout(0xc0082b9560, 0xc0070cb9f0)
/usr/lib/go/src/go/types/check.go:244 +0x98
panic(0xca9380, 0xf06850)
/usr/lib/go/src/runtime/panic.go:969 +0x1b9
go/types.assert(...)
/usr/lib/go/src/go/types/errors.go:19
go/types.(*Checker).shift(0xc0082b9560, 0xc008cf5300, 0xc008cf5340, 0xc008ad8c60, 0x14)
/usr/lib/go/src/go/types/expr.go:679 +0xc05
go/types.(*Checker).binary(0xc0082b9560, 0xc008cf5300, 0xc008ad8c60, 0xf2b2a0, 0xc008add2e0, 0xf2ada0, 0xc008add300, 0x14)
/usr/lib/go/src/go/types/expr.go:791 +0x155
go/types.(*Checker).exprInternal(0xc0082b9560, 0xc008cf5300, 0xf2ade0, 0xc008ad8c60, 0x0, 0x0, 0xc0070ca0d0)
/usr/lib/go/src/go/types/expr.go:1505 +0x1d5b
go/types.(*Checker).rawExpr(0xc0082b9560, 0xc008cf5300, 0xf2ade0, 0xc008ad8c60, 0x0, 0x0, 0xc0070ca128)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc0082b9560, 0xc008cf5300, 0xf2ade0, 0xc008ad8c60)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).expr(0xc0082b9560, 0xc008cf5300, 0xf2ade0, 0xc008ad8c60)
/usr/lib/go/src/go/types/expr.go:1598 +0x49
go/types.(*Checker).call(0xc0082b9560, 0xc008cf5300, 0xc008ade780, 0xf2aea0)
/usr/lib/go/src/go/types/call.go:34 +0x1c5
go/types.(*Checker).exprInternal(0xc0082b9560, 0xc008cf5300, 0xf2aea0, 0xc008ade780, 0x0, 0x0, 0xc0070caa20)
/usr/lib/go/src/go/types/expr.go:1471 +0x1db0
go/types.(*Checker).rawExpr(0xc0082b9560, 0xc008cf5300, 0xf2aea0, 0xc008ade780, 0x0, 0x0, 0xc0001a6f00)
/usr/lib/go/src/go/types/expr.go:987 +0x85
go/types.(*Checker).multiExpr(0xc0082b9560, 0xc008cf5300, 0xf2aea0, 0xc008ade780)
/usr/lib/go/src/go/types/expr.go:1604 +0x58
go/types.(*Checker).initVars.func1(0xc008cf5300, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0x5d
go/types.unpack(0xc0070cab68, 0x1, 0x72e000000000000, 0x3, 0x20, 0x80)
/usr/lib/go/src/go/types/call.go:189 +0x66
go/types.(*Checker).initVars(0xc0082b9560, 0xc008c14910, 0x1, 0x1, 0xc008ada670, 0x1, 0x1, 0x0)
/usr/lib/go/src/go/types/assignments.go:209 +0xe5
go/types.(*Checker).shortVarDecl(0xc0082b9560, 0x9a8e51, 0xc008ada650, 0x1, 0x1, 0xc008ada670, 0x1, 0x1)
/usr/lib/go/src/go/types/assignments.go:322 +0x28c
go/types.(*Checker).stmt(0xc0082b9560, 0x0, 0xf2aca0, 0xc008ade7c0)
/usr/lib/go/src/go/types/stmt.go:398 +0x36aa
go/types.(*Checker).stmtList(0xc0082b9560, 0x0, 0xc008ade700, 0x4, 0x4)
/usr/lib/go/src/go/types/stmt.go:120 +0xd1
go/types.(*Checker).funcBody(0xc0082b9560, 0xc008afa360, 0xc0080e96e0, 0x5, 0xc008b77c50, 0xc008ad8c90, 0x0, 0x0)
/usr/lib/go/src/go/types/stmt.go:42 +0x21c
go/types.(*Checker).funcDecl.func1()
/usr/lib/go/src/go/types/decl.go:662 +0x67
go/types.(*Checker).processDelayed(0xc0082b9560, 0x0)
/usr/lib/go/src/go/types/check.go:290 +0x3e
go/types.(*Checker).checkFiles(0xc0082b9560, 0xc0080b8780, 0xb, 0xb, 0x0, 0x0)
/usr/lib/go/src/go/types/check.go:266 +0xd0
go/types.(*Checker).Files(...)
/usr/lib/go/src/go/types/check.go:249
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf2d720, 0xc0080fd480, 0xc0082b2000, 0xc0005901a0, 0x2, 0xc0080ff050, 0x0, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:431 +0x1273
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf2d720, 0xc0080fd480, 0xf19b40, 0xc0082b2000, 0x0, 0x0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:97 +0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc0080f5d90, 0xf2d720, 0xc0080fd480, 0xc008281380, 0xf19b40, 0xc0082b2000, 0xc0080b84e0)
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:322 +0xa8
created by golang.org/x/tools/internal/memoize.(*Handle).run
/home/damilola/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:315 +0x185
[Error - 01:50:53] Connection to server got closed. Server will not be restarted.
[Error - 01:50:53] Request textDocument/documentLink failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/codeLens failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/documentSymbol failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/foldingRange failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)
[Error - 01:50:53] Request textDocument/documentHighlight failed.
Error: Connection got disposed.
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:94607:27)
at Object.dispose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:10537:35)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12816:42)
at LanguageClient.handleConnectionClosed (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:67228:15)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:12803:18)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at closeHandler (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93819:26)
at CallbackList.invoke (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22491:39)
at Emitter.fire (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:22553:36)
at StreamMessageReader.fireClose (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93206:27)
at Socket. (/home/damilola/.vscode/extensions/golang.go-0.20.2/dist/goMain.js:93291:42)
at Socket.emit (events.js:228:7)
at Pipe. (net.js:664:12)

Failed to auto-collect gopls trace: no gopls log.

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

@stamblerre stamblerre transferred this issue from golang/vscode-go Jan 19, 2021
@stamblerre stamblerre changed the title gopls: automated issue report (crash) x/tools/gopls: automated issue report (crash) Jan 19, 2021
@gopherbot gopherbot added this to the Unreleased milestone Jan 19, 2021
@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Jan 19, 2021

Thank you for sharing this report, @damilolarandolph. What version of Go are you using?

@stamblerre stamblerre removed this from the Unreleased milestone Jan 19, 2021
@stamblerre stamblerre added this to the gopls/v1.0.0 milestone Jan 19, 2021
@findleyr
Copy link
Contributor

@findleyr findleyr commented Jan 19, 2021

This looks like a bug in go/types, and based on the panicking codepath probably still exists (that line number is correct in at least go1.14 and go1.15, but has changed in go1.16).

@damilolarandolph I'll try to repo, but could you share the exact shift expression causing this panic?

@damilolarandolph
Copy link
Author

@damilolarandolph damilolarandolph commented Jan 19, 2021

This looks like a bug in go/types, and based on the panicking codepath probably still exists (that line number is correct in at least go1.14 and go1.15, but has changed in go1.16).

@damilolarandolph I'll try to repo, but could you share the exact shift expression causing this panic?

@findleyr

I was shifting left. Although I was doing something wrong. I meant to shift by 32 bits but tried to shift by the max value of a 32 bit int. So val << 0xffffffff instead of val << 32. But the full expression was something like

(int64(val) << 0xffffffff) & int64(otherVal)

@damilolarandolph
Copy link
Author

@damilolarandolph damilolarandolph commented Jan 19, 2021

Thank you for sharing this report, @damilolarandolph. What version of Go are you using?

I'm using Go 1.15.6 @stamblerre

@stamblerre stamblerre added this to To Do in gopls on-deck Feb 28, 2021
@stamblerre stamblerre changed the title x/tools/gopls: automated issue report (crash) x/tools/gopls: crash in go/types with 1.15 Mar 11, 2021
@griesemer
Copy link
Contributor

@griesemer griesemer commented Mar 18, 2021

Additional data point: none of the type checkers (go/types, types2, or the compiler) have a problem with this expression, tested via:

package p
func _(val, otherVal int) {
	_ = (int64(val) << 0xffffffff) & int64(otherVal)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants