Skip to content

Conversation

@gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #8692

Proposed Changes

This PR updates the lists_split block's implementation to serialize the state of the mode (join vs split) field. While as the old comment notes the field validator does update this, during block serialization blocks are connected to their parents before having their field values set, so at the time of connection the field validator has not yet run to set the appropriate connection check, so the block and its parent become separated due to the connection check failing. Now, the extra state will be deserialized early, update the connection checks, and allow the block to be connected to its parent during deserialization. Note that this will not resolve already-saved projects with this issue, but it will fix it going forward.

@gonfunko gonfunko merged commit b8bb26f into RaspberryPiFoundation:develop Jan 6, 2025
11 checks passed
@gonfunko gonfunko deleted the deserialization-failure branch January 6, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blocks with Mutator-Driven Output Types Fail to Reconnect After Reloading JSON

3 participants