herotc / hero-lib

WoW Addon - Core Library used by HeroRotation and AethysTools, can also be used by others 3rd-Party Addons.
European Union Public License 1.2
44 stars 35 forks source link

Keybindings.lua #38

Closed LynxAU closed 4 years ago

LynxAU commented 4 years ago

Getting some weird error messages whenever i mouse over nearly anything...

Message: Interface\AddOns\HeroLib\Events\KeyBinding.lua:36: attempt to call method 'GetPagedID' (a nil value)
Time: Fri Aug  7 18:21:21 2020
Count: 16
Stack: Interface\AddOns\HeroLib\Events\KeyBinding.lua:36: attempt to call method 'GetPagedID' (a nil value)
[string "@Interface\AddOns\HeroLib\Events\KeyBinding.lua"]:36: in function <Interface\AddOns\HeroLib\Events\KeyBinding.lua:21>
[string "@Interface\AddOns\HeroLib\Events\KeyBinding.lua"]:121: in function <Interface\AddOns\HeroLib\Events\KeyBinding.lua:62>
[string "@Interface\AddOns\HeroLib\Events\KeyBinding.lua"]:133: in function `Handler'
[string "@Interface\AddOns\HeroLib\Events\Main.lua"]:227: in function <Interface\AddOns\HeroLib\Events\Main.lua:225>

Locals: Bar = <table> {
 1 = "ElvUI_Bar1Button"
 2 = 7
}
Override = true
Button = ElvUI_Bar1Button1 {
 state_actions = <table> {
 }
 checked = <unnamed> {
 }
 NewActionTexture = <unnamed> {
 }
 Border = ElvUI_Bar1Button1Border {
 }
 Flash = ElvUI_Bar1Button1Flash {
 }
 _state_action = 1
 icon = ElvUI_Bar1Button1Icon {
 }
 AutoCastable = <unnamed> {
 }
 pushed = <unnamed> {
 }
 keyBoundTarget = "ACTIONBUTTON1"
 backdrop = <unnamed> {
 }
 FlyoutUpdateFunc = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:1037
 HotKey = ElvUI_Bar1Button1HotKey {
 }
 action = 0
 0 = <userdata>
 PixelSnapDisabled = true
 flashing = 0
 AutoCastShine = ElvUI_Bar1Button1Shine {
 }
 NormalTexture = ElvUI_Bar1Button1NormalTexture {
 }
 rangeTimer = -1
 LevelLinkLockIcon = <unnamed> {
 }
 CalculateAction = <function> defined @Interface\FrameXML\SecureTemplates.lua:582
 FlyoutBorder = ElvUI_Bar1Button1FlyoutBorder {
 }
 FlyoutBorderShadow = ElvUI_Bar1Button1FlyoutBorderShadow {
 }
 hover = <unnamed> {
 }
 SpellHighlightAnim = <unnamed> {
 }
 postKeybind = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:931
 Name = ElvUI_Bar1Button1Name {
 }
 id = 1
 header = ElvUI_Bar1 {
 }
 SpellHighlightTexture = <unnamed> {
 }
 __LAB_Version = 20
 outOfRange = false
 config = <table> {
 }
 Count = ElvUI_Bar1Button1Count {
 }
 _state_type = "action"
 state_types = <table> {
 }
 FlyoutArrow = ElvUI_Bar1Button1FlyoutArrow {
 }
 cooldown = ElvUI_Bar1Button1Cooldown {
 }
 zoneAbilityDisabled = false
}
ButtonTexture = 538771
ButtonHotKey = "1"
(for index) = 1
(for limit) = 7
(for step) = 1
i = 1
ButtonName = "ElvUI_Bar1Button1"
(*temporary) = <function> defined =[C]:-1
(*temporary) = nil
(*temporary) = ElvUI_Bar1Button1 {
 state_actions = <table> {
 }
 checked = <unnamed> {
 }
 NewActionTexture = <unnamed> {
 }
 Border = ElvUI_Bar1Button1Border {
 }
 Flash = ElvUI_Bar1Button1Flash {
 }
 _state_action = 1
 icon = ElvUI_Bar1Button1Icon {
 }
 AutoCastable = <unnamed> {
 }
 pushed = <unnamed> {
 }
 keyBoundTarget = "ACTIONBUTTON1"
 backdrop = <unnamed> {
 }
 FlyoutUpdateFunc = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:1037
 HotKey = ElvUI_Bar1Button1HotKey {
 }
 action = 0
 0 = <userdata>
 PixelSnapDisabled = true
 flashing = 0
 AutoCastShine = ElvUI_Bar1Button1Shine {
 }
 NormalTexture = ElvUI_Bar1Button1NormalTexture {
 }
 rangeTimer = -1
 LevelLinkLockIcon = <unnamed> {
 }
 CalculateAction = <function> defined @Interface\FrameXML\SecureTemplates.lua:582
 FlyoutBorder = ElvUI_Bar1Button1FlyoutBorder {
 }
 FlyoutBorderShadow = ElvUI_Bar1Button1FlyoutBorderShadow {
 }
 hover = <unnamed> {
 }
 SpellHighlightAnim = <unnamed> {
 }
 postKeybind = <function> defined @Interface\AddOns\ElvUI\Modules\ActionBars\ActionBars.lua:931
 Name = ElvUI_Bar1Button1Name {
 }
 id = 1
 header = ElvUI_Bar1 {
 }
 SpellHighlightTexture = <unnamed> {
 }
 __LAB_Version = 20
 outOfRange = false
 config = <table> {
 }
 Count = ElvUI_Bar1Button1Count {
 }
 _state_type = "action"
 state_types = <table> {
 }
 FlyoutArrow = ElvUI_Bar1Button1FlyoutArrow {
 }
 cooldown = ElvUI_Bar1Button1Cooldown {
 }
 zoneAbilityDisabled = false
}
(*temporary) = "attempt to call method 'GetPagedID' (a nil value)"
KeyBindings = <tabl

just thought i'd drop an issue ticket!

May also be an ElvUI issue, but i didn't see it happening until i installed herolib

aethys256 commented 4 years ago

Fixed by https://github.com/herotc/hero-lib/commit/33a1d01edc881110fff4f4c1b9a2334b0813905f#diff-6a6015100d7df810036fee9f3c69035239dffb1f499fdf80d3c9ebaac10d02f5