GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cache started nonexistent property error checks to prevent reentrancy in the check by weswigham · Pull Request #60683 · microsoft/TypeScript

Conversation

@weswigham

@weswigham Wesley Wigham (weswigham) commented Dec 4, 2024

Copy link
Copy Markdown
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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@weswigham
Cache started nonexistent property error checks to prevent reentrncy …
acfd3a6
…in the check
@weswigham
Wesley Wigham (weswigham) requested review from Gabriela Araujo Britto (gabritto) and Nathan Shively-Sanders (sandersn) December 4, 2024 20:55
@typescript-bot TypeScript Bot (typescript-bot) assigned Wesley Wigham (weswigham) Dec 4, 2024
@typescript-bot TypeScript Bot (typescript-bot) added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Dec 4, 2024
gabritto
Gabriela Araujo Britto (gabritto) approved these changes Dec 4, 2024
View reviewed changes
@weswigham
Wesley Wigham (weswigham) merged commit 517da72 into microsoft:main Dec 4, 2024
@RyanCavanaugh

Ryan Cavanaugh (RyanCavanaugh) commented Dec 4, 2024

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) cherry-pick this to release-5.7

typescript-bot reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot

TypeScript Bot (typescript-bot) commented Dec 4, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TypeScript Bot (typescript-bot) pushed a commit that referenced this pull request Dec 4, 2024
@weswigham @typescript-bot
Cache started nonexistent property error checks to prevent reentrancy…
7d9bd7f
… in the check (#60683)
@typescript-bot TypeScript Bot (typescript-bot) mentioned this pull request Dec 4, 2024
🤖 Pick PR #60683 (Cache started nonexistent property ...) into release-5.7 #60686
Merged
@typescript-bot

TypeScript Bot (typescript-bot) commented Dec 4, 2024

Copy link
Copy Markdown
Contributor

Hey, Ryan Cavanaugh (@RyanCavanaugh)! I've created #60686 for you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@epmatsw

Will Stamper (epmatsw) commented Dec 4, 2024

Copy link
Copy Markdown

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

thanks for the fix!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ryan Cavanaugh (RyanCavanaugh) pushed a commit that referenced this pull request Dec 5, 2024
@typescript-bot @weswigham
🤖 Pick PR #60683 (Cache started nonexistent property ...) into releas…
68b84f0
…e-5.7 (#60686)

Co-authored-by: Wesley Wigham <[email protected]>
@Andarist Mateusz Burzyński (Andarist) mentioned this pull request Dec 5, 2024
Add extra test cases for fixed reportNonexistentProperty crashes #60690
Merged
@dmose Dan Mosedale (dmose) mentioned this pull request Dec 5, 2024
Bump typescript from 5.6.3 to 5.7.2 mozilla/skylight#483
Closed
@epmatsw

Will Stamper (epmatsw) commented Dec 5, 2024

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sandersn Nathan Shively-Sanders (sandersn) removed this from PR Backlog Apr 22, 2025
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@gabritto Gabriela Araujo Britto (gabritto) gabritto approved these changes
@sandersn Nathan Shively-Sanders (sandersn) Awaiting requested review from sandersn

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@weswigham Wesley Wigham (weswigham)

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Milestone

No milestone

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

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@weswigham @RyanCavanaugh @typescript-bot @epmatsw @gabritto
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.