Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InterfaceOptionsFrame_OpenToCategory undefined global #114

Closed
filliph opened this issue Nov 7, 2023 · 4 comments
Closed

InterfaceOptionsFrame_OpenToCategory undefined global #114

filliph opened this issue Nov 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@filliph
Copy link

filliph commented Nov 7, 2023

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 Ketho added the bug Something isn't working label Nov 8, 2023
@Ketho
Copy link
Owner

Ketho commented Nov 16, 2023

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

@filliph
Copy link
Author

filliph commented Nov 17, 2023

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
Copy link
Owner

Ketho commented Nov 17, 2023

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

@Ketho
Copy link
Owner

Ketho commented Nov 18, 2023

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

@Ketho Ketho closed this as completed Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants