1 sentence description of the problem: You can no longer delete variables
Steps that the Hopscotch team can take to reproduce my problem every time:
Make a variable
Try to delete it
…
I expected this to happen:
The delete button would be there But instead this happened:
The delete button was not there. The variable was now in the 12th dimension and was totally invincible. The variable had reached god status. The variable would exist forever and ever. It can never be removed. The variable will outlive you and the universe itself.
Steps that people using Hopscotch (who don’t know about JSON editing meaning they can’t remove these variables) would take and accidentally reproduce the problem every time:
Go into a draft you have no backup of
Add some more things to the draft
Get sidetracked and spend about half an hour creating random variables out of boredom
Realize that you can’t actually delete the variables, and that you created so many that the project is actually lagging due to the amount of variables you made
Check for backups, realize you never made any, and reevaluate your life choices
…
You would have expected this to happen:
You have wasted about an hour deleting all of the useless variables you had made But instead this happened:
You are now stuck with a laggy draft with a bunch of useless variables
Yeah it does remove from all your code when deleted (though there is a little visual glitch). And yep when the bug is fixed, it should be deletable outside of advanced mode.
So currently it is intentional that local variables aren’t deletable in the editor, as they will remove themselves from the keyboard when they’re no longer used, or if they don’t exist the scope.
There’s some more information available here on local variables:
If a local variable is not used anywhere in the current scope, it will not appear on the Variables keyboard.