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

Fix project loading with bad text-number connections #2175

Merged
merged 2 commits into from
May 4, 2020

Conversation

ewpatton
Copy link
Member

Fixes #1213

Change-Id: I78c1666fd34346e46e68e112d02603e4de197fa5

@ewpatton
Copy link
Member Author

Change-Id: I78c1666fd34346e46e68e112d02603e4de197fa5
Change-Id: I52e646cbfab94cf4a317c9149146bd01fd0da49a
@BeksOmega
Copy link
Collaborator

I like the tests :D

Copy link
Member

@jisqyv jisqyv left a comment

Choose a reason for hiding this comment

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

LGTM

The block is now marked bad upon load and is not kicked out. The blocks error count is correct as well.

@@ -471,13 +471,15 @@ Blockly.WorkspaceSvg.prototype.loadBlocksFile = function(formJson, blocksContent
if (blocksContent.length != 0) {
try {
Blockly.Events.disable();
this.isLoading = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you help to explain why this is needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Never mind. I got it

@ellelili2025 ellelili2025 merged commit 8375942 into mit-cml:master May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation problems prevent project loading
4 participants