Open
Description
openedon Aug 2, 2024
Check for duplicates
- I have searched for similar issues before opening a new one.
Description
With a (fairly nonsensical) construction of blocks, deleting a variable from the dropdown menu causes an uncaught exception.
Reproduction steps
- Create a variable
- Drag out and connect the "set <x> to" and "<x>" blocks
- From the dropdown in the "set <x> to" block, choose the "Delete the 'x' variable" menu item
- Observe the stack trace in the console
Stack trace
Uncaught Error: The block associated with the block move event could not be found
at BlockMove$$module$build$src$core$events$events_block_move.currentLocation_ (events_block_move.ts:202:17)
at new BlockMove$$module$build$src$core$events$events_block_move (events_block_move.ts:93:27)
at RenderedConnection$$module$build$src$core$rendered_connection.disconnectInternal (connection.ts:284:15)
at RenderedConnection$$module$build$src$core$rendered_connection.disconnectInternal (rendered_connection.ts:453:11)
at RenderedConnection$$module$build$src$core$rendered_connection.disconnect (connection.ts:259:10)
at BlockSvg$$module$build$src$core$block_svg.unplugFromRow_ (block.ts:417:29)
at BlockSvg$$module$build$src$core$block_svg.unplug (block.ts:398:12)
at BlockSvg$$module$build$src$core$block_svg.dispose (block.ts:332:10)
at BlockSvg$$module$build$src$core$block_svg.dispose (block_svg.ts:753:11)
at VariableMap$$module$build$src$core$variable_map.deleteVariableInternal (variable_map.ts:307:17)Understand this error
Screenshots
Browsers
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment