-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Error when deleting a variable from connected set <-> get variable blocks #8455
Copy link
Copy link
Closed
Labels
component: eventscomponent: variablesissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Description
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 errorScreenshots
Browsers
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: eventscomponent: variablesissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Type
Projects
Status
Done