ItemRack Classic

ItemRack Classic

7M Downloads

Bug introduced in 3.51 - LibStub() cannot be called

cbracht opened this issue · 6 comments

commented

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)"

Code where the error occurs (Line 157):
image

commented

@cbracht thanks for reporting it.
Do you have masque installed or not?
Can you provide a list of addons that you are using?
Did you try to delete the ItemRack settings in the WTF folder and does it fix the problem?

@pshurgal This might be a hint for the other problems you where already looking at?

commented

@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

commented

Yeah LibStub is provided by Ace and is bundled with Masque and probably more addons, that's why it's kinda random I guess.

commented

Can you try to download this https://github.com/Rottenbeer/ItemRack/tree/libstub and check if it works please?

commented

Works as expected for me (though I dont have another addon that provides LibStub)
Thank you and every other contributor for their great work!

commented

Will be released on curseforge as 3.52 any minute.