-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
XML/JSON change for disabled blocks #8095
Comments
The same issue is true for JSON serialization. Furthermore, the new XML/JSON serialization is not backwards compatible. In practice this is a lesser problem, but none-the-less, there's no reason to needlessly break V10 versions of Blockly getting V11 serialization. |
This was introduced by #7958. @johnnesky |
Good point, we shouldn't delete support for the old format, but we should migrate to the new one, because it fixes several bugs. So the TODO here is to remove the deprecation warnings. |
Ok, I'll take it. |
Yeah we can remove the deprecation warnings. If you don't mind redundant data, we could also continue to serialize the old properties (when the disabled reason |
I think it's fine as long as we deserialize the old attributes. Serializing them is less important, and there are partners that really care about keeping save file sizes small since they're financially constrained (I.E. App Inventor will be grumpy with me). |
We must continue to support existing XML and JSON serialization formats since they are in external databases. The decision was taken not to make the save formats compatible with older versions of Blockly. We could not think of a convincing use-case for a newer Blockly's output to be read by an older Blockly. If such a case appears, then our decision should change. Resolves #8095.
We must continue to support existing XML and JSON serialization formats since they are in external databases. The decision was taken not to make the save formats compatible with older versions of Blockly. We could not think of a convincing use-case for a newer Blockly's output to be read by an older Blockly. If such a case appears, then our decision should change. Resolves #8095.
Check for duplicates
Description
The XML save format is changing from
to
Loading the former in v11 results in this console warning:
It is utterly unprecedented to deprecate a core part of the XML parser. XML lives forever in external databases. This implies that v12 will no longer be able to load existing user code!
The offending code is here:
https://github.com/google/blockly/blob/rc/v11.0.0/core/xml.ts#L1024
Reproduction steps
Stack trace
No response
Screenshots
No response
Browsers
No response
The text was updated successfully, but these errors were encountered: