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

Disconnecting run function block from new processor block causes Uncaught Error #583

Open
zfi opened this issue Apr 27, 2021 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@zfi
Copy link
Contributor

zfi commented Apr 27, 2021

Disconnection the 'run function' block from a 'new processor' block triggers an uncaught 'Connection lists did not match in length' error in Blockly core.

blockly.js:16908 Uncaught Error: Connection lists did not match in length.
    at Blockly.BlockSvg.Blockly.Block.getMatchingConnection (blockly.js:16908)
    at Blockly.InsertionMarkerManager.connectMarker_ (blockly.js:13489)
    at Blockly.InsertionMarkerManager.showPreview_ (blockly.js:13449)
    at Blockly.InsertionMarkerManager.maybeShowPreview_ (blockly.js:13445)
    at Blockly.InsertionMarkerManager.update (blockly.js:13375)
    at Blockly.BlockDragger.dragBlock (blockly.js:13556)
    at Blockly.TouchGesture.Blockly.Gesture.startDraggingBlock_ (blockly.js:14036)
    at Blockly.TouchGesture.Blockly.Gesture.updateIsDraggingBlock_ (blockly.js:14023)
    at Blockly.TouchGesture.Blockly.Gesture.updateIsDragging_ (blockly.js:14031)
    at Blockly.TouchGesture.Blockly.Gesture.updateFromEvent_ (blockly.js:14004)
    at Blockly.TouchGesture.Blockly.Gesture.handleMove (blockly.js:14054)
    at Blockly.TouchGesture.handleMove (blockly.js:14548)
    at HTMLDocument.a (blockly.js:20613)
    at HTMLDocument.n (helpers.js:72)

This appears to be triggered in the 'run function' block.

2021-04-27_12-08-04

The 'run function' block is mutating to remove its bottom block connector when the block is attached inside a 'new processor' block.

2021-04-27_12-08-14

When the 'run function' block is removed, the un-mutated form of the block returns and no longer mutates when reconnected to the 'new processor' block.

2021-04-27_12-08-33

Sample project file:
Cog-Test.svg.zip

@zfi zfi added the bug Something isn't working label Apr 27, 2021
@zfi zfi self-assigned this Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant