microsoft / microsoft/TypeScript
ERROR: Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3, !entry:false
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.3k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 132
Mô tả
🔎 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:
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng việc xem xét lỗi incremental-scenario đã được báo cáo và các pull request được liên kết 54401, 54504 và 57641. Nếu có thể, hãy tái hiện lỗi không khớp ScriptKind xảy ra không thường xuyên, sau đó xác định liệu các thay đổi đó có giải quyết được lỗi hay không và ghi lại nguyên nhân hoặc bản sửa lỗi đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- compilers
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100