Weird glitch when deleting variables

Use this template to make awesome bug reports:

Your username: Crosbyman64

What kind of device are you using?: (Also include iOS version, and Hopscotch version) M1 iPad Pro (5th Gen), iPadOS 15.4, HS 3.50.2

1 sentence description of the problem (I was doing _________, and then __________ happened): I was deleting an old variable after replacing a set block with a new one, and the new one just disappeared

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

  1. Create a variable
  2. Place it in a set block
  3. Create a new variable
  4. Replace the old with the new
  5. Delete the old variable
  6. Become confused as the new variable disappears after tapping out of the block, even though that variable still exists

I expected this to happen: The new variable to remain

But instead this happened: It disappeared for no reason

Here’s a sweet screenshot: I don’t have access to hopscotch from here, sorry. I’ll add a screenshot once I’m able.

It may seem like it’s not a big deal, but it can potentially break very large projects. Affects all variable types (Local, Object, Game, and User)

@/Yuanyuan @/t1_hopscotch @/omtl

14 Likes

So if you delete an unused variable, and the project stops working for no reason, then some set variable declarations may have been cleared/removed unintentionally.

7 Likes

yes this is annoying
he took first post nooo

4 Likes

I had this bug a few times before, and I ended up scrolling through my codes and replacing all the vanished variables for a long time. I never remembered to report this bug after spending a long time replacing the variables.

5 Likes

This is the thing where it temporarily shows just a yellow bubble with its name, before disappearing when you tap on it again, right?

4 Likes

Yeah, that happens with the object variables, other variables will look like nothing happened, then vanish after tapping again. I haven’t tested if they mysteriously vanish after tapping on the variable again. This mainly only happens if you delete a variable that is currently in the set block.

Why? Is there another topic that describes this bug?


I also had no idea most (if not, all) moderators and admins would already be watching the topic.

Ok. I know it doesn’t make any difference, now, but I just turned off the tags.

3 Likes

@/Awesome_E here’s a little video of what is happening for me.

4 Likes

Can you please post a YouTube link to it?

you can reproduce it by yourself but ok

1 Like

I don’t have access to YouTube from here. Sorry.

1 Like

That’s ok.

Yep, all my video is are the steps being taken, along with the end result.

1 Like

yeah that’s right

No, but I remember it happening

Most of us are, but regardless it’s being tracked with a different separate tagging system by THT

1 Like

Thanks a lot for reporting. I’ve been able to reproduce it — the new variable in that block does disappear after the old one is deleted.

3 Likes