You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Sep 6, 2024
I noticed that gopls had a bug report in its filecache, and typed
gopls bug
, perhaps for the first time ever:Gopls detected 2 internal errors, 1 distinct:
-- 2024-09-06 13:14:49.814906 -0400 EDT --
goroutine 478469 [running]:
runtime/debug.Stack()
/Users/adonovan/w/goroot/src/runtime/debug/stack.go:26 +0x64
golang.org/x/tools/gopls/internal/util/bug.report({0x1400c18f9e0, 0x8c})
/Users/adonovan/w/xtools/gopls/internal/util/bug/bug.go:91 +0xd4
golang.org/x/tools/gopls/internal/util/bug.Errorf({0x10553b2a6?, 0x3e?}, {0x14019756730?, 0x1?, 0x140131124b0?})
/Users/adonovan/w/xtools/gopls/internal/util/bug/bug.go:61 +0x3c
golang.org/x/tools/gopls/internal/cache.(*Snapshot).load(0x1400759d9e0, {0x1059cb588, 0x1400e7d24b0}, 0x0, {0x1400025d530, 0x1, 0x0?})
/Users/adonovan/w/xtools/gopls/internal/cache/load.go:185 +0x1a74
golang.org/x/tools/gopls/internal/cache.(*Snapshot).MetadataForFile(0x1400759d9e0, {0x1059cb588, 0x1400e7d24b0}, {0x140155c9260, 0x4b})
/Users/adonovan/w/xtools/gopls/internal/cache/snapshot.go:719 +0x2a8
golang.org/x/tools/gopls/internal/golang.selectPackageForFile({0x1059cb588, 0x1400e7d24b0}, 0x1400759d9e0, {0x140155c9260, 0x4b}, 0x1059bcb08)
/Users/adonovan/w/xtools/gopls/internal/golang/snapshot.go:70 +0x4c
golang.org/x/tools/gopls/internal/golang.NarrowestPackageForFile({0x1059cb588?, 0x1400e7d24b0?}, 0x1054dfa78?, {0x140155c9260?, 0x0?})
/Users/adonovan/w/xtools/gopls/internal/golang/snapshot.go:48 +0x30
golang.org/x/tools/gopls/internal/golang.InlayHint({0x1059cb588?, 0x1400e7d2360?}, 0x1400759d9e0, {0x1059ce340, 0x140197a4d20}, {{0x5809520?, 0x1?}, {0xe7d2270?, 0x140?}})
/Users/adonovan/w/xtools/gopls/internal/golang/inlay_hint.go:30 +0xb0
golang.org/x/tools/gopls/internal/server.(*server).InlayHint(0x1400030e480, {0x1059cb5c0, 0x140108e2c80}, 0x1400e7d2270)
/Users/adonovan/w/xtools/gopls/internal/server/inlay_hint.go:32 +0x278
golang.org/x/tools/gopls/internal/protocol.serverDispatch({0x1059cb5c0, 0x140108e2c80}, {0x1059e68a0, 0x1400030e480}, 0x1400e7d2240, {0x1059cb780, 0x1401f3e3f40})
/Users/adonovan/w/xtools/gopls/internal/protocol/tsserver.go:525 +0x19a0
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x1059cb5c0, 0x140108e2c80}, 0x1400e7d2240, {0x1059cb780, 0x1401f3e3f40})
/Users/adonovan/w/xtools/gopls/internal/protocol/protocol.go:160 +0x74
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x1059cb5c0, 0x140108e2c80}, 0x1400e7d2240, {0x1059cb780, 0x1401f3e3f40})
/Users/adonovan/w/xtools/gopls/internal/lsprpc/lsprpc.go:509 +0x6b8
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x1059cb5c0, 0x140108e2c80}, 0x14013422810, {0x1059cb780, 0x1401f3e3f40})
/Users/adonovan/w/xtools/internal/jsonrpc2/handler.go:35 +0xc0
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
/Users/adonovan/w/xtools/internal/jsonrpc2/handler.go:103 +0x90
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 105
/Users/adonovan/w/xtools/internal/jsonrpc2/handler.go:100 +0x19c
-- 2024-09-06 14:03:50.182545 -0400 EDT --
/Users/adonovan/w/xtools/gopls/internal/cache/load.go:185: internal error: go/packages returned unexpected package "golang.org/x/tools/go/callgraph/cha/testdata/func.go.
master" for standalone file (2/2)goroutine 42303 [running]:
runtime/debug.Stack()
/Users/adonovan/w/goroot/src/runtime/debug/stack.go:26 +0x64
golang.org/x/tools/gopls/internal/util/bug.report({0x14010174510, 0x8b})
/Users/adonovan/w/xtools/gopls/internal/util/bug/bug.go:91 +0xd4
golang.org/x/tools/gopls/internal/util/bug.Errorf({0x10557f2a6?, 0x3d?}, {0x14015c3dbc0?, 0x1?, 0x1400af80b40?})
/Users/adonovan/w/xtools/gopls/internal/util/bug/bug.go:61 +0x3c
golang.org/x/tools/gopls/internal/cache.(*Snapshot).load(0x1401581bd40, {0x105a0f588, 0x140167c50e0}, 0x0, {0x140078d9530, 0x1, 0x0?})
/Users/adonovan/w/xtools/gopls/internal/cache/load.go:185 +0x1a74
golang.org/x/tools/gopls/internal/cache.(*Snapshot).MetadataForFile(0x1401581bd40, {0x105a0f588, 0x140167c50e0}, {0x14012916b40, 0x4a})
/Users/adonovan/w/xtools/gopls/internal/cache/snapshot.go:719 +0x2a8
golang.org/x/tools/gopls/internal/golang.selectPackageForFile({0x105a0f588, 0x140167c50e0}, 0x1401581bd40, {0x14012916b40, 0x4a}, 0x105a00b08)
/Users/adonovan/w/xtools/gopls/internal/golang/snapshot.go:70 +0x4c
golang.org/x/tools/gopls/internal/golang.NarrowestPackageForFile({0x105a0f588?, 0x140167c50e0?}, 0x105523a78?, {0x14012916b40?, 0x0?})
/Users/adonovan/w/xtools/gopls/internal/golang/snapshot.go:48 +0x30
golang.org/x/tools/gopls/internal/golang.InlayHint({0x105a0f588?, 0x140167c4f90?}, 0x1401581bd40, {0x105a12340, 0x14015d60ae0}, {{0x584d520?, 0x1?}, {0x167c4ea0?, 0x140?}})
/Users/adonovan/w/xtools/gopls/internal/golang/inlay_hint.go:30 +0xb0
golang.org/x/tools/gopls/internal/server.(*server).InlayHint(0x14000032480, {0x105a0f5c0, 0x140159419f0}, 0x140167c4ea0)
/Users/adonovan/w/xtools/gopls/internal/server/inlay_hint.go:32 +0x278
golang.org/x/tools/gopls/internal/protocol.serverDispatch({0x105a0f5c0, 0x140159419f0}, {0x105a2a8a0, 0x14000032480}, 0x140167c4e70, {0x105a0f780, 0x1401597e5c0})
/Users/adonovan/w/xtools/gopls/internal/protocol/tsserver.go:525 +0x19a0
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x105a0f5c0, 0x140159419f0}, 0x140167c4e70, {0x105a0f780, 0x1401597e5c0})
/Users/adonovan/w/xtools/gopls/internal/protocol/protocol.go:160 +0x74
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x105a0f5c0, 0x140159419f0}, 0x140167c4e70, {0x105a0f780, 0x1401597e5c0})
/Users/adonovan/w/xtools/gopls/internal/lsprpc/lsprpc.go:509 +0x6b8
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x105a0f5c0, 0x140159419f0}, 0x14015978918, {0x105a0f780, 0x1401597e5c0})
/Users/adonovan/w/xtools/internal/jsonrpc2/handler.go:35 +0xc0
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
/Users/adonovan/w/xtools/internal/jsonrpc2/handler.go:103 +0x90
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 94
/Users/adonovan/w/xtools/internal/jsonrpc2/handler.go:100 +0x19c
Build info
The text was updated successfully, but these errors were encountered: