TypeScript TS服务器致命错误:无法读取未定义对象的'forEach'属性,

smdncfj3  于 7个月前  发布在  TypeScript
关注(0)|答案(2)|浏览(67)

Issue Type: Bug

🗣️ Please provide the steps to reproduce the crash.

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: diagnostics

VS Code version: Code 1.55.2 (3c4e3df9e89829dce27b7b5c24508306b151f30d, 2021-04-13T09:36:32.643Z)
OS version: Darwin x64 20.4.0
System Info
| Item | Value |
| ------------ | ------------ |
| CPUs | Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz (12 x 3200) |
| GPU Status | 2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled |
| Load (avg) | 3, 9, 9 |
| Memory (System) | 64.00GB (18.46GB free) |
| Process Argv | --crash-reporter-id 66adc50f-0bab-4143-9b0b-8234cdd95c7d |
| Screen Reader | no |
| VM | 0% |Extensions (100)
| Extension | Author (truncated) | Version |
| ------------ | ------------ | ------------ |
| better-comments | aar | 2.1.0 |
| vscode-sqlite | ale | 0.12.0 |
| aws-toolkit-vscode | ama | 1.24.0 |
| vscode-color | ans | 0.4.5 |
| vscode-zipfs | arc | 2.3.0 |
| swagger-viewer | Arj | 3.0.1 |
| cform | aws | 0.0.24 |
| vscode-database | baj | 2.2.3 |
| vscode-django | bat | 1.6.0 |
| color-info | bie | 0.6.0 |
| vscode-tailwindcss | bra | 0.5.10 |
| turbo-console-log | Cha | 2.1.6 |
| npm-intellisense | chr | 1.3.1 |
| path-intellisense | chr | 2.3.0 |
| gitignore | cod | 0.6.0 |
| bracket-pair-colorizer-2 | Coe | 0.2.0 |
| vscode-markdownlint | Dav | 0.40.4 |
| vscode-eslint | dba

k5hmc34c

k5hmc34c1#

(实验性重复检测)

感谢提交这个问题。请同时检查它是否已经被现有的一个问题涵盖,例如:

  • $x_{1e0f1}^{x}$

  • $x_{1e1f1}^{x}$

  • $x_{1e2f1}^{x}$

  • $x_{1e3f1}^{x}$

  • $x_{1e4f1}^{x}$

vvppvyoh

vvppvyoh2#

修复方法很简单,因为显然非空Assert是错误的:
TypeScript/src/server/editorServices.ts
第2272行 in 38da7c6
| | clearMap(configFileExistenceInfo.config.watchedDirectories!,closeFileWatcherOf); |
只是不确定如何复现这个问题。

相关问题