Skip to content

x/tools/gopls: automated issue report (crash) #45183

@steven-meadows

Description

@steven-meadows

gopls version: v0.6.9
gopls flags:
extension version: 0.23.2
environment: Visual Studio Code linux
initialization error: undefined
manual restart count: 0
total start count: 1

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: unreachable

goroutine 1894 [running]:
go/types.(*Checker).handleBailout(0xc002aef320, 0xc00207f808)
	  check.go:245  0x9f
panic(0xccdfc0, 0xf3f570)
	  panic.go:965  0x1b9
go/types.unreachable(...)
	  errors.go:25
go/types.(*Checker).assignment(0xc002aef320, 0xc0022a9e40, 0xf54b20, 0xc00260cc00, 0xe147fc, 0xa)
	  assignments.go:29  0x9ef
go/types.(*Checker).initVar(0xc002aef320, 0xc000b84730, 0xc0022a9e40, 0xe147fc, 0xa, 0x40f600, 0xc0028dbcd8)
	  assignments.go:141  0x148
go/types.(*Checker).initVars(0xc002aef320, 0xc0028dbcd0, 0x1, 0x1, 0xc002d09180, 0x1, 0x1, 0x0)
	  assignments.go:264  0x633
go/types.(*Checker).shortVarDecl(0xc002aef320, 0xf517c0, 0xc0028d6c60, 0xc002d09170, 0x1, 0x1, 0xc002d09180, 0x1, 0x1)
	  assignments.go:339  0x27e
go/types.(*Checker).stmt(0xc002aef320, 0x3, 0xf5fea0, 0xc002d12a80)
	  stmt.go:408  0x3d05
go/types.(*Checker).stmtList(0xc002aef320, 0x3, 0xc002d11b80, 0x2, 0x2)
	  stmt.go:120  0xd1
go/types.(*Checker).stmt(0xc002aef320, 0x3, 0xf5ffc0, 0xc002d0e9c0)
	  stmt.go:495  0x480a
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf60200, 0xc002d12ac0)
	  stmt.go:750  0x1e6e
go/types.(*Checker).stmtList(0xc002aef320, 0x0, 0xc001248e00, 0x9, 0x10)
	  stmt.go:120  0xd1
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf5ffc0, 0xc002d0e9f0)
	  stmt.go:495  0x480a
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf60350, 0xc002d12b00)
	  stmt.go:507  0x4b51
go/types.(*Checker).stmtList(0xc002aef320, 0x0, 0xc0015ddc80, 0x5, 0x8)
	  stmt.go:120  0xd1
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf5ffc0, 0xc002d0ea20)
	  stmt.go:495  0x480a
go/types.(*Checker).stmt(0xc002aef320, 0x0, 0xf60350, 0xc002d12b40)
	  stmt.go:514  0x4ca5
go/types.(*Checker).stmtList(0xc002aef320, 0x0, 0xc0015dda00, 0x6, 0x8)
	  stmt.go:120  0xd1
go/types.(*Checker).funcBody(0xc002aef320, 0xc00223f4a0, 0xc00297ada8, 0x6, 0xc00260dc80, 0xc002d0ea50, 0x0, 0x0)
	  stmt.go:42  0x1f3
go/types.(*Checker).funcDecl.func1()
	  decl.go:749  0x67
go/types.(*Checker).processDelayed(0xc002aef320, 0x0)
	  check.go:291  0x3e
go/types.(*Checker).checkFiles(0xc002aef320, 0xc002150380, 0x4, 0x4, 0x0, 0x0)
	  check.go:267  0xd0
go/types.(*Checker).Files(...)
	  check.go:250
golang.org/x/tools/internal/lsp/cache.typeCheck(0xf61d78, 0xc0009e7900, 0xc002760340, 0xc00017e460, 0x2, 0xc00193b800, 0x0, 0x0, 0x0)
	  check.go:431  0x1193
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle.func1(0xf61d78, 0xc0009e7900, 0xf50800, 0xc002760340, 0xc0000d0420, 0x0)
	  check.go:101  0x1bc
golang.org/x/tools/internal/memoize.(*Handle).run.func1(0xc001ea0540, 0xf61d78, 0xc0009e7900, 0xc0021502e0, 0xf50800, 0xc002760340, 0xc00026f920)
	  memoize.go:322  0xab
created by golang.org/x/tools/internal/memoize.(*Handle).run
	  memoize.go:315  0x185
[Error - 5:46:34 PM] 

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions