go/internal/lsp/debug
Robert Findley ed968f66bd internal/lsp/bug: add a package for bug reporting
The existing debug.Bug mechanism for reporting internal bugs is
insufficient for several reasons:
 - It requires a context, which is not always available.
 - By being defined in the debug package, it is subject to import
   cycles.
 - It is too complicated. Listening for bugs requires understanding the
   event package.

Replace this with a simpler 'bug' package with no dependencies, that
allows reporting, listing, and listening on internal bugs. Hopefully
this will fulfill the goal of debug.Bug, to help us track down rare
bugs.

Change-Id: I30cab58429b29bd2d944d62e94f5657e40a760fc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/399623
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
2022-05-16 14:45:30 +00:00
..
log internal/lsp/debug: hook runtime/trace into event spans 2020-12-11 18:50:31 +00:00
tag internal/lsp/bug: add a package for bug reporting 2022-05-16 14:45:30 +00:00
buildinfo_go1.12.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
buildinfo_go1.18.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
info.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
info_test.go internal/lsp/debug: add go version to gopls version output 2022-02-07 15:39:03 +00:00
metrics.go internal/event: move event/core.Tag to event/label.Label 2020-04-23 18:13:33 +00:00
rpc.go gopls/test: add type checking for debug server templates 2020-12-22 16:32:15 +00:00
serve.go internal/lsp/bug: add a package for bug reporting 2022-05-16 14:45:30 +00:00
trace.go gopls/test: add type checking for debug server templates 2020-12-22 16:32:15 +00:00