-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Buffer() deprecation warning when installing a vsix through the command line #67534
Comments
This is coming as deprecation from our Electron update. If its unclear where this deprecation is coming from, I can help to print a stack from the place where it happens (this requires Electron 4 though from our exploration builds). |
The stack trace would be helpful to know. |
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. |
This is coming from |
@sandy081 I suggest you check if there is a newer version of yauzl lib that has this fixed. It should get fixed if a popular node lib wants to support node 10 |
@bpasero I do not see this warning when running from sources? How can I repro this on dev? |
@sandy081 it should show up, I saw it in devtools at least, but never from the comand line. |
I can confirm that this is still happening for me when using code.cmd on Windows to install latest versions of following extensions: ms-azure-devops.azure-pipelines, ms-vscode.powershell, ms-mssql.mssql, ms-vsts.team, ms-vscode.csharp, ms-vscode.azure-account, peterjausovec.vscode-docker, davidanson.vscode-markdownlint, eamodio.gitlens, qezhu.gitlink, yzhang.markdown-all-in-one.
In case this is needed, here's my environment info: nodejs 8.9.3 |
I too can confirm the existence of the issue |
When I install extensions on the command line in Fedora 30:
|
On WIndows 10: code --version
1.34.0
a622c65b2c713c890fcf4fbf07cf34049d5fe758
x64 'EditorConfig.EditorConfig','hashhar.gitattributes','jirkafajfr.vscode-kitchen','mauve.terraform','ms-python.python','ms-vscode.cpptools','ms-vscode.csharp','Pendrica.chef','vscoss.vscode-ansible','waderyan.gitblame','wholroyd.jinja' |
% { code --install-extension $_ }
Installing extensions...
Installing extension 'editorconfig.editorconfig' v0.13.0...
(node:18360) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'editorconfig.editorconfig' v0.13.0 was successfully installed.
Installing extensions...
Installing extension 'hashhar.gitattributes' v0.4.1...
(node:1664) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'hashhar.gitattributes' v0.4.1 was successfully installed.
Installing extensions...
Installing extension 'jirkafajfr.vscode-kitchen' v0.5.0...
(node:7060) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'jirkafajfr.vscode-kitchen' v0.5.0 was successfully installed.
Installing extensions...
Installing extension 'mauve.terraform' v1.3.11...
(node:9464) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'mauve.terraform' v1.3.11 was successfully installed.
Installing extensions...
Installing extension 'ms-python.python' v2019.4.12954...
(node:11280) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'ms-python.python' v2019.4.12954 was successfully installed.
Installing extensions...
Installing extension 'ms-vscode.cpptools' v0.23.1...
(node:10328) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'ms-vscode.cpptools' v0.23.1 was successfully installed.
Installing extensions...
Installing extension 'ms-vscode.csharp' v1.19.1...
(node:16184) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'ms-vscode.csharp' v1.19.1 was successfully installed.
Installing extensions...
Installing extension 'pendrica.chef' v0.7.1...
(node:6276) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'pendrica.chef' v0.7.1 was successfully installed.
Installing extensions...
Installing extension 'vscoss.vscode-ansible' v0.5.2...
(node:7520) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'vscoss.vscode-ansible' v0.5.2 was successfully installed.
Installing extensions...
Installing extension 'waderyan.gitblame' v2.7.0...
(node:3320) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'waderyan.gitblame' v2.7.0 was successfully installed.
Installing extensions...
Installing extension 'wholroyd.jinja' v0.0.8...
(node:168) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Extension 'wholroyd.jinja' v0.0.8 was successfully installed. |
FWIW I see this showing up inside Code in the developer tools now during normal use, if I installed from a VSIX (through the command palette). That is, the error is occurring during extension usage, not just during installation. In the packed version of my extension, there is no instance of "Buffer()" in the code, so I don't think it's my code directly triggering it. |
Issue Type: Bug
VS Code version: Code - Insiders 1.31.0-insider (2c987b2, 2019-01-30T06:17:39.118Z)
OS version: Darwin x64 18.0.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
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (29)
The text was updated successfully, but these errors were encountered: