Skip to content

gopls: automated issue report (crash) #3607

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

Closed
dsxing opened this issue Nov 19, 2024 · 2 comments
Closed

gopls: automated issue report (crash) #3607

dsxing opened this issue Nov 19, 2024 · 2 comments
Milestone

Comments

@dsxing
Copy link

dsxing commented Nov 19, 2024

gopls version: v0.16.2/go1.22.5
gopls flags:
update flags: proxy
extension version: 0.42.1
environment: Visual Studio Code win32
initialization error: undefined
issue timestamp: Tue, 19 Nov 2024 06:10:08 GMT
restart history:
Tue, 19 Nov 2024 06:06:22 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: C:/Program   stmt.go:932: assertion failed

goroutine 26955 [running]:
go/types.(*Checker).handleBailout(0xc025e2f600, 0xc012ca9900)
	C:/Program   check.go:367  0x88
panic({0x15ad9e0%3F, 0xc01e110850%3F})
	C:/Program   panic.go:770  0x132
go/types.assert(0x0%3F)
	C:/Program   errors.go:28  0x54
go/types.(*Checker).rangeStmt(0xc025e2f600, 0x3, 0xc01eedb3e0)
	C:/Program   stmt.go:932  0xe70
go/types.(*Checker).stmt(0xc025e2f600, 0x0, {0x1a30660, 0xc01eedb3e0})
	C:/Program   stmt.go:827  0xab9
go/types.(*Checker).stmtList(0xc025e2f600, 0x0, {0xc0260e6000%3F, 0x0%3F, 0x1d%3F})
	C:/Program   stmt.go:121  0x85
go/types.(*Checker).funcBody(0xc025e2f600, 0x1a2ca78%3F, {0xc0260dd0a8%3F, 0xc02cdaf600%3F}, 0xc011e1b880, 0xc0260cdb90, {0x0%3F, 0x0%3F})
	C:/Program   stmt.go:41  0x331
go/types.(*Checker).funcDecl.func1()
	C:/Program   decl.go:852  0x3a
go/types.(*Checker).processDelayed(0xc025e2f600, 0x0)
	C:/Program   check.go:467  0x162
go/types.(*Checker).checkFiles(0xc025e2f600, {0xc01a4e37c0, 0x25, 0x25})
	C:/Program   check.go:411  0x1cc
go/types.(*Checker).Files(...)
	C:/Program   check.go:372
golang.org/x/tools/gopls/internal/cache.(*analysisNode).typeCheck(0xc017560d00, {0xc011cc7680, 0x25, 0x25})
	  analysis.go:1054  0x6be
golang.org/x/tools/gopls/internal/cache.(*analysisNode).run(0xc017560d00, {0x1a31908, 0xc01965f560})
	  analysis.go:835  0x1d8
golang.org/x/tools/gopls/internal/cache.(*analysisNode).runCached(0xc017560d00, {0x1a31908, 0xc01965f560})
	  analysis.go:694  0x126
golang.org/x/tools/gopls/internal/cache.(*Snapshot).Analyze.func6.1()
	  analysis.go:402  0xca
golang.org/x/sync/errgroup.(*Group).Go.func1()
	  errgroup.go:78  0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 26954
	  errgroup.go:75  0x96
gopls stats -anon gopls stats -anon failed after 38938 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 Nov 19, 2024
@h9jiang
Copy link
Member

h9jiang commented Nov 20, 2024

This is a version from gopls 0.16.2.

cc @findleyr

@findleyr
Copy link
Member

Duplicate of golang/go#68334. Please upgrade to Go 1.22.6 or later.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 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

4 participants