question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deleting a hat block incorrectly implies deleting a single block

See original GitHub issue

Expected Behavior

When you right click on a block and you select the option Delete block, it should delete one block.

Actual Behavior

delete

Right clicking on a hat block uses the message Delete block but it deletes the whole stack. Either the message should indicate that more blocks will be deleted, or only delete the hat block.

Note clicking on the forever when it contains a block the context menu says Delete 2 blocks.

Operating System and Browser

MacOS Chrome

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
joker314commented, Nov 9, 2018

My understanding is that “delete” in the context menu is designed so that you don’t have to perform a three step process to delete a single block:

  1. Drag out tail of the script
  2. Drag out the block you want to delete
  3. Return the tail of the script to the head thereof

With a hat block, you can just drag the entire script into the trash if that’s what you want to do. If you, however, want to swap the event which triggers the action (e.g. arrow keys vs green flag), there should be a quick way to do that.

0reactions
towerofnixcommented, Dec 11, 2018

Not too sure, but this may be a duplicate of #245. https://github.com/LLK/scratch-blocks/issues/245#issuecomment-376341121 describes a potential way to look into fixing this. More importantly, the new PR #1814 probably fixes this issue too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repairing Vintage Hat Blocks - Judith M Millinery Supply House
If wanting a nicer looking block, lightly sand to remove old stains and varnish. You can then apply a clear restorative finish if...
Read more >
BLOCKING | NancyBatesDesigns
Every one of my patterns ends with the instruction to "block as desired". ... Step 4: Gently remove hat from water being careful...
Read more >
Unable to Delete a Project or Namespace in OCP
This usually happens because something is preventing a resource from being deleted, causing namespace deletion to be stuck.
Read more >
To Remove a Block Definition | AutoCAD 2020
Click Application button Drawing Utilities Purge. · If necessary, click Purgeable Items. · To purge blocks, use one of the following methods: ·...
Read more >
How one programmer broke the internet by deleting a tiny ...
How one programmer broke the internet by deleting a tiny piece of code ... with Stratton threatening legal action: “We don't mean to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found