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

gopls: automated issue report (crash) #3461

Closed
lastzidanemagaba opened this issue Jul 19, 2024 · 1 comment
Closed

gopls: automated issue report (crash) #3461

lastzidanemagaba opened this issue Jul 19, 2024 · 1 comment
Milestone

Comments

@lastzidanemagaba
Copy link

gopls version: v0.16.1/go1.22.5
gopls flags:
update flags: proxy
extension version: 0.42.0
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Fri, 19 Jul 2024 10:25:08 GMT
restart history:
Fri, 19 Jul 2024 08:17:00 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic:   stmt.go:932: assertion failed

goroutine 3378 [running]:
go/types.(*Checker).handleBailout(0xc004d28e00, 0xc004637898)
	  check.go:367  0x88
panic({0xe96ca0%3F, 0xc002a0dc50%3F})
	  panic.go:770  0x132
go/types.assert(0x0%3F)
	  errors.go:28  0x54
go/types.(*Checker).rangeStmt(0xc004d28e00, 0x3, 0xc00099ca20)
	  stmt.go:932  0xe70
go/types.(*Checker).stmt(0xc004d28e00, 0x0, {0x1313600, 0xc00099ca20})
	  stmt.go:827  0xab9
go/types.(*Checker).stmtList(0xc004d28e00, 0x0, {0xc0002d9400%3F, 0x0%3F, 0x4573be%3F})
	  stmt.go:121  0x85
go/types.(*Checker).funcBody(0xc004d28e00, 0x1310d08%3F, {0xc00278c5e0%3F, 0xc00014e380%3F}, 0xc0020fff00, 0xc0000ff860, {0x0%3F, 0x0%3F})
	  stmt.go:41  0x331
go/types.(*Checker).funcDecl.func1()
	  decl.go:852  0x3a
go/types.(*Checker).processDelayed(0xc004d28e00, 0x0)
	  check.go:467  0x162
go/types.(*Checker).checkFiles(0xc004d28e00, {0xc002c13d00, 0xa, 0x10})
	  check.go:411  0x1cc
go/types.(*Checker).Files(...)
	  check.go:372
golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).checkPackage(0xc002d30840, {0x13149a8, 0xc000353f50}, 0xc002d479e0)
	  check.go:1543  0xa25
golang.org/x/tools/gopls/internal/cache.(*typeCheckBatch).handleSyntaxPackage(0xc002d30840, {0x13149a8, 0xc000353f50}, 0x0, {0xc00085a2e0, 0x10})
	  check.go:568  0x5e5
golang.org/x/tools/gopls/internal/cache.(*Snapshot).forEachPackageInternal.func2()
	  check.go:418  0x2b
golang.org/x/sync/errgroup.(*Group).Go.func1()
	  errgroup.go:78  0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 186
	  errgroup.go:75  0x96
gopls stats -anon gopls stats -anon failed after 707 ms. Please check if gopls is killed by OS.

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>

@gopherbot gopherbot added this to the Untriaged milestone Jul 19, 2024
@findleyr
Copy link
Contributor

Thanks for the report. Closing as a duplicate of golang/go#68334. This should be fixed by the 1.22.6 Go release.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants