-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Out of stack space while compiling #16853
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
Comments
Just got hit by this as well. FWIW, tsc v2.3.4 and v2.4.0 have no problem compiling the same project. Run tsc in this directory: https://github.com/Vincit/objection.js/tree/master/examples/express-ts |
@RyanCavanaugh is there anything else I can provide to help debug? |
@mceachen I had a similar issue which went away after installing the v2.5 nightly (typescript@next) - maybe give that a try? |
|
I've found a workaround: #17097 (comment) |
This no longer repros with |
When I run this piece of nonsense code, the compiler crashes.
I know this code is completely invalid but maybe this can somehow stabilize the compiler.
TypeScript Version: 2.4.1 (No compiler flags used)
Code
Expected behavior:
Compiler error(s), no stack overflow
Didn't test if in 'watch mode' this stops the watching.
Actual behavior:
Script failed with error: 'JsErrorScriptException (0x30001)'.
Out of stack space
Error: Out of stack space
at runWithCancellationToken (Unknown script code:55776:17)
at getSemanticDiagnosticsForFileNoCache (Unknown script code:55783:13)
at getAndCacheDiagnostics (Unknown script code:55989:13)
at getSemanticDiagnosticsForFile (Unknown script code:55780:13)
at Anonymous function (Unknown script code:55737:17)
at flatMap (Unknown script code:527:17)
at getDiagnosticsHelper (Unknown script code:55733:13)
at getSemanticDiagnostics (Unknown script code:55744:13)
at compileProgram (Unknown script code:58304:21)
at compile (Unknown script code:58261:9)
The text was updated successfully, but these errors were encountered: