[BUG] Hekili / SpellFlashCore produces lua errors.
Tga123 opened this issue ยท 4 comments
Before You Begin
- I confirm that I have downloaded the latest version of the addon.
- I am not playing on a private server.
- I checked for an existing, open ticket for this issue and was not able to find one.
- I edited the title of this bug report (above) so that it describes the issue I am reporting.
Describe the Issue
From line 182 if IsAddOnLoaded("ButtonForge") then
til line 245 in "SpellFlashCore.lua" there is support for another addon "Button Forge". Async loading here is no needed, coz this part of code load data from another already fully loaded addon. And async loading produces lua errors coz it unusual way to use it.
How to Reproduce
Use Hekili with ButtonForge.
Player Information (Link)
https://github.com/Hekili/SpellFlashCore
Error Messages (Link)
https://github.com/Hekili/SpellFlashCore
Additional Information
Errors from BugSack.
- for "item" section
10x Hekili\Libs\SpellFlashCore\SpellFlashCore.lua:223: table index is nil
[string "@Hekili\Libs\SpellFlashCore\SpellFlashCore.lua"]:223: in function <Hekili\Libs\SpellFlashCore\SpellFlashCore.lua:217>
[string "=[C]"]: in function `xpcall'
[string "@FrameXML\ObjectAPI\AsyncCallbackSystem.lua"]:76: in function `FireCallbacks'
[string "@FrameXML\ObjectAPI\AsyncCallbackSystem.lua"]:35: in function <FrameXML\ObjectAPI\AsyncCallbackSystem.lua:31>
- for "spell" section
6x Hekili\Libs\SpellFlashCore\SpellFlashCore.lua:210: table index is nil
[string "@Hekili\Libs\SpellFlashCore\SpellFlashCore.lua"]:210: in function <Hekili\Libs\SpellFlashCore\SpellFlashCore.lua:204>
[string "=[C]"]: in function `xpcall'
[string "@FrameXML\ObjectAPI\AsyncCallbackSystem.lua"]:76: in function `FireCallbacks'
[string "@FrameXML\ObjectAPI\AsyncCallbackSystem.lua"]:35: in function <FrameXML\ObjectAPI\AsyncCallbackSystem.lua:31>
Contact Information
No response
I'll pull the portion impacting ButtonForge. The other implementation needs to run asynchronously or restart itself after a delay if item names aren't available when it tries the first time. Otherwise, items simply will not flash. Do you have plans to implement a different solution?
I think, reverting old code only in button forge section and add "ButtonForge" to "## OptionalDeps:" in "Hekili.toc" should be enough.
I try last (3340ed90a8ad66165b088e8d88588a355fdda78d) commit from "async" branch - works great.