vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

gopls: automated issue report (crash)

Open Adam-Jin opened this issue 3 years ago • 0 comments

gopls version: v0.9.4 (go1.18.4) gopls flags: update flags: proxy extension version: 0.35.2 go version: 1.18.4 environment: Visual Studio Code linux initialization error: undefined issue timestamp: Wed, 31 Aug 2022 05:41:34 GMT restart history: Wed, 31 Aug 2022 02:54:23 GMT: activation (enabled: true) Wed, 31 Aug 2022 04:46:47 GMT: manual (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x70 pc=0x7fde94]

goroutine 10510 [running]:
golang.org/x/mod/modfile.(*File).Format(0xc001bd2960%3F)
	  rule.go:877  0x14
golang.org/x/tools/internal/lsp/cache.(*importsState).runProcessEnvFunc(0xc000530630, {0x1087b30, 0xc0056f1ad0}, 0xc001ee08c0, 0xc00277b580)
	  imports.go:62  0x1ae
golang.org/x/tools/internal/lsp/cache.(*snapshot).RunProcessEnvFunc(0xc001ee08c0%3F, {0x1087b30%3F, 0xc0056f1ad0%3F}, 0x1087dd0%3F)
	  view.go:370  0x34
golang.org/x/tools/internal/lsp/source.AllImportsFixes({0x1087a88, 0xc001d00180}, {0x10902f0%3F, 0xc001ee08c0}, {0x1087dd0, 0xc00066ab60})
	  format.go:120  0x308
golang.org/x/tools/internal/lsp.(*Server).codeAction(0xcb8440%3F, {0x1087a88, 0xc001d00180}, 0xc004275380)
	  code_action.go:97  0x97b
golang.org/x/tools/internal/lsp.(*Server).CodeAction(0xc0000fc620%3F, {0x1087a88%3F, 0xc001d00180%3F}, 0xcb8440%3F)
	  server_gen.go:16  0x25
golang.org/x/tools/internal/lsp/protocol.serverDispatch({0x1087a88, 0xc001d00180}, {0x10943b0, 0xc0004d66c0}, 0xc0056f1a10, {0x1087d28, 0xc001d00100})
	  tsserver.go:611  0x1ce2
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1({0x1087a88, 0xc001d00180}, 0xc0056f1a10, {0x1087d28, 0xc001d00100})
	  protocol.go:157  0x90
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1({0x1087a88, 0xc001d00180}, 0xc0056f1a10, {0x1087d28%3F, 0xc001d00100%3F})
	  lsprpc.go:515  0xa43
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1({0x1087a88, 0xc001d00180}, 0xc002381590, {0x1087d28%3F, 0xc001d00100%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 - 1:41:17 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>

Adam-Jin avatar Aug 31 '22 05:08 Adam-Jin