Closed
Description
Issue Type: Bug
❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️
TypeScript Version: 3.9.6
Steps to reproduce crash
- My system crashed
- When i opened the VSCode, I saw this error
- Anytime I close and start VSCode, I receive this error.
=> The TypeScript language service died 5 times right after it got started. The service will not be restarted.
TS Server Log
Server logging disabled. To help us fix crashes like this, please enable logging by setting:
"typescript.tsserver.log": "verbose"
After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
TypeError: path.replace is not a function
at normalizeSlashes (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:6303:21)
at combinePaths (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:6364:28)
at getPathComponents (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:6278:16)
at getNormalizedPathComponents (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:6404:37)
at Object.getNormalizedAbsolutePath (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:6408:42)
at getFileNamesFromConfigSpecs (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29002:31)
at matchFileNames (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:28964:16)
at getFileNames (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:28513:26)
at parseJsonConfigFileContentWorker (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:28445:18)
at Object.parseJsonSourceFileConfigFileContent (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:28403:16)
at ProjectService.loadConfiguredProject (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:145747:44)
at ProjectService.createAndLoadConfiguredProject (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:145721:22)
at ProjectService.createLoadAndUpdateConfiguredProject (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:145726:36)
at ProjectService.assignProjectToOpenedScriptInfo (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146608:44)
at c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146927:97
at Object.flatMap (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:465:25)
at ProjectService.applyChangesInOpenFiles (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146927:41)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:147790:46)
at c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149553:88
at IOSession.Session.executeWithRequestId (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149544:28)
at IOSession.Session.executeCommand (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149553:33)
at IOSession.Session.onMessage (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:149577:35)
at Interface.<anonymous> (c:\Users\Darkl1ght\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:150893:27)
at Interface.emit (events.js:203:13)
at Interface._onLine (readline.js:316:10)
at Interface._normalWrite (readline.js:461:12)
at Socket.ondata (readline.js:172:10)
at Socket.emit (events.js:203:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
VS Code version: Code 1.47.3 (91899dcef7b8110878ea59626991a18c8a6a1b3e, 2020-07-23T13:12:49.994Z)
OS version: Windows_NT x64 10.0.19041
System Info
Item | Value |
---|---|
CPUs | Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz (4 x 2397) |
GPU Status | 2d_canvas: unavailable_software flash_3d: disabled_software flash_stage3d: disabled_software flash_stage3d_baseline: disabled_software gpu_compositing: disabled_software multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: disabled_off rasterization: disabled_software skia_renderer: disabled_off_ok video_decode: disabled_software viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: unavailable_software webgl2: unavailable_software |
Load (avg) | undefined |
Memory (System) | 16.00GB (11.94GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Extensions (3)
Extension | Author (truncated) | Version |
---|---|---|
gitlens | eam | 10.2.2 |
prettier-vscode | esb | 5.1.3 |
vscode-scss-formatter | sib | 2.0.1 |