Ketho / vscode-wow-api

VS Code extension for World of Warcraft AddOns
https://marketplace.visualstudio.com/items?itemName=ketho.wow-api
MIT License
155 stars 33 forks source link

InterfaceOptionsFrame_OpenToCategory undefined global #114

Closed filliph closed 1 year ago

filliph commented 1 year ago
Undefined global `InterfaceOptionsFrame_OpenToCategory`.
[{
    "resource": "/c:/Games/World of Warcraft/_retail_/Interface/AddOns/ItemUpgradeTip/ItemUpgradeTip.lua",
    "owner": "_generated_diagnostic_collection_name_#3",
    "code": "undefined-global",
    "severity": 4,
    "message": "Undefined global `InterfaceOptionsFrame_OpenToCategory`.",
    "source": "Lua Diagnostics.",
    "startLineNumber": 77,
    "startColumn": 13,
    "endLineNumber": 77,
    "endColumn": 49
}]
Ketho commented 1 year ago

That's weird, the extension should have automatically marked it as a global, at least with v0.10.11

filliph commented 1 year ago

I currently have the following warnings in my project (ItemUpgradeTip):

Undefined global `BattlePetToolTip_ShowLink`
Undefined global `BattlePetTooltip`
Undefined global `ButtonFrameTemplate_HideButtonBar`
Undefined global `ButtonFrameTemplate_HidePortrait`
Undefined global `CallMethodOnNearestAncestor`
Undefined global `ChatEdit_InsertLink`
Undefined global `CreateIndexRangeDataProvider`
Undefined global `CreateScrollBoxListLinearView`
Undefined global `CreateTableBuilder`
Undefined global `GameTooltip_AddBlankLineToTooltip`
Undefined global `GameTooltip_AddColoredLine`
Undefined global `InterfaceOptionsFrame_OpenToCategory`
Undefined global `PanelTemplates_DeselectTab`
Undefined global `PanelTemplates_SetNumTabs`
Undefined global `PanelTemplates_SetTab`
Undefined global `PanelTemplates_TabResize`
Undefined global `ScrollUtil`
Undefined global `TableBuilderCellMixin`
Undefined global `TableBuilderElementMixin`
Undefined global `UISpecialFrames`

"Lua.diagnostics.globals" array in settings.json does have some entries, does this prevent the extension's defined globals from functioning?

If not, is there anything else I can do to help debug this? If you'd prefer, we can connect on Discord for some live debugging, just let me know and I'll DM you 🙂

Ketho commented 1 year ago

Okay just DM me on discord because I have no idea why it's not marking them as global for you

Ketho commented 1 year ago

Yeah after talking on Discord the extension doesn't have full coverage on FrameXML stuff, it currently mostly just marks them as global instead of annotating