microsoft / microsoft/TypeScript

ERROR: Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3, !entry:false

オープン
#62,293 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Needs More Info
主要言語
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
⏯ 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:

  1. https://github.com/microsoft/TypeScript/pull/54401
  2. https://github.com/microsoft/TypeScript/pull/54504
  3. 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:

  1. https://github.com/microsoft/TypeScript/pull/54401
  2. https://github.com/microsoft/TypeScript/pull/54504
  3. https://github.com/microsoft/TypeScript/pull/57641

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、報告された incremental-scenario の失敗と、関連付けられた pull request 54401、54504、57641 を確認します。可能であれば断続的に発生する ScriptKind の不一致を再現し、その後、それらの変更で問題が解決されるかどうかを判断し、原因または検証済みの修正を記録します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
compilers
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。