Skip to content

gopls: automated issue report (crash) #2337

Closed
@paigmf

Description

@paigmf

gopls version: v0.9.0 (go1.17.2)
gopls flags:
update flags: proxy
extension version: 2022.7.1214
go version: 1.17.2
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Wed, 13 Jul 2022 07:04:00 GMT
restart history:
Wed, 13 Jul 2022 06:55:00 GMT: activation (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=0x30 pc=0x11dfed8]

goroutine 32060 [running]:
golang.org/x/tools/internal/xcontext.detachedContext.Value(...)
	  xcontext.go:23
golang.org/x/tools/internal/lsp/debug.GetInstance({0x1be0fa0, 0xc00fa0e030})
	  serve.go:361  0x3e
golang.org/x/tools/internal/lsp/debug.makeGlobalExporter.func1({0x1be0fa0, 0xc00fa0e030}, {{0xc0abb974a199edc0, 0x23bfc7c80c, 0x215cb40}, {{{0x1bde460, 0xc0000320e0}, 0xa, {0x186ef00, 0x199b864}}, ...}, ...}, ...)
	  serve.go:571  0x7e
golang.org/x/tools/internal/event/core.deliver({0x1be0fa0, 0xc00fa0e030}, 0xc0004c5230, {{0xc0abb974a199edc0, 0x23bfc7c80c, 0x215cb40}, {{{0x1bde460, 0xc0000320e0}, 0xa, {0x186ef00, ...}}, ...}, ...})
	  export.go:45  0xfd
golang.org/x/tools/internal/event/core.ExportPair({_, _}, {{0x0, 0x0, 0x0}, {{{0x1bde460, 0xc0000320e0}, 0xa, {0x186ef00, 0x199b864}}, ...}, ...}, ...)
	  export.go:68  0x128
golang.org/x/tools/internal/event.Start({0x1be0fa0, 0xc00fa0e030}, {0x199b864, 0xc027126020}, {0xc01df82190, 0x0, 0x0})
	  event.go:91  0x378
golang.org/x/tools/internal/jsonrpc2.(*conn).Notify(0x10, {0x1be0fa0, 0xc00fa0e030}, {0x199b864, 0xa}, {0x1852ba0, 0xc027126020})
	  conn.go:85  0x368
golang.org/x/tools/internal/lsp/protocol.clientConn.Notify(...)
	  protocol.go:60
golang.org/x/tools/internal/lsp/protocol.(*clientDispatcher).Progress(0x1be0fa0, {0x1be0fa0, 0xc00fa0e030}, 0x55)
	  tsclient.go:168  0x42
golang.org/x/tools/internal/lsp/progress.(*WorkDone).Report(0xc020ffa000, {0x0, 0x0}, {0xc053ae6060, 0x55}, 0x0)
	  progress.go:188  0x291
golang.org/x/tools/internal/lsp/progress.(*WorkDoneWriter).Write(0xc027cd2c80, {0xc031f14000, 0x55, 0x0})
	  progress.go:268  0x5c
io.(*multiWriter).Write(0xc0112f4200, {0xc031f14000, 0x55, 0x8000})
	  multi.go:60  0x86
io.copyBuffer({0x1bc9560, 0xc02719e720}, {0x1bc9a00, 0xc0112f4200}, {0x0, 0x0, 0x0})
	  io.go:425  0x204
io.Copy(...)
	  io.go:382
os/exec.(*Cmd).writerDescriptor.func1()
	  exec.go:311  0x3a
os/exec.(*Cmd).Start.func1(0xc00bb06fc0)
	  exec.go:441  0x25
created by os/exec.(*Cmd).Start
	  exec.go:440  0x80d
[Error - 2:03:46 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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions