Errors in 11.0.2 #68


Open
  • Kharthus created this issue Aug 14, 2024

    1x Paste/core.lua:224: attempt to call global 'GetAddOnMetadata' (a nil value)
    [string "@Paste/core.lua"]:224: in function `SetupVersion'
    [string "@Paste/core.lua"]:244: in function <Paste/core.lua:242>
    [string "=[C]"]: ?
    [string "@AutoVendor/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:70: in function <AutoVendor/libs/AceAddon-3.0/AceAddon-3.0.lua:65>
    [string "@AutoVendor/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:498: in function `InitializeAddon'
    [string "@AutoVendor/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:623: in function <AutoVendor/libs/AceAddon-3.0/AceAddon-3.0.lua:615>

  • Bamahut posted a comment Aug 15, 2024

    1x Paste/core.lua:347: attempt to concatenate field 'version' (a nil value)
    [string "@Paste/core.lua"]:347: in function `CreateWindow'
    [string "@Paste/core.lua"]:324: in function `ToggleWindow'
    [string "@Paste/core.lua"]:299: in function `OnClick'
    [string "@AutoCombatLogger/Libs/LibDBIcon-1.0-55/LibDBIcon-1.0.lua"]:179: in function <...utoCombatLogger/Libs/LibDBIcon-1.0/LibDBIcon-1.0.lua:177>

    Locals:
    self = <table> {
    modules = <table> {
    }
    defaultModuleLibraries = <table> {
    }
    wherefn = <table> {
    }
    name = "Paste"
    orderedModules = <table> {
    }
    db = <table> {
    }
    enabledState = true
    baseName = "Paste"
    defaultModuleState = true
    gui = <table> {
    }
    }
    f = <table> {
    sizer_se = Frame {
    }
    sizer_e = Frame {
    }
    userdata = <table> {
    }
    base = <table> {
    }
    type = "Frame"
    AceGUIWidgetVersion = 30
    children = <table> {
    }
    titletext = FontString {
    }
    statustext = FontString {
    }
    events = <table> {
    }
    frame = Frame {
    }
    sizer_s = Frame {
    }
    titlebg = Texture {
    }
    content = Frame {
    }
    localstatus = <table> {
    }
    }
    (*temporary) = <table> {
    sizer_se = Frame {
    }
    sizer_e = Frame {
    }
    userdata = <table> {
    }
    base = <table> {
    }
    type = "Frame"
    AceGUIWidgetVersion = 30
    children = <table> {
    }
    titletext = FontString {
    }
    statustext = FontString {
    }
    events = <table> {
    }
    frame = Frame {
    }
    sizer_s = Frame {
    }
    titlebg = Texture {
    }
    content = Frame {
    }
    localstatus = <table> {
    }
    }
    (*temporary) = "Paste"
    (*temporary) = " "
    (*temporary) = nil
    (*temporary) = Frame {
    height = 500
    width = 700
    BottomRightCorner = Texture {
    }
    Center = Texture {
    }
    RightEdge = Texture {
    }
    backdropInfo = <table> {
    }
    BottomEdge = Texture {
    }
    BottomLeftCorner = Texture {
    }
    obj = <table> {
    }
    TopEdge = Texture {
    }
    TopRightCorner = Texture {
    }
    TopLeftCorner = Texture {
    }
    LeftEdge = Texture {
    }
    }
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = <table> {
    sizer_se = Frame {
    }
    sizer_e = Frame {
    }
    userdata = <table> {
    }
    base = <table> {
    }
    type = "Frame"
    AceGUIWidgetVersion = 30
    children = <table> {
    }
    titletext = FontString {
    }
    statustext = FontString {
    }
    events = <table> {
    }
    frame = Frame {
    }
    sizer_s = Frame {
    }
    titlebg = Texture {
    }
    content = Frame {
    }
    localstatus = <table> {
    }
    }
    (*temporary) = "OnClose"
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = nil
    (*temporary) = "attempt to concatenate field 'version' (a nil value)"
    addon = <table> {
    modules = <table> {
    }
    defaultModuleLibraries = <table> {
    }
    wherefn = <table> {
    }
    name = "Paste"
    orderedModules = <table> {
    }
    db = <table> {
    }
    enabledState = true
    baseName = "Paste"
    defaultModuleState = true
    gui = <table> {
    }
    }
    AceGUI = <table> {
    objPools = <table> {
    }
    WidgetBase = <table> {
    }
    counts = <table> {
    }
    LayoutRegistry = <table> {
    }
    tooltip = AceGUITooltip {
    }
    WidgetRegistry = <table> {
    }
    WidgetVersions = <table> {
    }
    WidgetContainerBase = <table> {
    }
    }
    addonName = "Paste"
    settings = <table> {
    windowscale = 1
    editscale = 1
    debug = false
    shiftenter = false
    trimwhitespace = false
    stripempty = true
    minimap = <table> {
    }
    }
    L = <table> {
    }

  • houseofmabel posted a comment Aug 16, 2024

    Blizzard changes mean that any references to GetAddOnMetadata need to be changed to C_AddOns.GetAddOnMetadata.  There are four close together in core.lua, changing these fixed the errors for me.

    function addon:SetupVersion()
       local svnrev = 0
       local files = vars.svnrev
       files["X-Build"] = tonumber((C_AddOns.GetAddOnMetadata(addonName, "X-Build") or ""):match("%d+"))
       files["X-Revision"] = tonumber((C_AddOns.GetAddOnMetadata(addonName, "X-Revision") or ""):match("%d+"))
       for _,v in pairs(files) do -- determine highest file revision
         if v and v > svnrev then
           svnrev = v
         end
       end
       addon.revision = svnrev

       files["X-Curse-Packaged-Version"] = C_AddOns.GetAddOnMetadata(addonName, "X-Curse-Packaged-Version")
       files["Version"] = C_AddOns.GetAddOnMetadata(addonName, "Version")
       addon.version = files["X-Curse-Packaged-Version"] or files["Version"] or "@"
       if string.find(addon.version, "@") then -- dev copy uses "@.project-version.@"
          addon.version = "r"..svnrev
       end
    end
  • nauseous_heyrovsky89 posted a comment Aug 17, 2024

    Date: 2024-08-17 16:35:23
    ID: 1
    Error occured in: Global
    Count: 1
    Message: Interface/AddOns/Paste/core.lua line 224:
    attempt to call global 'GetAddOnMetadata' (a nil value)
    Debug:
    [string "@Interface/AddOns/Paste/core.lua"]:224: SetupVersion()
    [string "@Interface/AddOns/Paste/core.lua"]:244:
    Interface/AddOns/Paste/core.lua:242
    [string "=[C]"]: ?
    [string "@Interface/AddOns/HandyNotes/Libs/AceAddon-3.0/AceAddon-3.0.lua"]:66:
    ...AddOns/HandyNotes/Libs/AceAddon-3.0/AceAddon-3.0.lua:61
    [string "@Interface/AddOns/HandyNotes/Libs/AceAddon-3.0/AceAddon-3.0.lua"]:494: InitializeAddon()
    [string "@Interface/AddOns/HandyNotes/Libs/AceAddon-3.0/AceAddon-3.0.lua"]:619:
    ...AddOns/HandyNotes/Libs/AceAddon-3.0/AceAddon-3.0.lua:611
    Locals:
    self = <table> {
    modules = <table> {
    }
    defaultModuleLibraries = <table> {
    }
    wherefn = <table> {
    }
    name = "Paste"
    orderedModules = <table> {
    }
    db = <table> {
    }
    enabledState = true
    baseName = "Paste"
    defaultModuleState = true
    }
    svnrev = 0
    files = <table> {
    core.lua = 54
    }
    (*temporary) = nil
    (*temporary) = "Paste"
    (*temporary) = "X-Build"
    (*temporary) = "attempt to call global 'GetAddOnMetadata' (a nil value)"
    vars = <table> {
    svnrev = <table> {
    }
    L = <table> {
    }
    }
    addonName = "Paste"
    addon = <table> {
    modules = <table> {
    }
    defaultModuleLibraries = <table> {
    }
    wherefn = <table> {
    }
    name = "Paste"
    orderedModules = <table> {
    }
    db = <table> {
    }
    enabledState = true
    baseName = "Paste"
    defaultModuleState = true
    }

    AddOns:
    Swatter, v<%version%> (<%codename%>)
    WowheadLooter, v110002
    AddonFactory, v11.0.002
    Altoholic, v11.0.002
    Auctionator, v11.0.8
    Auctioneer, v11.x.BETA.3 (TheWarWithBlizzardAPIs)
    AuctioneerStatsOverTime, v11.x.BETA.3 (TheWarWithBlizzardAPIs)
    AuctioneerUtilDealFinder, v11.x.BETA.3 (TheWarWithBlizzardAPIs)
    AuctioneerUtilValuer, v11.x.BETA.3 (TheWarWithBlizzardAPIs)
    DataStore, v2024.08.14
    DataStoreAchievements, v2024.08.14
    DataStoreAgenda, v2024.08.14
    DataStoreAuctions, v2024.08.14
    DataStoreCharacters, v2024.08.14
    DataStoreContainers, v2024.08.14
    DataStoreCrafts, v2024.08.14
    DataStoreCurrencies, v2024.08.14
    DataStoreGarrisons, v2024.08.14
    DataStoreInventory, v2024.08.14
    DataStoreMails, v2024.08.14
    DataStorePets, v2024.08.14
    DataStoreQuests, v2024.08.14
    DataStoreReputations, v2024.08.14
    DataStoreSpells, v2024.08.14
    DataStoreStats, v2024.08.14
    DataStoreTalents, v2024.08.14
    DBMCore, v11.0.2
    DBMStatusBarTimers, v11.0.2
    DBMVPVEM, veeae112
    HandyNotes, vv1.6.20.3
    HandyNotesDragonflight, v63
    Paste, v1.4.10
    Stubby, v11.x.BETA.3 (TheWarWithBlizzardAPIs)
    TomTom, vv4.0.1-release
    BlizRuntimeLib v11.0.2.56162(US) <enUS>
    (ck=4a4)

     

  • skirtoo posted a comment Aug 18, 2024

    houseofmabel "Blizzard changes mean that any references to GetAddOnMetadata need to be changed to C_AddOns.GetAddOnMetadata.  There are four close together in core.lua, changing these fixed the errors for me."

    This worked for me as well. It was lines 224, 225, 233, and 234.

  • strykerjc posted a comment Aug 18, 2024

    @houseofmabel, thank you for this.  Changing those 4 lines did the trick for me as well.

     


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