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 extension host crashed with the following trace.
[2020-09-18 15:50:29.097] [exthost] [error] Activating extension golang.go failed due to an error:
[2020-09-18 15:50:29.103] [exthost] [error] TypeError: Cannot read property 'then' of undefined
at activate (/Users/aran/.vscode/extensions/golang.go-0.16.2/dist/goMain.js:13951:46)
at Function._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:917:841)
at Function._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:917:492)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:915:724
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at async Promise.all (index 0)
I suspect, the user's vscode got launched with incomplete PATH after the reboot & clean restart,
so the extension failed to find the go. The extension is supposed to a notification popup to indicate
this issue, but it's not guaranteed that the popup would show up first before the extension crashes.
The text was updated successfully, but these errors were encountered:
…n't found
If Go is not found, return a rejected promise, so, the promise
chaining can work. updateGoVarsFromConfig is not declared as an
async, so returning nothing means returning nothing.
Fixes#660
Change-Id: I16f73ca057f3b6bb220a754afc1baa43cc891c22
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/255963
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
(cherry picked from commit 8e9cae7)
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/257603
From #457 (comment)
The extension host crashed with the following trace.
The crash point corresponds to
vscode-go/src/goMain.ts
Line 85 in 5c4b766
I suspect, the user's vscode got launched with incomplete PATH after the reboot & clean restart,
so the extension failed to find the go. The extension is supposed to a notification popup to indicate
this issue, but it's not guaranteed that the popup would show up first before the extension crashes.
The text was updated successfully, but these errors were encountered: