What the extension does is instantiating a TelemetryReporter.
2024-03-21 18:14:45.244 [error] TypeError: Cannot read properties of undefined (reading 'getCrypto')
at random32 (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20778:55)
at newId (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20840:18)
at __webpack_require__.d.STR_CHANNELS (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20581:78)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.createElmNodeData (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20371:88)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.createDynamicConfig (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20086:79)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.DiagnosticLogger (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:19582:76)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d._DYN_ADD_NOTIFICATION_LIS1 (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:19063:70)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.utcNow (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:20720:67)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.__assignFn (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:24152:71)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.TelemetryInitializerPlugin (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:28664:68)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.DEFAULT_BREEZE_ENDPOINT (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:35602:97)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at __webpack_require__.d.AjaxHelperParseDependencyPath (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:35514:63)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at Object.<anonymous> (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:35358:38)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at Object.<anonymous> (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:14607:36)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at Object.create.k2 (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:14381:31)
at __webpack_require__ (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44393:42)
at c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44517:21
at c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44820:3
at Object.<anonymous> (c:\Users\martinae\.vscode-insiders\extensions\ms-vscode-remote.remote-wsl-0.86.0\dist\node\extension.js:44825:12)
at o._compile (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:4:1271)
at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at c._load (node:electron/js2c/node_init:2:13672)
at h._load (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:175:5602)
at i._load (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:172:29719)
at t._load (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:137:35279)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Function.i [as __$__nodeRequire] (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\loader.js:5:98)
at m.xb (c:\Users\martinae\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:172:30898)
at async Promise.all (index 0)
wsl uses
@vscode/extension-telemetry
and webpack to bundle.I tried updating to 0.9.5, but I got a runtime error
Cannot read properties of undefined (reading 'getCrypto')
.I'm now back at 0.8.5, which does not have this issue
Underlying issue: https://github.com/microsoft/ApplicationInsights-JS/issues/2307
https://github.com/microsoft/vscode-extension-telemetry/pull/204 wanted to tackle that, but it still seems to be present.
What the extension does is instantiating a
TelemetryReporter
.