TS Server fatal error: Debug Failure. False expression.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript, vscode
- 領域
- devtools
調査の方向性
報告されたエントリポイントは、tsserver.js のスタックトレースにある ProjectService.applyChangesInOpenFiles です。詳細な TS Server ロギングを有効にし、npm unlink と npm install ../common を使った 3 ウィンドウのワークフローを再現して、syntax-server リクエストの周辺にある生成されたログを調査します。ワークフローで fatal Debug Failure が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Issue Type: Bug
❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️
TypeScript Version: 4.3.0-dev.20210302
Steps to reproduce crash
- Three (3) VSCode windows open, each using TypeScript
- Working through 100+ errors, in one window
- Performed
npm unlinkthennpm install ../commonjust prior to this bug report showing. - Opened a file just after step 3.
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: syntax
Error: Debug Failure. False expression.
at ProjectService.applyChangesInOpenFiles (/Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:159733:34)
at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:160803:46)
at /Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:162687:88
at IOSession.Session.executeWithRequestId (/Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:162678:28)
at IOSession.Session.executeCommand (/Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:162687:33)
at IOSession.Session.onMessage (/Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:162713:35)
at Interface.<anonymous> (/Users/scottpage/.vscode-insiders/extensions/ms-vscode.vscode-typescript-next-4.3.20210302/node_modules/typescript/lib/tsserver.js:165398:31)
at Interface.emit (events.js:315:20)
at Interface._onLine (readline.js:329:10)
at Interface._normalWrite (readline.js:474:12)
at Socket.ondata (readline.js:186:10)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:186:23)
VS Code version: Code - Insiders 1.54.0-insider (Universal) (42e27fe5cdc58539dad9867970326a297eb8cacf, 2021-03-02T19:09:42.206Z)
OS version: Darwin x64 20.3.0
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled webgl: enabled webgl2: enabled |
| Load (avg) | 3, 3, 2 |
| Memory (System) | 32.00GB (0.47GB free) |
| Process Argv | --crash-reporter-id a2781316-e190-41d1-8f67-f530cb44e09e |
| Screen Reader | no |
| VM | 0% |
Extensions (28)
| Extension | Author (truncated) | Version |
|---|---|---|
| vscode-toggle-quotes | Bri | 0.3.4 |
| vscode-eslint | dba | 2.1.14 |
| gitlens-insiders | eam | 2021.3.204 |
| vscode-html-css | ecm | 1.10.2 |
| EditorConfig | Edi | 0.16.4 |
| auto-rename-tag | for | 0.1.6 |
| todo-tree | Gru | 0.0.199 |
| vue-snippets | hol | 1.0.4 |
| vue | jcb | 0.1.5 |
| dotenv | mik | 1.0.1 |
| vscode-docker | ms- | 1.10.0 |
| vscode-dotnet-runtime | ms- | 1.0.0 |
| mssql | ms- | 1.10.1 |
| remote-containers | ms- | 0.163.0 |
| remote-ssh | ms- | 0.64.0 |
| remote-ssh-edit | ms- | 0.64.0 |
| remote-wsl | ms- | 0.54.0 |
| vscode-remote-extensionpack | ms- | 0.20.0 |
| azure-account | ms- | 0.9.6 |
| vscode-typescript-next | ms- | 4.3.20210302 |
| debugger-for-chrome | msj | 4.12.12 |
| vetur | oct | 0.33.0 |
| swdc-vscode | sof | 2.5.2 |
| electron-tools | tms | 1.1.3795 |
| tmswebcore | tms | 1.2.4095 |
| omnipascal | Wos | 0.18.0 |
| markdown-all-in-one | yzh | 3.4.0 |
| html-css-class-completion | Zig | 1.20.0 |
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt617cf:30253240
pythonvspyt602:30263608
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvsdeb440:30224570
pythonvsded773:30223139
vstes627:30244334
pythonvspyt875:30259475
pythonvsnew554:30265444
pythontb:30258533
vsget980:30265949
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/TypeScript のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
microsoft/TypeScript#64322 · コメント 2 件 · リアクション 1 件 · 担当者 2 名 ·
-
Possible Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/TypeScript#64278 · コメント 1 件 · リアクション 1 件 ·
-
Docs
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
microsoft/TypeScript#64118 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
microsoft/TypeScript#64094 ·
-
Docs
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/TypeScript#63959 · コメント 5 件 ·
microsoft/TypeScript の issue をすべて見る
似ている issue
-
optimization optimization:agents-md-curator
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
githubnext/gh-aw-cao#13143 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
blinklabs-io/bursa#904 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · コメント 2 件 ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100