microsoft / microsoft/TypeScript

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

Đang mở
#62,293 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Needs More Info
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
⏯ 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.