-
Notifications
You must be signed in to change notification settings - Fork 677
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
Receive deprecated api usage warning for security or usability about Buffer() #7851
Comments
warning appears to show up in the Debug console when you F5 the C# extension. From some combination of setting env vars
Looks like an issue in a dependency of servicehub-framework - kawanet/msgpack-lite#98 and nothing we can solve in the extension at the moment. |
Environment data
dotnet --info
output:$ dotnet --info
.NET SDK:
Version: 9.0.100
Commit: 59db016f11
Workload version: 9.0.100-manifests.c6f19616
MSBuild version: 17.12.7+5b8665660
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100\
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: x64
Commit: 9d5a6a9aa4
.NET SDKs installed:
8.0.404 [C:\Program Files\dotnet\sdk]
9.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
VS Code version:
1.95.3
C# Extension version:
1.13.9
Steps to reproduce
VSCode run debug extension, with C# Dev Kit, there's warning message in debug console:
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (node:buffer:189:11)
at new Buffer (node:buffer:267:3)
at s (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:891803)
at 52847 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:891774)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 48204 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:894013)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 10816 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:897497)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 50897 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:906200)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 73357 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:896258)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 47870 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:897033)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 15637 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:889919)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 95539 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:155936)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 67208 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:143952)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 4084 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:178818)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 24984 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:1191902)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 25453 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:1540270)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 78734 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:1140434)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 87947 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:1166752)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at 87927 (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:1208465)
at n (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2415616)
at c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2416056
at Object. (c:\Users\pegas.vscode\extensions\ms-dotnettools.csharp-2.55.29-win32-x64\dist\extension.js:2:2416083)
at Module._compile (node:internal/modules/cjs/loader:1484:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1295:32)
at Module._load (node:internal/modules/cjs/loader:1111:12)
at c._load (node:electron/js2c/node_init:2:16955)
at e._load (file:///c:/Users/pegas/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:10900)
at t._load (file:///c:/Users/pegas/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:22433)
at i.load (file:///c:/Users/pegas/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:4651)
at Module.require (node:internal/modules/cjs/loader:1318:19)
at require (node:internal/modules/helpers:179:18)
at z.xb (file:///c:/Users/pegas/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:23753)
at async Promise.all (index 0)
The text was updated successfully, but these errors were encountered: