Skip to content

Conversation

weswigham
Copy link
Member

Fixes #60564

None of the expression types made while looking at the structure for this check are cached (courtesy of using getRegularTypeOfExpression instead of checkExpressionCached in serializeTypeOfExpression, which is itself done to handle freshness correctly), so the diagnostic check itself needs to be cached to prevent reentrancy when reporting on a circularly referential structure.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Dec 4, 2024
@weswigham weswigham merged commit 517da72 into microsoft:main Dec 4, 2024
32 checks passed
@RyanCavanaugh
Copy link
Member

@typescript-bot cherry-pick this to release-5.7

@typescript-bot
Copy link
Collaborator

typescript-bot commented Dec 4, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
cherry-pick this to release-5.7 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

Hey, @RyanCavanaugh! I've created #60686 for you.

@epmatsw
Copy link

epmatsw commented Dec 4, 2024

Will give this a spin on our full repo to test #60564 tomorrow morning 👍

thanks for the fix!

@epmatsw
Copy link

epmatsw commented Dec 5, 2024

Confirmed that the issue reproduces in 5.8.0-dev.20241204 and is no longer reproducible in 5.8.0-dev.20241205. Thanks again!

@sandersn sandersn removed this from PR Backlog Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"RangeError: Maximum call stack size exceeded" error after upgrading from 5.6.3 to 5.7.2
5 participants