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

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

Open
1 task done
gonfunko opened this issue Aug 2, 2024 · 1 comment
Open
1 task done
Labels
component: events component: variables issue: bug Describes why the code or behaviour is wrong

Comments

@gonfunko
Copy link
Contributor

gonfunko commented 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

  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

@gonfunko gonfunko added issue: bug Describes why the code or behaviour is wrong component: events component: variables labels Aug 2, 2024
@Naresh-kumar-Thodupunoori

Hey @gonfunko May I work on this!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: events component: variables issue: bug Describes why the code or behaviour is wrong
Projects
None yet
Development

No branches or pull requests

2 participants