Title: tsserver crashes with large projects · Issue #7444 · microsoft/TypeScript · GitHub
Open Graph Title: tsserver crashes with large projects · Issue #7444 · microsoft/TypeScript
X Title: tsserver crashes with large projects · Issue #7444 · microsoft/TypeScript
Description: I am unsure if this is caused by TS eagerly loading all syntax trees or by the tsserver eagerly loading all symbols (which btw seems crazy to me) but I think the tsserver should check how large a project is (or how much memory is already...
Open Graph Description: I am unsure if this is caused by TS eagerly loading all syntax trees or by the tsserver eagerly loading all symbols (which btw seems crazy to me) but I think the tsserver should check how large a p...
X Description: I am unsure if this is caused by TS eagerly loading all syntax trees or by the tsserver eagerly loading all symbols (which btw seems crazy to me) but I think the tsserver should check how large a p...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7444
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsserver crashes with large projects","articleBody":"I am unsure if this is caused by TS eagerly loading [all syntax trees](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/program.ts#L751) or by the tsserver eagerly loading [all symbols](https://github.com/Microsoft/TypeScript/blob/master/src/server/editorServices.ts#L413) (which btw seems crazy to me) but I think the tsserver should check how large a project is (or how much memory is already [used](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/sys.ts#L23)) and fail gracefully. \n\nI have a JavaScript project with little code but a lots of dependencies like `node_modules` and `bower_components` as well as files that get generated into a `temp` folder (on server start). I am aware of the exclude-property and the [default](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L569) [excludes](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/commandLineParser.ts#L591), but the challenge is to provide guidance to the user to use them. I have no chance to ask tsserver how many files are included by a project because it crashes already with the first `open-file` request. \n\nA diagnostics message ala `too many files (foo/jsconfig.json, files: [...]),` would be much appreciated because otherwise we are going to duplicate a lot of logic on our (VS Code) end for such checks (and the server will still crashes). \n","author":{"url":"https://github.com/jrieken","@type":"Person","name":"jrieken"},"datePublished":"2016-03-09T16:25:41Z","url":"https://github.com/microsoft/TypeScript/issues/7444"}
| 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:7d5b0fb5-641d-aa57-f743-f1ccc8e50708 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A87E:2E7EBB:1EDE4CF:2703D94:6B015F5E |
| html-safe-nonce | 2c20f7dabf0f022612221eee8836529cf56cbc0b7d7cad1d3be0226634f1cfef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODdFOjJFN0VCQjoxRURFNENGOjI3MDNEOTQ6NkIwMTVGNUUiLCJ2aXNpdG9yX2lkIjoiNzgwMTg1NDQzMzM4MTQwODYwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 815ecf25ac0a2bf1f910718b5aa13278c439f89ea26ad8757a008b02c242325d |
| hovercard-subject-tag | issue:139625904 |
| 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/7444/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a9ee2f698e5f20dcf231ffde7d7bf89db60e67fb37b4e3c9681ae1403ff51dd1/microsoft/TypeScript/issues/7444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a9ee2f698e5f20dcf231ffde7d7bf89db60e67fb37b4e3c9681ae1403ff51dd1/microsoft/TypeScript/issues/7444 |
| og:image:alt | I am unsure if this is caused by TS eagerly loading all syntax trees or by the tsserver eagerly loading all symbols (which btw seems crazy to me) but I think the tsserver should check how large a p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jrieken |
| 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