Lua Error
BelakJG opened this issue ยท 12 comments
HeroLib\Events\Action.lua:190: attempt to index field 'ElvUIPaging' (a nil value)
[string "@herolib\Events\Action.lua"]:190: in function <HeroLib\Events\Action.lua:185>
[string "@herolib\Events\Action.lua"]:226: in function <HeroLib\Events\Action.lua:208>
[string "@herolib\Events\Action.lua"]:320: in function <HeroLib\Events\Action.lua:288>
[string "@herolib\Events\Action.lua"]:342: in function `Handler'
[string "@herolib\Events\Main.lua"]:80: in function <HeroLib\Events\Main.lua:78>
Locals:
class = "DEATHKNIGHT"
(for index) = 1
(for limit) = 10
(for step) = 1
i = 1
BarNum = "bar1"
PagingString = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'ElvUIPaging' (a nil value)"
Cache =
GUIDInfo =
}
Set = defined @HeroCache\Main.lua:268
APLVar =
}
Enemies =
}
Get = defined @HeroCache\Main.lua:252
HasBeenReset = true
SpellInfo =
}
UnitInfo =
}
MiscInfo =
}
Persistent =
}
ItemInfo =
}
Reset = defined @HeroCache\Main.lua:41
}
What version of the addon are you using? If you're updating from CurseForge/Overwolf, they are for whatever reason not catching our newer releases. You may need to grab the latest version from github, available here
If you are using version 9.0.5.04 and still having this issue, please let us know.
Hmm, I'll have to investigate this. HeroCache/Main.lua creates the Cache.Persistent.ElvUIPaging structure, so it shouldn't be coming back as nil.
Thank you. It seems to be keeping hero rotation from displaying key binds if that helps any.
That was the commit that added caching of ElvUI's paging info. I'm still not seeing any reason that an error would be occurring. In game, what do you get if you issue the command /dump HeroCache.Persistent.ElvUIPaging
?
Can you confirm that in your copy of the addon HeroCache/Main.lua, line 37 is:
ElvUIPaging = { PagingString, PagingStrings = {}, PagingBars = {} }
?
This is the line that defines the structure that you got "empty" in the dump. Something isn't right in your setup. I've logged in a character that I haven't used since BfA, as well as a brand new level 1, and both show the structure properly when performing that dump.
I would suggest completely deleting HeroCache and HeroLib, as well as the HeroCache.lua SavedVariables file, found in WoW\_retail_\WTF\Account\<YourAccount>\SavedVariables
. After that, reinstall version 9.0.5.05 (newly created release to incorporate some other changes... no changes relating to this issue).
That fixed it, for some reason herocache was updating through github but the symlink had broken so it wasn't updating in my wow addons. Thank you for your patience with this.
I rolled back to see when the issue started exactly and it started after de46e4d was committed.