Title: Compiler hang when importing big JS file with --allowJs · Issue #17033 · microsoft/TypeScript · GitHub
Open Graph Title: Compiler hang when importing big JS file with --allowJs · Issue #17033 · microsoft/TypeScript
X Title: Compiler hang when importing big JS file with --allowJs · Issue #17033 · microsoft/TypeScript
Description: TypeScript Version: 2.4.1 Repro project When importing a big JS file (a working parser) (245 Kbytes commonjs format) (with --allowJs enabled) the compiler hangs forever. Minimal repro project provided: tsc-hang-00 Expected behavior: Comp...
Open Graph Description: TypeScript Version: 2.4.1 Repro project When importing a big JS file (a working parser) (245 Kbytes commonjs format) (with --allowJs enabled) the compiler hangs forever. Minimal repro project provi...
X Description: TypeScript Version: 2.4.1 Repro project When importing a big JS file (a working parser) (245 Kbytes commonjs format) (with --allowJs enabled) the compiler hangs forever. Minimal repro project provi...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/17033
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compiler hang when importing big JS file with --allowJs","articleBody":"**TypeScript Version:** 2.4.1\r\n\r\n**Repro project**\r\nWhen importing a big JS file (a working parser) (245 Kbytes commonjs format) (with `--allowJs` enabled) the compiler hangs forever. Minimal repro project provided: [tsc-hang-00](https://github.com/pjmolina/tsc-hang-00)\r\n\r\n**Expected behavior:**\r\nCompilations ends with or without errors.\r\n\r\n**Actual behavior:**\r\nCompilations hangs forever and keeps consuming CPU.\r\n\r\n**Tests conditions**\r\n- Windows 10, NodeJS 8.0, TS 2.4.1\r\n- Travis: Linux Container, NodeJS 8.0, TS 2.4.1\r\n","author":{"url":"https://github.com/pjmolina","@type":"Person","name":"pjmolina"},"datePublished":"2017-07-08T16:30:30Z","url":"https://github.com/microsoft/TypeScript/issues/17033"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:26ceaa36-3374-7435-790f-08e705a7ac68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCD6:3C21B:1DEEBFD:2644594:6B015198 |
| html-safe-nonce | 90fb4c268938cc5c2d2c1321df634300ac0fab19971d09b420e965bb3285b895 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Q2OjNDMjFCOjFERUVCRkQ6MjY0NDU5NDo2QjAxNTE5OCIsInZpc2l0b3JfaWQiOiI3MTg1NjgxNTcxNjQ1NTc1NTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8b5ca267003e8d08b57ae2d6eb017b360a5ca1231e8afd8967c1e20067be63a8 |
| hovercard-subject-tag | issue:241464083 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/17033/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c17f0e87936002f539aa7fa74b0b4497c4c6801912e9dda0071edb6ade96124/microsoft/TypeScript/issues/17033 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c17f0e87936002f539aa7fa74b0b4497c4c6801912e9dda0071edb6ade96124/microsoft/TypeScript/issues/17033 |
| og:image:alt | TypeScript Version: 2.4.1 Repro project When importing a big JS file (a working parser) (245 Kbytes commonjs format) (with --allowJs enabled) the compiler hangs forever. Minimal repro project provi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pjmolina |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width