-
Notifications
You must be signed in to change notification settings - Fork 253
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
DeprecationWarning: Buffer() is deprecated due to security and usability issues #3331
Comments
Thanks for reporting this issue. We'll dig in to see what we find. |
@IlyaBiryukov who would be the best person for this? |
Any update on this? It would at least be nice to not have the terminal popping up every time because of this error 😕️ |
I'm also getting this, its been happening for a long time now.
Looks its liveshare using |
I get the same problem when running with a Microsoft agent in Azure DevOps. Error Message: |
I'm also getting the same issue when compiling a VSCode extension. Installing extensions... |
I'm also looking for the solution vscode-htmlhing LS: we have a connection |
Hi guys, any update about this? I have Node v14.17.3 (macOS Big Sur) and I'm trying to follow this guide https://code.visualstudio.com/api/get-started/your-first-extension but I get this error:
|
For more guidance on trying to figure out why you are getting that Buffer deprecation warning, see https://stackoverflow.com/questions/63673860/vscode-extension-deprecation-warning-buffer-how-to-diagnose/68413237?r=SearchResults&s=1|86.3623#68413237 |
I researched this problem and found that this error comes from
This I unzipped this
The problem is with The error comes from here And there was another pull request to solve the problem, but it was not merged. I tried to use asar to unpack, fix it, and then repack, but it failed. Any suggestions? |
@alyssajotice @fubaduba can you update us on this issue? it should be just a case of Live Share upgrading the dependencies it uses, any reason why its still not being looked at? I would imagine the cost to fixing this is quite low @lsby thats interesting last time i looked it was coming from here, see above. Either way, it looks like live share is using a lot of outdated dependencies which could pose a security risk |
We have this scheduled for work now and will be updating our dependencies in the new few weeks. Thanks you for your patience. |
Hi everyone, I've been looking into this issue. Live Share did have some instances where it used the incorrect buffer initialization. To confirm that I fixed the problem, I am checking to see if the warning message stopped appearing. Unfortunately, when I run VS Code with the flag |
I just tested out the new marketplace version 1.0.5090. To test out where the deprecation warnings are coming from, you can add the line Console:
As you can see, none of these mention Live Share and all are coming from the vscode-proxy-agent. Therefore, I think the issue is fixed. Please reopen and send a trace if you confirm that on Live Share version 1.0.5090 and VS Code version 1.62.2 the deprecation warning is coming from Live Share. |
Is this one still with latest VS code extensions ? 2023-02-08 09:35:38.099 [error] [Extension Host] (node:4640) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. |
Moved from microsoft/vscode#93177
From @AdamFeher2400
I found the following error on console of Developer Tools in Visual Studio Code.
(node:1412) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
From @zix66
Hi there!I did a little investigation : disabling & re-enabling each one from my extensions.So problem (funny!) with Microsoft Live Share. With best wishes, Igor Umansky
The text was updated successfully, but these errors were encountered: