microsoft / microsoft/TypeScript
ERROR: Debug Failure. False expression: Script kind should match provided ScriptKind:8 and sourceFile.scriptKind: 3, !entry:false
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
🔎 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:
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando il malfunzionamento segnalato di incremental-scenario e le pull request collegate 54401, 54504 e 57641. Riproduci, se possibile, la discrepanza intermittente di ScriptKind, quindi determina se tali modifiche la risolvono e documenta la causa o una correzione verificata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100