Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/goLanguageServer.ts: include sanitized trace to issue report
Many automated gopls crash reports come with empty stack trace and provides little information. This CL tries to extract the stack trace from panic or the initialize error message. The stack trace is from the gopls binary itself so there is not much confidential except the package file paths. Remove those file paths and leave only the file base name parts. The package paths are included in the function name parts, so we still can locate the corresponding files in the gopls repository. If we fail to sanitize, do not include any stack trace and ask users to include it manually. Also, includes the language server binary flag, which will help with identifying crashes caused by incorrect gopls args. B Change-Id: I5fcab48b28b7adb0adf369af4227c29ca646b2a3 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/256878 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
- Loading branch information