DevTool

DevTool

124 Downloads

Error on Addon load if an non existant event was added

JoschiZ opened this issue ยท 3 comments

commented

How to reproduce:

  1. Open VDT
  2. Go into the Event Tab
  3. Enter "ElvUI" in the bottom bar to add this "event"
  4. Nothing will happen, because that event does not exist
  5. Reload
  6. VDT will crash while initializing with this error:
ViragDevToolListenerFrame:RegisterEvent(): ViragDevToolListenerFrame:RegisterEvent(): Attempt to register unknown event "ElvUI"
[string "=[C]"]: in function `RegisterEvent'
[string "@Interface/AddOns/ViragDevTool/Modules/ViragDevToolEvents.lua"]:30: in function `StartMonitorEvent'
[string "@Interface/AddOns/ViragDevTool/ViragDevTool.lua"]:159: in function `cmd'
[string "@Interface/AddOns/ViragDevTool/ViragDevTool.lua"]:428: in function `ExecuteCMD'
[string "@Interface/AddOns/ViragDevTool/ViragDevTool.lua"]:885: in function `SubmitEditBoxSidebar'
[string "*ViragDevTool.xml:662_OnEnterPressed"]:1: in function <[string "*ViragDevTool.xml:662_OnEnterPressed"]:1>

Locals:
(*temporary) = ViragDevToolListenerFrame {
 0 = <userdata>
}
(*temporary) = "ElvUI"
commented

Thanks for reporting, I'll take a look at adding a safety check for this when launching.

commented

is there any way to remove this added event? i tried removing all files in the WTF folder, but i still get the error on load

commented

Please go ahead and test the latest version in Main. My changes should have fixed your issue, but I only was able to do limited testing.