[BUG] Crash with macro unusable
Sunblade2020 opened this issue Β· 5 comments
π΅ Describe the bug:
When i copy and paste "KeyPress" into the top part of a loop structure. GSE will crash with an error and cause the whole macro to be broken and un-usable.
π΅ To reproduce: (Steps to reproduce the behavior)
Open Macro and Edit go into macro 1
Copy and paste "KeyPress" at the top of a loop structure and then save.
KeyPress is my variable to cast as a pre macro.
π΅ The error:
See Screenshots
π΅ Screenshots:
See Screenshots
π΅ Expected behavior:
Clicking Save should not crash and destroy the entire macro. Causing me to have to reload a backup GSE.lua file.
π΅ GSE.lua file:
Uploaded with pictures
π΅ Desktop (please complete the following information):
- OS: Windows 11 64bit
- Game Version: Retail dragonflight but was happening in shadowlands too.
π΅ GSE Version:
-
Version: 3.1.22
GSE.lua.log
-
Downloaded From: https://www.curseforge.com
π΅ Additional context:
na
Hi, thanks for looking at it. so after messing around a bit more it looks like it's an issue with a blank line at the top of any block structure. So if I copy and paste something before I click save and there's a blank line at the top in any loop block and then I hit save, it will crash. At least that's what I think happens.
I guess it can't handle a blank line in any structure. i.e. you create a blank line at the top for the copy paste and it crashes as you paste it in or some such. But so long as you cancel the error message that pops up and delete the blank line and then save. Its ok and you won't lose your code. Just don't change tabs or macros or it will go blank and you loose everything.