New blocks of code disappear

Use this template to make awesome bug reports:

**Your username:**bobinny

**What kind of device are you using?:**iPhone 12,8 - ios 15.6 hopscotch version 3.50.4(Also include iOS version, and Hopscotch version)

1 sentence description of the problem (I was doing _________, and then __________ I was coding and then a block of code disappeared

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. Add a game object
  2. Add a rule that is not custom
  3. Add any piece of code into the first rule
  4. Add another rule that is also not custom
  5. Add any piece of code into the second rule

I expected this to happen: Stay there

But instead this happened: It’s disappeared as if I have deleted it

Here’s a sweet screenshot:


(Imagine there is another piece of code here)

8 Likes

This sounds like a very odd bug. Did it happen more than once in the project?

4 Likes

Yes. It has happened in my other projects too

5 Likes

oh that’s so weird! is it anything like this bug or is it completely different?

Block Deletion Upon Project Opening

7 Likes

This happens to me except with code that was copy/pasted from a different object
And it deletes when you publish the project

5 Likes

No, the block is deleted after adding a rule
it is similar to this but you don’t need to edit any text https://forum.gethopscotch.com/t/code-randomly-disappearing-when-adding-it/

6 Likes

Happened to me

6 Likes

That can get pretty frustrating — looks like there might be a couple of related problems with the app deleting blocks.

I’ve tried to follow the steps but wasn’t able to get the block to delete. Does it delete while you have the editor open, or after closing and reopening the editor?

5 Likes

It happens when you put the rule (or whatever block, at least to me) into a magenta block
Though it’s hard to reproduce because it happens at random

5 Likes

Oh I see, I will try a few cases with putting the rule bubble into the magenta block. Yeah it does seem to be a bit inconsistent which makes it tricky.

5 Likes