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
gopls@v0.12.3 introduced a log.Fatal during analysis, when importing fails. We suspect this is the cause of a number of crash reports with no stack (because VS Code does not extract log.Fatal messages in the way it extracts panic stacks).
While we think we've fixed the root cause of this fatal error, but in case we have not we should remove this log.Fatal before cutting a patch release, either choosing to panic or simply file a bug report and keep going. I lean toward the latter, as I don't feel confident that we have eliminated all sources of import failure.
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
Jun 23, 2023
We have received a number of empty crash reports for gopls since cutting
the v0.12.3 release. We don't want to auto-populate crash reports with
log.Fatal messages (as unlike panicking stacks they may contain the name
of user packages), so in almost all cases we lose information as to why
gopls crashed (users are unlikely to pre-populate this information).
In general, I don't think failing analysis should crash the process, so
switch this failure mode to a bug report.
Fixesgolang/go#60963
Change-Id: I670ee4b1adbe9f37d763c5684b14d4bcb78dcb63
Reviewed-on: https://go-review.googlesource.com/c/tools/+/505575
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit fa10359)
Reviewed-on: https://go-review.googlesource.com/c/tools/+/505576
gopls@v0.12.3 introduced a log.Fatal during analysis, when importing fails. We suspect this is the cause of a number of crash reports with no stack (because VS Code does not extract log.Fatal messages in the way it extracts panic stacks).
While we think we've fixed the root cause of this fatal error, but in case we have not we should remove this log.Fatal before cutting a patch release, either choosing to panic or simply file a bug report and keep going. I lean toward the latter, as I don't feel confident that we have eliminated all sources of import failure.
CC @hyangah @adonovan
The text was updated successfully, but these errors were encountered: