LibHealComm keeps throwing errors for multiple classes #1669


Open
  • Mayron created this issue Jun 18, 2021

    A few other people in discord have been reporting similar errors to the one I receive when I cast chain healing on my shaman, but for different classes.

    This only happens in BC Classic:

     

    Message: ...dUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua:758: attempt to perform arithmetic on local 'requiresLevel' (a nil value)
    Time: Fri Jun 18 22:20:42 2021
    Count: 1
    Stack: ...dUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua:758: attempt to perform arithmetic on local 'requiresLevel' (a nil value)
    [string "=[C]"]: ?
    [string "@Interface\AddOns\ShadowedUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:758: in function <...dUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua:751>
    [string "@Interface\AddOns\ShadowedUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:1185: in function <...dUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua:1183>
    [string "=(tail call)"]: ?
    [string "@Interface\AddOns\ShadowedUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:1993: in function `?'
    [string "@Interface\AddOns\ShadowedUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua"]:2446: in function <...dUnitFrames\libs\LibHealComm-4.0\LibHealComm-4.0.lua:2442>

    Locals:

     

     

  • Mayron edited description Jun 18, 2021
  • Mayron posted a comment Jun 18, 2021

    Althought it might not be the best solution, changing line 757 in LibHealComm-4.0.lua to add `or 0` at the end fixes it:

     

    local requiresLevel = spellData.levels[spellRank] or 0

  • mood2 posted a comment Jun 18, 2021

    Having the same issue on my Paladin. Although it looks like the issue is from within LibHealComm not SUF.

  • smacc777 posted a comment Jun 20, 2021

    Having this issues on my Shaman. changed that line of code you mentioned and it's still happening...

     

  • mood2 posted a comment Jun 20, 2021

    I looked at the code and it looks like LibHealComm has been updated and includes the fixes. Here's a link to the commit that adds the missing values which are causing the Lua errors.

     

    https://github.com/Azilroka/LibHealComm-4.0/blame/307c648b79ec9f42743ef5b26a2569f652ccc94e/LibHealComm-4.0.lua#L1009

     

    I think the maintainer of SUF just needs to include the latest LibHealComm package.

  • mood2 posted a comment Jun 20, 2021

    A local fix you can do is to go directly to the LibHealComm repo, copy the code from the main .lua file and replace your local file's contents with the most recent code.

     

    You can find the most recent code here: https://raw.githubusercontent.com/Azilroka/LibHealComm-4.0/master/LibHealComm-4.0.lua

     

    Copy and paste that code into the file residing within the SUF addon folder within the lib folder for LibHealComm.


To post a comment, please login or register a new account.