-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Extension host terminated unexpectedly after 1.26.0 update #56387
Comments
I'm having the same issue. It seems to be killing prettier and possible other extensions. |
The biggest problem for me was the vim extension. When the extension host went down it would leave me in command mode, but none of the commands would work. Anyway, I installed the previous release and it auto-updated to 1.26.0 when i accidentally restarted Code. It seems to be working ok again. |
met the same issue |
met the same issue ERR An unknown error occurred. Please consult the log for more details.
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1398 ERR Invalid argument: Error: Invalid argument
at t._validatePosition (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:502:878)
at t._getWordRangeAtPosition (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:503:187)
at Object.getWordRangeAtPosition (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:500:806)
at Object.definitionLocation (/Users/joseph/.vscode/extensions/ms-vscode.go-0.6.87/out/src/goDeclaration.js:15:30)
at GoSignatureHelpProvider.provideSignatureHelp (/Users/joseph/.vscode/extensions/ms-vscode.go-0.6.87/out/src/goSignature.js:30:32)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:744:186
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:110:323
at new n.Class.derive._oncancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:84:776)
at Object.t.asWinJsPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:110:286)
at e.provideSignatureHelp (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:744:140)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:754:663
at e._withAdapter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:747:177)
at e.$provideSignatureHelp (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:754:625)
at e._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:671:983)
at e._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:671:701)
at e._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:670:767)
at e._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:670:536)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:669:452
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:672:575
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:96:903
at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:98:218)
at a (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:162:713)
at Socket._socketDataListener (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:162:932)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20) |
met the same, in my case disabling vscode-flow-ide extention made all working ok. |
same issue here, the ruby-extension is the killer in my case... |
@sanjcho Thanks for the tip! It was the same for me, disabling |
In my case the Go extension make the problem, but the Go extension author is microsoft. |
@mickeygo Yea they are aware of the issue: microsoft/vscode-go#1845 |
Sorry about that! It looks like there are a few hiccups possibly caused by VSCode's Electron update. A short list of apparently impacted extensions:
If you find other impacted extensions, please try to also reach out to them directly. I am not entirely sure at this point what is the root cause. @ramya-rao-a you appear to understand the root cause, can you please explain it more microsoft/vscode-go#1845 (comment)
|
Thank you for looking into it. This seems like a difficult one to dig into |
Adding "Candidate" label just so that this shows up in our discussion round. |
In my investigations for I've found two open Electron issues related to this: electron/electron#13254 and electron/electron#13679 As it is occurring within Electron, I haven't found a way to prevent it from occurring at the extension level. |
@alexandrudima My findings were similar to what @wingrunr21 is saying above. @wingrunr21 In The above mitigation works for electron/electron#13254. I am still looking into if electron/electron#13679 has any affect on |
@ramya-rao-a ah, that makes sense. That auto detection is a problem I'm still trying to solve as a lot of Ruby environments are configured via shell functions and can vary by directory. That's why I proposed checking via |
Updated yesterday. None of eslint, prettier, nor gitlens work. |
A minimal repro: const child = cp.spawn(`node1`);
child.stdin.write('hi standard in!'); And a minimal fix from an extension would be to always check const child = cp.spawn(`node1`);
if (child.pid) {
child.stdin.write('hi standard in!');
} |
I have the same issue with the Python extension after 1.26.0 update:
Visual Studio Code (binary, stable) |
It looks like the root cause is electron/electron#13254. We have identified a simple workaround to avoid the crash. ❗️❗️❗️ Please verify this issue on all 3 platforms: windows, linux and mac. To verify, you can use the following extension:
{
"name": "56387",
"version": "0.0.1",
"publisher": "alex",
"engines": {
"vscode": "^1.25.0"
},
"activationEvents": [
"onCommand:extension.sayHello"
],
"main": "./extension",
"contributes": {
"commands": [
{
"command": "extension.sayHello",
"title": "Hello World"
}
]
}
}
const vscode = require('vscode');
const cp = require('child_process');
exports.activate = function(context) {
let disposable = vscode.commands.registerCommand('extension.sayHello', function () {
console.log(`in repro1`);
const child = cp.spawn(`/node1`);
child.stdin.write('hi standard in!');
});
context.subscriptions.push(disposable);
} |
@alexandrudima After 20 minutes of testing, I can confirm that provided patch so far fixes the issue. Tested on Arch Linux OS with the official VSCode binary. Thanks a lot! |
The vscode-go update on my Mac today, now it works fine. |
@mickeygo @alexandrudima can anyone help me, I can't figure out how to implement this update. Thanks! |
@Kevin8428 I mean that now the extension vscode-go update to 0.6.88 version and it will work fine on Mac, does not need to change the config file. I don't know other extensions. Thanks ! |
ahh same! thanks! |
Issue Type: Bug
When I open VS Code I get a toast that says "Extension host terminated unexpectedly."
Usually this happens on startup, but occasionally extensions remain functional until I open, close, switch, or save a tab.
This never occurred before I updated to v.1.26.0 this morning. I saw a few similar issues, but they seem to end up being related to extensions I don't use such as ruby or go.
Dev tools output
VS Code version: Code 1.26.0 (4e93618, 2018-08-13T16:20:44.170Z)
OS version: Darwin x64 17.7.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (22)
(24 theme extensions excluded)
The text was updated successfully, but these errors were encountered: