microsoft / microsoft/TypeScript
ERROR: Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3, !entry:false
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 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
```ts
// 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查报告的 incremental-scenario 失败问题以及关联的拉取请求 54401、54504 和 57641。如果可能,重现间歇性的 ScriptKind 不匹配,然后确定这些更改是否解决了该问题,并记录原因或经验证的修复方案。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- compilers
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100