GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

7M Downloads

[BUG] Can't view Compiled Template, if macro is empty

Opened this issue · 3 comments

commented

Describe the bug
Can't view Compiled Template if macro is empty.

To Reproduce
Steps to reproduce the behavior:

  1. Type '/gse' in Chat Frame
  2. Click on 'New'
  3. Click 'Delete Block" for default entry
  4. Click on 'Save"
  5. Click on 'Compiled template'
  6. Lua Error

Expected behavior
Either an empty view or a warning should be shown.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 (19043)
  • Game Version: 9.1.0 (39262)

GSE Version

  • Version: 3.0.14
  • Downloaded From: Ajour (Curse

Additional context

Clicking Compiled Template for an empty macro Lua Error

Message: Interface\AddOns\GSE_GUI\MacroPreview.lua:53: attempt to call method 'GetWidth' (a nil value)
Time: Sat Jul 3 21:00:46 2021
Count: 1
Stack: Interface\AddOns\GSE_GUI\MacroPreview.lua:53: attempt to call method 'GetWidth' (a nil value)
[string "@interface\AddOns\GSE_GUI\MacroPreview.lua"]:53: in function GUIShowCompiledMacroGui' [string "@Interface\AddOns\GSE_GUI\Editor.lua"]:914: in function <Interface\AddOns\GSE_GUI\Editor.lua:912> [string "=[C]"]: ? [string "@Interface\AddOns\Bartender4\libs\AceGUI-3.0\AceGUI-3.0.lua"]:72: in function <...ace\AddOns\Bartender4\libs\AceGUI-3.0\AceGUI-3.0.lua:70> [string "@Interface\AddOns\Bartender4\libs\AceGUI-3.0\AceGUI-3.0.lua"]:306: in function Fire'
[string "@interface\AddOns\Bartender4\libs\AceGUI-3.0\widgets\AceGUIWidget-Button.lua"]:22: in function <...der4\libs\AceGUI-3.0\widgets\AceGUIWidget-Button.lua:19>

Locals:

commented
commented

No blocks at all.

{
    ["Variables"] = {
        
    },
    ["Actions"] = {
        
    },
    ["InbuiltVariables"] = {
        
    }
}

Compiles and saves, but obviously doesn't show a Compiled Template.

commented