Not planned
Description
gopls version: v0.12.2 (go1.20)
gopls flags:
update flags: proxy
extension version: 0.39.0
go version: 1.20
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Tue, 20 Jun 2023 19:22:58 GMT
restart history:
Tue, 20 Jun 2023 19:22:41 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=0x0 pc=0x729994] goroutine 9467 [running]: golang.org/x/tools/internal/gcimporter.iexportCommon.func1() iexport.go:93 0x8a panic({0xdc2b00, 0x16b8180}) panic.go:884 0x213 go/types.(*Package).Path(...) package.go:31 golang.org/x/tools/internal/gcimporter.(*exportWriter).exportPath(...) iexport.go:426 golang.org/x/tools/internal/gcimporter.(*exportWriter).pkg(0xc0081bd200, 0x0) iexport.go:664 0x54 golang.org/x/tools/internal/gcimporter.(*exportWriter).setPkg(...) iexport.go:832 golang.org/x/tools/internal/gcimporter.(*exportWriter).doTyp(0xc0081bd200, {0x1149df8%3F, 0xc0081744b0%3F}, 0x0) iexport.go:776 0x514 golang.org/x/tools/internal/gcimporter.(*iexporter).typOff(0xc0046c0e10, {0x1149df8, 0xc0081744b0}, 0x0%3F) iexport.go:694 0x92 golang.org/x/tools/internal/gcimporter.(*exportWriter).typ(0xc0081bd1a0, {0x1149df8%3F, 0xc0081744b0%3F}, 0x7293f7%3F) iexport.go:677 0x2e golang.org/x/tools/internal/gcimporter.(*exportWriter).typeList(0xc0081bd1a0, 0xc008166570, 0x428da5%3F) iexport.go:849 0x7b golang.org/x/tools/internal/gcimporter.(*exportWriter).doTyp(0xc0081bd1a0, {0x1149d58%3F, 0xc0070c78f0%3F}, 0x0) iexport.go:721 0xf3 golang.org/x/tools/internal/gcimporter.(*iexporter).typOff(0xc0046c0e10, {0x1149d58, 0xc0070c78f0}, 0x1b76bd%3F) iexport.go:694 0x92 golang.org/x/tools/internal/gcimporter.(*exportWriter).typ(0xc0081bd140, {0x1149d58%3F, 0xc0070c78f0%3F}, 0xc00813ad20%3F) iexport.go:677 0x2e golang.org/x/tools/internal/gcimporter.(*exportWriter).value(0xc0081bd140, {0x1149d58%3F, 0xc0070c78f0}, {0x114d9f0, 0xc0081746c0}) iexport.go:911 0x45 golang.org/x/tools/internal/gcimporter.(*iexporter).doDecl(0xc0046c0e10, {0x1156518, 0xc00813b260}) iexport.go:481 0x2ed golang.org/x/tools/internal/gcimporter.iexportCommon({0x1145de0, 0xc0081eff20}, 0xc00335e040, 0x0, 0x1, 0x2, {0xc0044dbca8, 0x1, 0xc0081efe90%3F}) iexport.go:139 0x3a5 golang.org/x/tools/internal/gcimporter.IExportShallow(0xdbcfe0%3F, 0xc0085d0050) iexport.go:43 0x75 golang.org/x/tools/gopls/internal/lsp/cache.(*typeCheckBatch).checkPackage.func1() check.go:646 0x2b1 created by golang.org/x/tools/gopls/internal/lsp/cache.(*typeCheckBatch).checkPackage check.go:638 0x305 [Error - 16:22:56]
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
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
findleyr commentedon Jun 20, 2023
Another dupe of golang/go#60891, which is fixed at master.