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

clean block definitions before attempting to upgrade blocks #10154

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Sep 5, 2024

Fixes microsoft/pxt-microbit#5896

The issue here is that we cache Block definitions when we inject all of the blocks from our API info. This cache gets cleared when we load a new blocks file, but the compiler upgrades happen before that function is called so it's using the cached blocks from the previous injection.

I still haven't figured out when this was introduced, but it appears to be a while ago. My guess would be that this repros on arcade live as well though I haven't tried it.

@riknoll riknoll requested a review from a team September 5, 2024 20:31
Copy link
Contributor

@srietkerk srietkerk left a comment

Choose a reason for hiding this comment

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

Nice!

@riknoll riknoll merged commit a58240d into master Sep 5, 2024
7 checks passed
@riknoll riknoll deleted the dev/riknoll/clean-blocks branch September 5, 2024 20:51
@abchatra
Copy link
Contributor

abchatra commented Sep 5, 2024

Nice find

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iframe/controller regression in beta vs live when updating fixedInstances
4 participants