-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]tsc does not finish #26314
Comments
I gotta admit non-terminating compilation is the toughest issue to debug in TypeScript, as it doesn't leave you with a stack trace... type recursion is still pretty much 'here be dragons' territory. :) To debug, you may wanna first comment bits to see which call is actually triggering the non-terminating recursion, then figure out which recursion termination condition is not going as expected (what's the type it's getting in you expected to terminate execution yet didn't?). Trying to unit-test with recursive types and random issues like this gets even worse. :) Edit: すみません、英語が下手だと見落としてしまいました。 |
Related to, or maybe even a duplicate of #26155? I've found the recursive Reverse and Concat/Zip definitions to be extremely prone to stalling the language server. |
tsserverのクラッシュは何度も発生しました Tsserver crash occurred many times |
@kgtkr: Yeah, #26155 is mostly just another bug that occurs with recursive types. Trying your code at TS Playground (version Maybe the recursion is failing because |
See comments in #25942 - we don't have any near-term ideas for detecting non-terminating type computations nor good ideas on how to issue useful diagnostics for them. |
This quickly errors now. halting problem: solved |
TypeScript Version: 3.0.1/3.1.0-dev.20180808
Search Terms:
Code
Expected behavior:
tsc finish
Actual behavior:
tsc does not finish
Playground Link:
Related Issues:
#24897
The text was updated successfully, but these errors were encountered: