Skip to content

Error when deleting a variable from connected set <-> get variable blocks #8455

@gonfunko

Description

@gonfunko

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

  1. Create a variable
  2. Drag out and connect the "set <x> to" and "<x>" blocks
  3. From the dropdown in the "set <x> to" block, choose the "Delete the 'x' variable" menu item
  4. 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

Screenshot 2024-08-02 at 1 58 32 PM

Browsers

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions