René's URL Explorer Experiment


Title: Debugging long check times with TypeScript? · Issue #24435 · microsoft/TypeScript · GitHub

Open Graph Title: Debugging long check times with TypeScript? · Issue #24435 · microsoft/TypeScript

X Title: Debugging long check times with TypeScript? · Issue #24435 · microsoft/TypeScript

Description: TypeScript Version: 2.9.0-dev.20180516 I have a toy project I've been working on and, in general, it takes about 50-60s to type check, and, sometimes, I get out of memory exceptions. > node --max-old-space-size=8192 ./node_modules/typesc...

Open Graph Description: TypeScript Version: 2.9.0-dev.20180516 I have a toy project I've been working on and, in general, it takes about 50-60s to type check, and, sometimes, I get out of memory exceptions. > node --max-o...

X Description: TypeScript Version: 2.9.0-dev.20180516 I have a toy project I've been working on and, in general, it takes about 50-60s to type check, and, sometimes, I get out of memory exceptions. > node ...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/24435

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debugging long check times with TypeScript?","articleBody":"TypeScript Version: 2.9.0-dev.20180516\r\n\r\nI have a toy project I've been working on and, in general, it takes about 50-60s to type check, and, sometimes, I get out of memory exceptions.\r\n\r\n```\r\n> node --max-old-space-size=8192 ./node_modules/typescript/lib/tsc.js --noEmit --noErrorTruncation --diagnostics\r\n\r\nFiles:            166\r\nLines:          57676\r\nNodes:         312303\r\nIdentifiers:   108968\r\nSymbols:       158671\r\nTypes:          75995\r\nMemory used: 1354006K\r\nI/O read:       0.04s\r\nI/O write:      0.00s\r\nParse time:     2.18s\r\nBind time:      0.90s\r\nCheck time:    60.80s\r\nEmit time:      0.00s\r\nTotal time:    63.89s\r\n```\r\n\r\nI'm unsure if such wait times are normal or if it's just me.\r\n\r\nI'm finally writing this question because I added one method to a class and it caused `tsc` to not terminate. I've waited over twenty minutes and it's still not ending.\r\n\r\nIf I comment out the method I just added, I can get `tsc` to terminate without errors.\r\n\r\n-----\r\n\r\nThe code in question is [here](https://github.com/AnyhowStep/typed-orm/blob/master/src/main/declaration-v2/table/table.ts#L230)\r\n\r\n(Ignore that the folder is called `declaration-v2`, I never got around to renaming it)\r\n\r\n-----\r\n\r\nIs there a way to get `tsc` to output what phase of the check it's at and what files it's reading *as it checks*, etc.?\r\n\r\nSomething like,\r\n\r\n```\r\nReading file X.ts\r\nChecking class A\r\nChecking class B\r\nReading file Y.ts\r\nChecking class C\r\n```\r\n\r\n`--listFiles` isn't particularly helpful for this case because it outputs that at the end, and `tsc` won't even terminate at the moment.\r\n\r\nOr are there other guidelines I can use to debug long check times?\r\n\r\nI understand the type system is very complex but I feel my productivity has been taking a huge hit when I can barely get IntelliSense and type checking to work with VS code, and Atom with `atom-typescript` just crashes, (I assume it's related to the long check times) and have to resort to using the terminal every once in a while to sanity check my code.\r\n\r\n-----\r\n\r\nI understand that this issues page is not for questions like these but I've found the answers on StackOverflow unsatisfactory, and sitting here waiting for `tsc` to terminate is kind of frustrating.\r\n\r\nI'm unsure if I can even reduce this to a minimal example because the project is huge. But at least I've found the method to comment/uncomment to reproduce the issue.\r\n\r\n-----\r\n\r\n[EDIT]\r\n\r\nThis is also the first time I've encountered this problem. I'd actually be relieved if I could get an out of memory exception right now. Memory usage is actually surprisingly low. But it's just not terminating...\r\n\r\nMaybe an infinite loop?","author":{"url":"https://github.com/AnyhowStep","@type":"Person","name":"AnyhowStep"},"datePublished":"2018-05-26T23:25:49Z","url":"https://github.com/microsoft/TypeScript/issues/24435"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:66d038ab-75c4-38dc-dd5e-88de5c42e885
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAC28:65478:C7230A:10A1255:6B00F8BC
html-safe-noncecf36b922986faa534cd54360ad79463123a67ac800bc6669bd837a5c5088482c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzI4OjY1NDc4OkM3MjMwQToxMEExMjU1OjZCMDBGOEJDIiwidmlzaXRvcl9pZCI6IjIxNjcxMTYxMzg1Nzg3NzAxMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbefbe7ccc08d5bda37ecd6ec76428d18de25a34f6a719b0dfed2318fd8d1216f
hovercard-subject-tagissue:326774429
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/24435/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09565e04854aa7fc712dccb244c15cdc3a0c1f37caf0ff3044fd9be6dc1f9d44/microsoft/TypeScript/issues/24435
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09565e04854aa7fc712dccb244c15cdc3a0c1f37caf0ff3044fd9be6dc1f9d44/microsoft/TypeScript/issues/24435
og:image:altTypeScript Version: 2.9.0-dev.20180516 I have a toy project I've been working on and, in general, it takes about 50-60s to type check, and, sometimes, I get out of memory exceptions. > node --max-o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAnyhowStep
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/24435#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F24435
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F24435
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/24435
Reloadhttps://github.com/microsoft/TypeScript/issues/24435
Reloadhttps://github.com/microsoft/TypeScript/issues/24435
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/24435
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/24435
Debugging long check times with TypeScript?https://github.com/microsoft/TypeScript/issues/24435#top
https://github.com/orta
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on May 26, 2018https://github.com/microsoft/TypeScript/issues/24435#issue-326774429
herehttps://github.com/AnyhowStep/typed-orm/blob/master/src/main/declaration-v2/table/table.ts#L230
Nexthttps://github.com/microsoft/TypeScript/issues/24435?timeline_page=1
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on May 27, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-392300930
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on May 29, 2018https://github.com/microsoft/TypeScript/issues/24435#event-1650177732
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 29, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-392649529
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on May 29, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-392804157
repohttps://github.com/AnyhowStep/typed-orm
thishttps://github.com/AnyhowStep/typed-orm/commit/7ba70257c7edacbca2b3cd9b105f706b4b4a27d4#diff-0afcdd763935488058ec26e635a73887R228
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jun 5, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-394620609
linked repositoryhttps://github.com/AnyhowStep/typed-orm/blob/master/src/main/declaration-v2/select-builder.ts
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jun 5, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-394629986
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jun 5, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-394640915
tuple.tshttps://github.com/AnyhowStep/typed-orm/blob/master/src/main/declaration-v2/tuple.ts
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jun 5, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-394643897
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jun 5, 2018https://github.com/microsoft/TypeScript/issues/24435#issuecomment-394650526
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
thishttps://github.com/AnyhowStep/typed-orm/blob/master/src/main/declaration-v2/math.ts
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Jun 13, 2018https://github.com/microsoft/TypeScript/issues/24435#event-1679764437
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Orta Therox (orta)https://github.com/orta
on Aug 23, 2019https://github.com/microsoft/TypeScript/issues/24435#event-2580729648
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.7.0https://github.com/microsoft/TypeScript/milestone/98
on Aug 23, 2019https://github.com/microsoft/TypeScript/issues/24435#event-2580729826
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.7.0https://github.com/microsoft/TypeScript/milestone/98
TypeScript 3.7.1https://github.com/microsoft/TypeScript/milestone/105
on Oct 14, 2019https://github.com/microsoft/TypeScript/issues/24435#event-2711297815
Orta Therox (orta)https://github.com/orta
TypeScript 3.8.1https://github.com/microsoft/TypeScript/milestone/107
TypeScript 3.9.0https://github.com/microsoft/TypeScript/milestone/109
on Jan 31, 2020https://github.com/microsoft/TypeScript/issues/24435#event-2998476298
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 3.9.0https://github.com/microsoft/TypeScript/milestone/109
TypeScript 3.9.1https://github.com/microsoft/TypeScript/milestone/116
on Apr 7, 2020https://github.com/microsoft/TypeScript/issues/24435#event-3211220143
https://github.com/orta
Orta Therox (orta)https://github.com/orta
on Apr 14, 2020https://github.com/microsoft/TypeScript/issues/24435#issuecomment-613650211
#37785https://github.com/microsoft/TypeScript/pull/37785
Orta Therox (orta)https://github.com/orta
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Apr 14, 2020https://github.com/microsoft/TypeScript/issues/24435#event-3232682586
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Apr 20, 2020https://github.com/microsoft/TypeScript/issues/24435#issuecomment-616584531
Orta Therox (orta)https://github.com/orta
TypeScript 3.9.1https://github.com/microsoft/TypeScript/milestone/116
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Apr 23, 2020https://github.com/microsoft/TypeScript/issues/24435#event-3264832992
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
on Jul 23, 2020https://github.com/microsoft/TypeScript/issues/24435#event-3581862344
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Oct 9, 2020https://github.com/microsoft/TypeScript/issues/24435#issuecomment-706258399
#40063https://github.com/microsoft/TypeScript/pull/40063
https://github.com/orta
Orta Therox (orta)https://github.com/orta
on Oct 12, 2020https://github.com/microsoft/TypeScript/issues/24435#issuecomment-707227310
https://github.com/klesun
Artur Klesun (klesun)https://github.com/klesun
on Mar 3, 2021https://github.com/microsoft/TypeScript/issues/24435#issuecomment-789750295
thishttps://github.com/microsoft/TypeScript-wiki/blob/master/Performance-Tracing.md
Andrew Casey (@amcasey)https://github.com/amcasey
https://github.com/orta
Orta Therox (orta)https://github.com/orta
on Mar 12, 2021https://github.com/microsoft/TypeScript/issues/24435#issuecomment-797507677
Orta Therox (orta)https://github.com/orta
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 12, 2021https://github.com/microsoft/TypeScript/issues/24435#event-4450846603
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/24435
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/24435
Orta Therox (orta)https://github.com/orta
DiscussionIssues which may not have code impacthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.