Deleting a character in large strings causes mass loss of text

1 sentence description of the problem: I was trying to edit the string to say that Ladders were also compatible with Dirt Walls, but it deleted half of the text, and when I tried to restore it, the app crashed

Steps to reproduce the problem every time:
(Start in a blank draft if possible)

  1. Edit a set variable block with lots of text
  2. Try to delete a single character anywhere in the text

I expected this to happen: Only delete that character

But instead this happened: It deletes half of the string

Screenshots/video:

(Include project link if relevant)
https://c.gethopscotch.com/p/12weso4f8p


Your username: Crosbyman64

Device type, iOS version: iPad13,8 | iPadOS 16.2

Hopscotch version & player version: 3.60.0 Build 7974 | Player 2.1.4
(you can go to :gear: > “About”, and take a screenshot)

9 Likes

I think I had this a few days ago.

8 Likes

this bug is really frequent when I code strings, but when it deleted, were you righting to the end of the line or did you go to the next line automatically? sorry if this is confusing

4 Likes

YES I HAD THIS

4 Likes

When going into edit mode, you are sent to the end of the string. I only showed it happening from there, but it can occur from anywhere. Not only that, the result will pretty much remain the same…

4 Likes

This is definitely really problematic.

I’m so sorry about all the loss of text that has happened for everyone here. I’ve logged this bug internally too – the bug report is very helpful.

I was able to test and confirm. A temporary workaround is to use the Hopscotch undo button once this happens. It’s also really problematic that the iOS undo button results in the app crashing.

I’ve just published a new project with the text isolated on its own for easier reference, if that’s ok. Please let me know if you would prefer for me to remove the text.

2 Likes