GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — language-server: project reload loop and OOM with a deleted open TS file and solution-style external template (22.2.0) · Issue #71864 · angular/angular Open Labels area: language-serviceIssues related to Angular's VS Code language serviceIssues related to Angular's VS Code language service Milestone DescriptionIs this a bug report or a feature request?
SummaryAngular Language Service 22.2.0 entered a self-sustaining project-reload/diagnostics loop in a multi-root Nx workspace. A TypeScript file had been deleted on disk while its editor remained open, and an external Angular component template from a different worktree was also open. The server repeatedly failed to find the deleted file's configured project, reloaded/re-analyzed the template's library project roughly every 1–2 seconds, and eventually aborted with a JavaScript heap OOM near 4 GB. Closing the two editors associated with the deleted path (ordinary editor and Git diff), then running Angular: Restart Angular Language server, stopped the loop without reloading VS Code. The external template remained open and its language features worked afterwards. Please provide the steps to reproduce the issue [Bug Report only]Observed sequence in the affected workspace; not yet independently reproduced in a standalone minimal project:
There is no public minimal reproduction yet; the original workspace is private. The path names and layout below are anonymized. These steps describe the observed state and sequence, not a confirmed universal reproducer. Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]Expected: An editor whose file was removed from disk should not cause repeated teardown/recreation and full Angular analysis of another open template's configured project. The server should settle and continue providing template features. Actual: The same project-loading messages repeat about once per second, including repeated Recovery observed: Close only the saved editors for the deleted path, then restart the Angular language server. With the same workspace folders and external template still open, the log settled after about eight seconds. The replacement process remained alive for more than four minutes at approximately 1.4 GB RSS, with no further missing-file messages or crash. Template-to-component navigation was manually verified. This is current-session recovery, not evidence of permanent prevention. Please provide the exception or error you saw [Bug Report only]Representative excerpt, with paths anonymized: Environment
The same window/folder set was stable for approximately 20 minutes before the deleted-file error/reload loop began. Workspace size may amplify the cost, but does not by itself explain the transition into the continuous loop. Suspected mechanism (code-traced; not an isolated reproduction)There appears to be an interaction between external-template project recovery and TypeScript project cleanup:
This is consistent with the repeated log sequence and the observed recovery, but the exact heap-retention cause and causality of every internal step have not been independently established. The recovery methods are present in 14fbe04612, which fixed #69768. This may be a relevant interaction/regression to investigate, not a claim that the commit alone is proven to cause the OOM. An earlier log episode also showed repeated external-template project reloads and OOMs without a deleted-file error, so a deleted TS file may be one trigger rather than a necessary condition. Related reports checked: #65356 and #65484 describe older language-service OOM incidents, but do not identify this particular solution-style template/project-reload sequence. Activity
MetadataMetadataAssigneesLabelsarea: language-serviceIssues related to Angular's VS Code language serviceIssues related to Angular's VS Code language service TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |