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

Fixes TypeInferenceProvider breakage with empty cache. #476

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

lisroach
Copy link
Contributor

@lisroach lisroach commented Apr 5, 2021

Summary

#475

TypeInferenceProvider crashes if an empty cache is passed to it, which resulted in the creation of PLACEHOLDER_CACHES in Fixit. I'm working on a PR to allow a user to pass into Fixit no providers, and found this bug via this conversation.

The fix itself is very simple.

Test Plan

Added a unit test.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 5, 2021
@lisroach
Copy link
Contributor Author

lisroach commented Apr 5, 2021

Gotta figure out how to get pyre working

@zsol
Copy link
Member

zsol commented Apr 6, 2021

I'll get this reviewed tomorrow if nobody does it before then

Copy link
Contributor

@jimmylai jimmylai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zsol zsol merged commit 068b905 into Instagram:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants