-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug: unhandled promise rejection error #982
Comments
Change https://golang.org/cl/274932 mentions this issue: |
Add a sanity check that launchArgs.packagePathToGoModPathMap is not undefined. Updates #982 Change-Id: Id7470268c6beaf3e7656e16a1d07fb7ea6d80cca Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/274932 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Quoc Truong <[email protected]>
I was unable to reproduce this and unsure what could be causing packagePathToGoModMap to be undefined. We added a check so it will not crash if this happens. If you encounter this error again, please comment on this issue with information about your debugging setup! |
Change https://golang.org/cl/276215 mentions this issue: |
…ModMap Add a sanity check that launchArgs.packagePathToGoModPathMap is not undefined. Updates #982 Change-Id: Id7470268c6beaf3e7656e16a1d07fb7ea6d80cca Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/274932 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Quoc Truong <[email protected]> (cherry picked from commit 650b8ae) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/276215 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Robert Findley <[email protected]>
Reported by a user in the gopher slack
Extension version: v0.19.0
The rejection was caused by the code
vscode-go/src/debugAdapter/goDebug.ts
Line 592 in e8d462e
For some reason that I don't understand, we probably ended up with
undefined
launchArgs.packagePathToGoModPAthMap
. Check how this happened, and also make the code path more robust./cc @quoctruong @suzmue
The text was updated successfully, but these errors were encountered: