microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.07k stars 28.81k forks source link

TS Server fatal error: Debug Failure. False expression: /Users/allen/midway-project/node_modules/@midwayjs/core/dist/index.d.ts linked to nonexistent file /Users/allen/midway-project/node_modules/.pnpm/@midwayjs+core@3.4.12_@midwayjs+decorator@3.4.11/node_modules/@midwayjs/core/dist/index.d.ts #159260

Closed kisoua closed 2 years ago

kisoua commented 2 years ago

Type: Bug

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 4.8.1-rc

Steps to reproduce crash 1. 2. 3.

Global TS Server Plugins

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 Server: semantic

Error: Debug Failure. False expression: /Users/allen/midway-project/node_modules/@midwayjs/core/dist/index.d.ts linked to nonexistent file /Users/allen/midway-project/node_modules/.pnpm/@midwayjs+core@3.4.12_@midwayjs+decorator@3.4.11/node_modules/@midwayjs/core/dist/index.d.ts
    at realPath (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:43903:18)
    at tryResolve (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:43868:32)
    at /Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:43842:69
    at Object.forEach (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:192:30)
    at nodeModuleNameResolverWorker (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:43842:25)
    at nodeModuleNameResolver (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:43815:16)
    at Object.resolveModuleName (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:43542:30)
    at resolveModuleName (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:122861:36)
    at resolveNamesWithLocalCache (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:122947:38)
    at Object.resolveModuleNames (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:123025:20)
    at Project.resolveModuleNames (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:171775:45)
    at actualResolveModuleNamesWorker (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:118020:153)
    at resolveModuleNamesWorker (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:118323:26)
    at resolveModuleNamesReusingOldState (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:118501:19)
    at tryReuseStructureFromOldProgram (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:118727:35)
    at Object.createProgram (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:118089:29)
    at synchronizeHostData (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:167068:26)
    at Object.getProgram (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:167182:13)
    at Project.updateGraphWorker (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172349:53)
    at Project.updateGraph (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172277:42)
    at ConfiguredProject.updateGraph (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173439:63)
    at updateProjectIfDirty (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173928:45)
    at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176258:29)
    at /Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176593:97
    at Object.flatMap (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:525:25)
    at ProjectService.applyChangesInOpenFiles (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176593:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177966:46)
    at /Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180158:96
    at Session.executeWithRequestId (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180149:28)
    at Session.executeCommand (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180158:41)
    at Session.onMessage (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180186:35)
    at process.<anonymous> (/Applications/Visual - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:184352:31)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code - Insiders 1.71.0-insider (9529e11f6481ae53bba821b05e34549491b9415e, 2022-08-25T13:20:31.840Z) OS version: Darwin arm64 21.5.0 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|14, 6, 4| |Memory (System)|16.00GB (0.12GB free)| |Process Argv|--crash-reporter-id 23c74a5b-9218-489f-8bc7-959c5586650a| |Screen Reader|no| |VM|0%|
Extensions (31) Extension|Author (truncated)|Version ---|---|--- console-helper|AT-|2.5.1 doxdocgen|csc|1.4.0 vue-peek|dar|1.0.2 vscode-eslint|dba|2.2.6 gitlens|eam|12.1.2 EditorConfig|Edi|0.16.4 prettier-vscode|esb|9.8.0 file-icons|fil|1.0.29 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 code-runner|for|0.11.8 json2ts|Gre|0.0.6 vscode-env|Iro|0.1.0 better-cpp-syntax|jef|1.15.19 cmake-tools|ms-|1.11.26 cpptools|ms-|1.11.5 cpptools-extension-pack|ms-|1.2.0 vetur|oct|0.36.0 quicktype|qui|12.0.46 any-rule|rus|0.3.15 vue-helper|she|2.4.7 code-spell-checker|str|2.6.0 cmake|twx|0.0.17 errorlens|use|3.6.0 vscodeintellicode|Vis|1.2.23 vscode-conventional-commits|viv|1.24.2 windicss-intellisense|voo|0.21.6 vscode-icons|vsc|11.15.0 volar|Vue|0.40.1 change-case|wma|1.0.0 material-theme|zhu|3.15.2 (4 theme extensions excluded)
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30422396 pythontb:30258533 vsc_aa:30263845 pythonptprofiler:30281269 vshan820:30294714 pythondataviewer:30285072 vscod805cf:30301675 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30404738 wslgetstarted:30449409 cppdebug:30492333 pylanb8912:30522163 vsclangdf:30492506 c4g48928:30535728 dsvsc012cf:30540253 pylantcb52:30549187 ```
mjbvz commented 2 years ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

VSCodeTriageBot commented 2 years ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

VSCodeTriageBot commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!