Skip to content

gopls: automated issue report (crash) #2903

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
xrfang opened this issue Aug 1, 2023 · 1 comment
Closed

gopls: automated issue report (crash) #2903

xrfang opened this issue Aug 1, 2023 · 1 comment

Comments

@xrfang
Copy link

xrfang commented Aug 1, 2023

gopls version: v0.13.0 (go1.20.6)
gopls flags:
update flags: proxy
extension version: 0.39.1
go version: 1.20.6
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Tue, 01 Aug 2023 05:35:35 GMT
restart history:
Tue, 01 Aug 2023 02:42:56 GMT: activation (enabled: true)
Tue, 01 Aug 2023 02:53:10 GMT: installation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: runtime error: index out of range [1] with length 1

goroutine 3210 [running]:
go/types.(*Tuple).At(...)
	  tuple.go:31
golang.org/x/tools/gopls/internal/lsp/analysis/stubmethods.fromCallExpr(0xc00214d580, 0xc00269e320, 0x1d0, 0xc0025ba080)
	  stubmethods.go:177  0x434
golang.org/x/tools/gopls/internal/lsp/analysis/stubmethods.GetStubInfo(0xc0025ac5a0%3F, 0x1d0%3F, {0xc00527e300%3F, 0x7, 0x8}, 0xc003302db0%3F)
	  stubmethods.go:141  0xbd
golang.org/x/tools/gopls/internal/lsp/analysis/stubmethods.DiagnosticForError(0xc000654e1c%3F, 0xc002f52e18%3F, 0x1d0, 0x3de, {0xc0002cac40%3F, 0xdfc220%3F}, 0x5%3F)
	  stubmethods.go:85  0xa8
golang.org/x/tools/gopls/internal/lsp.(*Server).codeAction(0xd69ac0%3F, {0x116dcb0%3F, 0xc0030bd4a0%3F}, 0xc000654e00)
	  code_action.go:206  0x160f
golang.org/x/tools/gopls/internal/lsp.(*Server).CodeAction(0xc00054b500%3F, {0x116dcb0%3F, 0xc0030bd4a0%3F}, 0xd69ac0%3F)
	  server_gen.go:16  0x25
golang.org/x/tools/gopls/internal/lsp/protocol.serverDispatch({0x116dcb0, 0xc0030bd4a0}, {0x117edd0, 0xc0003ecee0}, 0xc0033de000, {0x116df88, 0xc000261800})
	  tsserver.go:239  0x1f05
golang.org/x/tools/gopls/internal/lsp/protocol.ServerHandler.func1({0x116dcb0, 0xc0030bd4a0}, 0xc0033de000, {0x116df88, 0xc000261800})
	  protocol.go:157  0x90
golang.org/x/tools/gopls/internal/lsp/lsprpc.handshaker.func1({0x116dcb0, 0xc0030bd4a0}, 0xc0033de000, {0x116df88%3F, 0xc000261800%3F})
	  lsprpc.go:519  0x9f9
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1({0x116dcb0, 0xc0030bd4a0}, 0xc00012a8e8, {0x116df88%3F, 0xc000261800%3F})
	  handler.go:35  0xf6
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	  handler.go:103  0xa3
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	  handler.go:100  0x20a
[Error - 13:35:26] 

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 Aug 1, 2023
@findleyr
Copy link
Member

findleyr commented Aug 1, 2023

Thanks very much for reporting this crash. This is a dupe of golang/go#61693. We'll fix this and hopefully release v0.13.1 later today. Sorry for the breakage.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
@golang golang locked and limited conversation to collaborators Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants