DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Opened this issue ยท 4 comments
Environment
- Extension version:
v0.5.2
- OS Type:
Linux
- VSCode version:
Version: 1.49.2
Commit: e5e9e69aed6e1984f7499b7af85b3d05f9a6883a
Date: 2020-09-24T16:26:09.944Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
Summary
When VSCode starts error message in the Output panel appears:
[Error - 10:51:48 AM] (node:7048) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Reproduce steps
Start VSCode with installed extension vscoss.vscode-ansible
.
Expected Results
No errors on start.
Actual Results
Error message in the Output panel appears, see Summary
I second this issue under VSCode 1.50.1
Version: 1.50.1
Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a
Date: 2020-10-13T14:53:05.704Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0
This is really annoying, it becomes the first thing I see when open vscode.
Also driving me crazy. Looks like its coming from here:
vscode-ansible/src/azureHelpers.ts
Line 36 in 2610005
Changing the Buffer call to Buffer.alloc() / Buffer.allocUnsafe() / Buffer.from() might work to squash the error.