Describe the bug
Exception in the developer console when trying to move blocks after blocks start shaking
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should not be any error
Video showing the steps
Video.zip
ChromeOS : 74.0.3729.159 (Official Build) (64-bit)
Platform: 11895.118.0 (Official Build)
JavaScript: V8 7.4.288.28
Flash: 32.0.0.171
Definitely a bug, but things seem to keep working after the error so lower priority to fix.
@RoboErikG Can we just handle the exception instead of throwing it?
@ankuraga1508 that would just hide the bug without fixing it and could cause more issues later on.
@NeilFraser I thought I fixed this when I fixed the shaking, but that must not have been the root problem. I can take a look in an hour or two.
Source of the exception:
https://github.com/google/blockly/blob/master/core/inject.js#L306
Here are some simpler repro steps:
/demos/fixed/index.htmlBlockly.Xml.domToWorkspace(Blockly.mainWorkspace, Blockly.Xml.textToDom(`<xml xmlns="https://developers.google.com/blockly/xml">
<block type="controls_repeat_ext" x="11" y="0">
<statement name="DO">
<block type="controls_repeat_ext">
<next>
<block type="controls_repeat_ext">
<next>
<block type="controls_repeat_ext">
<next>
<block type="controls_repeat_ext">
<next>
<block type="controls_repeat_ext">
<next>
<block type="controls_repeat_ext">
<statement name="DO">
<block type="controls_repeat_ext"/>
</statement>
<next>
<block type="controls_repeat_ext"/>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>`))
This was fixed by #3394