Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache started nonexistent property error checks to prevent reentrancy in the check #60683

Merged

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!

RyanCavanaugh pushed a commit that referenced this pull request Dec 5, 2024
…e-5.7 (#60686)

Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
@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!

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
Status: Done
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