microsoft / microsoft/TypeScript
ERROR: Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3, !entry:false
まだ誰も着手していません。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
🔎 Search Terms
Incremental scenarios
Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3,!entry:false
🕗 Version & Regression Information
- This changed between versions v4.9.5 and v5.2-beta.
- This changed in commit or PR https://github.com/microsoft/TypeScript/pull/54401 or https://github.com/microsoft/TypeScript/pull/54504.
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because the problem seems like a occasional problem.
⏯ Playground Link
No response
💻 Code
// Your code here
🙁 Actual behavior
In incremental scenarios, there are frequent (occasional) errors indicating a mismatch in file types, specifically the error: Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3,!entry:false. I would like to inquire about the cause of this issue and potential solutions, and also confirm whether the following commits can resolve the aforementioned error:
- https://github.com/microsoft/TypeScript/pull/54401
- https://github.com/microsoft/TypeScript/pull/54504
- https://github.com/microsoft/TypeScript/pull/57641
🙂 Expected behavior
We expect the incremental scenario file type to match and throw this error.
Additional information about the issue
I would like to inquire about the cause of this issue and potential solutions, and also confirm whether the following commits can resolve the aforementioned error:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、報告された incremental-scenario の失敗と、関連付けられた pull request 54401、54504、57641 を確認します。可能であれば断続的に発生する ScriptKind の不一致を再現し、その後、それらの変更で問題が解決されるかどうかを判断し、原因または検証済みの修正を記録します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100