-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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 fails to activate due to dependency to "natives" module #47569
Comments
* Update to Electron 2.0.0-beta.7 * bump to electron 2.0.0-beta.7 * localStorage - workaround birthtime rounding issues that clear workspace storage * fix compile error * workaround #47569 * localStorage - add telemetry for successful migration * increment to localStorageTimers4 * localStorage - allow to restore from backup if starting with 1.7.x again * logLocalStorageMigrationStatus only on insider * back to official distro * 💄 * still use exploration distro * remove GTK3 emoji picker which does not seem to work * 💄
I'm seeing this with Live Share when running vscode from source, although I don't with the latest insiders |
@eamodio we pushed electron v2 back so it will be in Insiders on Monday. I think Live Share will have a fix out soon. |
In case any other extension authors suddenly bump into this (FYI I didn't get a message but had to go digging into Developer Tools to discover this issue), you can find out what's pulling in |
@Tyriar I noticed this too, I think we do not show the nice notification message for disabling |
Closing, we have a workaround in place. |
FYI - This error just started for me after updating to VS Code 1.25 (released today) -- gulp@3.9.1 |
We got same issue once updating to 1.25 because our extension depends on the unzip module which relies on the natives module vscode-iot-workbench@0.1.6 |
We fixed our extension by replacing the unzip module with adm-zip. |
@ArthurMa1978 if I remember correctly this module reached into node internals, so when we updated Electron (and node), it broke as the internals of node changed. It's really just unfortunately that this |
Extensions in VS Code are running in a node.js process. When we update to version 8.x of node.js, the node module "natives" is no longer supported by node.js. It actually never was officially supported but with node.js 8.x using this module can result in a crash that brings down the entire extension host.
As such, VS Code will prevent loading this module.
If you see an extension failing due to this, please reach out to the extension author and ask to update the dependencies so that the
"natives"
module is no longer required. You can find the contact details of an extension in the right sidebar of the marketplace:The text was updated successfully, but these errors were encountered: