Twintop / TwintopInsanityBar

Twintop's Resource Bar (formerly Twintop's Insanity Bar), a multi-class resource addon for World of Warcraft
MIT License
12 stars 7 forks source link

/ClassModules/Priest.lua:1935: bad argument #2 to 'format' (number expected, got nil) #402

Closed JH0Ni-github closed 3 months ago

JH0Ni-github commented 3 months ago

Version: 11.0.2.0-release Getting this on about every frame until I disable the shadow priest plugin:

1009x ...ceTwintopInsanityBar/ClassModules/Priest.lua:1935: bad argument #2 to 'format' (number expected, got nil)
[string "=[C]"]: in function `format'
[string "@TwintopInsanityBar/ClassModules/Priest.lua"]:1935: in function `RefreshLookupData'
[string "@TwintopInsanityBar/Functions/BarText.lua"]:869: in function `UpdateResourceBarText'
[string "@TwintopInsanityBar/ClassModules/Priest.lua"]:3685: in function <...ceTwintopInsanityBar/ClassModules/Priest.lua:2678>
[string "@TwintopInsanityBar/ClassModules/Priest.lua"]:5112: in function `TriggerResourceBarUpdates'
[string "@TwintopInsanityBar/Init.lua"]:226: in function `onUpdate'
[string "@TwintopInsanityBar/ClassModules/Priest.lua"]:4483: in function <...ceTwintopInsanityBar/ClassModules/Priest.lua:4483>

Locals:
(*temporary) = "%.0f"
(*temporary) = nil
(*temporary) = "number expected, got nil"
Twintop commented 3 months ago

Having a look, thanks for the report!

Twintop commented 3 months ago

I've found the source of the problem @JH0Ni-github -- I'm guessing you have "Track Shadowfiend/Mindbender Insanity Gain" unchecked.

11.0.2.1-release coming out shortly with a fix. Sorry about that!

JH0Ni-github commented 3 months ago

I'm guessing you have "Track Shadowfiend/Mindbender Insanity Gain" unchecked.

Yeah seems like checking it gets rid of the errors. Thanks for the quick fix!

Twintop commented 3 months ago

Fix should be on Curse/Wago/WowI