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

patch projects with top-level shadow blocks #10177

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Sep 12, 2024

Fixes the issue described here: https://forum.makecode.com/t/cannot-restore-from-history/30482

Blockly doesn't allow shadow blocks to have no parent. This shouldn't actually be possible in the editor but the evidence suggests otherwise! This change will simply convert those shadow blocks to normal blocks to prevent them from interrupting project loading.

Still don't know what the actual cause of this state is. I added a tick event so that we can at least figure out what blocks are causing it.

@riknoll riknoll requested a review from a team September 12, 2024 17:28
@riknoll riknoll merged commit 905a999 into master Sep 12, 2024
7 checks passed
@riknoll riknoll deleted the dev/riknoll/orphaned-shadows branch September 12, 2024 18:04
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.

2 participants