Bunny67 / WeakAuras-WotLK

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen.
GNU General Public License v2.0
161 stars 105 forks source link

Trigger Error Lua #36

Closed Zidras closed 4 years ago

Zidras commented 4 years ago

Describe the bug

Added second trigger and error popped when selecting Type > Status or Type > Event.

Do you have an error log of what happened?

Message: Interface\AddOns\WeakAuras\GenericTrigger.lua:1140: Improper arguments to WeakAuras.Add - trigger type is "event" but event is not defined
Time: 07/17/20 20:34:09
Count: 1
Stack: (tail call): ?
[C]: ?
Interface\AddOns\WeakAuras\GenericTrigger.lua:1140: in function `Add'
Interface\AddOns\WeakAuras\WeakAuras.lua:4376: in function <Interface\AddOns\WeakAuras\WeakAuras.lua:4323>
Interface\AddOns\WeakAuras\WeakAuras.lua:4455: in function `Add'
Interface\AddOns\WeakAurasOptions\CommonOptions.lua:1362: in function <Interface\AddOns\WeakAurasOptions\CommonOptions.lua:1350>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[2]"]:9: in function <[string "safecall Dispatcher[2]"]:5>
(tail call): ?
...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:818: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:639>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[3]"]:9: in function <[string "safecall Dispatcher[3]"]:5>
(tail call): ?
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:318: in function `Fire'
...as\Libs\AceGUI-3.0\widgets\AceGUIWidget-DropDown.lua:442: in function <...as\Libs\AceGUI-3.0\widgets\AceGUIWidget-DropDown.lua:433>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[3]"]:9: in function <[string "safecall Dispatcher[3]"]:5>
(tail call): ?
...face\AddOns\WeakAuras\Libs\AceGUI-3.0\AceGUI-3.0.lua:318: in function `Fire'
...s\AceGUI-3.0\widgets\AceGUIWidget-DropDown-Items.lua:345: in function <...s\AceGUI-3.0\widgets\AceGUIWidget-DropDown-Items.lua:335>

Locals: No locals to dump
Message: Interface\AddOns\WeakAuras\GenericTrigger.lua:781: attempt to index field '?' (a nil value)
Time: 07/17/20 20:36:59
Count: 2
Stack: [C]: ?
Interface\AddOns\WeakAuras\GenericTrigger.lua:781: in function `CreateFakeStates'
Interface\AddOns\WeakAuras\WeakAuras.lua:5936: in function `UpdateFakeStatesFor'
Interface\AddOns\WeakAuras\WeakAuras.lua:5912: in function `FakeStatesFor'
...eGUI-Widgets\AceGUIWidget-WeakAurasDisplayButton.lua:1861: in function `PriorityShow'
...eGUI-Widgets\AceGUIWidget-WeakAurasDisplayButton.lua:1654: in function `PriorityShow'
...terface\AddOns\WeakAurasOptions\WeakAurasOptions.lua:522: in function `ShowOptions'
...terface\AddOns\WeakAurasOptions\WeakAurasOptions.lua:478: in function `ToggleOptions'
Interface\AddOns\WeakAuras\WeakAuras.lua:89: in function `OpenOptions'
Interface\AddOns\WeakAuras\WeakAuras.lua:129: in function `?'
Interface\FrameXML\ChatFrame.lua:4049: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3660: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:3698: in function <Interface\FrameXML\ChatFrame.lua:3694>
[C]: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: 

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

image

Which version of WeakAuras are you using?

2.17.12

Additional Info

Bunny67 commented 4 years ago

Unfortunately this bug is from retail, it is related to the last changes of options

Bunny67 commented 4 years ago

use this https://github.com/Bunny67/WeakAuras-WotLK/archive/85345af8a20c304da69af87f174020b95aca1167.zip until closed this issue