Bug introduced in 3.51 - LibStub() cannot be called
cbracht opened this issue · 6 comments
Error when Logging in, Addon fails to load:
Message: Interface\AddOns\ItemRack\ItemRack.lua:157: attempt to call global 'LibStub' (a nil value)
Time: Tue Nov 24 17:23:33 2020
Count: 1
Stack: Interface\AddOns\ItemRack\ItemRack.lua:157: attempt to call global 'LibStub' (a nil value)
Interface\AddOns\ItemRack\ItemRack.lua:157: in main chunk
Locals: _ = nil
(*temporary) = nil
(*temporary) = "Masque"
(*temporary) = true
(*temporary) = "attempt to call global 'LibStub' (a nil value)"
@Rottenbeer masque is not installed. This looks like a library some other addon is probably providing but is not present with my used addons. Deactivating all other addons or removing ItemRack settings does not fix the problem.
Fixed by exchanging L157 with
local Masque = (LibStub and LibStub("Masque", true)) or (LibMasque and LibMasque("Button"))
But I don't know if this is a desired solution
Yeah LibStub is provided by Ace and is bundled with Masque and probably more addons, that's why it's kinda random I guess.
Can you try to download this https://github.com/Rottenbeer/ItemRack/tree/libstub and check if it works please?
Works as expected for me (though I dont have another addon that provides LibStub)
Thank you and every other contributor for their great work!