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

unable to find mixin (ColorMixin) - TWW Bug #5191

Closed
1 task done
Peter-Day opened this issue Jun 26, 2024 · 6 comments
Closed
1 task done

unable to find mixin (ColorMixin) - TWW Bug #5191

Peter-Day opened this issue Jun 26, 2024 · 6 comments
Labels
🐛 Bug This is a problem with WeakAuras.

Comments

@Peter-Day
Copy link

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

Found someone else who had a similar issue in the pull request thread for the initial TWW alpha version, but I realized this bug might have gotten lost there, so posting a separate bug report for it.

Some wow api functions, when called inside of a weakaura script, will give the error in the title: "unable to find mixin (ColorMixin)"

I found this bug trying to use C_ChallengeMode.GetKeystoneLevelRarityColor. The other comment was using C_TooltipInfo.GetHyperlink. See: #5071 (comment)

Of course, there are likely many others.

WeakAuras Version

WeakAuras 5.14.1

World of Warcraft Flavor

Beta (WoW 11.0)

World of Warcraft Region

US/NA

Tested with only WeakAuras

I got this issue with only WeakAuras enabled

Lua Error

12x Lua error in aura 'New 2': Custom Text Function
WeakAuras Version: 5.14.1
[string "return "]:4: unable to find mixin (ColorMixin)
[string "=[C]"]: in function `GetKeystoneLevelRarityColor'
[string "return "]:4: in function <[string "return "]:3>
[string "=[C]"]: in function `xpcall'
[string "@WeakAuras/WeakAuras.lua"]:4862: in function `RunCustomTextFunc'
[string "@WeakAuras/SubRegionTypes/SubText.lua"]:330: in function `?'
[string "@WeakAuras/SubscribableObject.lua"]:94: in function `Notify'
[string "@WeakAuras/WeakAuras.lua"]:4600: in function <WeakAuras/WeakAuras.lua:4595>
[string "@WeakAuras/WeakAuras.lua"]:4687: in function <WeakAuras/WeakAuras.lua:4653>
[string "@WeakAuras/WeakAuras.lua"]:4797: in function `UpdatedTriggerState'
[string "@WeakAuras/WeakAuras.lua"]:4517: in function `UpdateFakeStatesFor'
[string "@WeakAuras/WeakAuras.lua"]:4490: in function `FakeStatesFor'
[string "@WeakAurasOptions/AceGUI-Widgets/AceGUIWidget-WeakAurasDisplayButton.lua"]:1539: in function `SyncVisibility'
[string "@WeakAurasOptions/WeakAurasOptions.lua"]:867: in function `ShowOptions'
[string "@WeakAurasOptions/WeakAurasOptions.lua"]:612: in function `ToggleOptions'
[string "@WeakAuras/WeakAuras.lua"]:158: in function `OpenOptions'
[string "@WeakAuras/WeakAuras.lua"]:240: in function `?'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5440: in function <Blizzard_ChatFrameBase/Mainline/ChatFrame.lua:5386>
[string "=[C]"]: in function `ChatEdit_ParseText'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5092: in function `ChatEdit_SendText'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5128: in function <Blizzard_ChatFrameBase/Mainline/ChatFrame.lua:5124>
[string "=[C]"]: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:140_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:140_OnEnterPressed"]:1>

Reproduction Steps

Create a WeakAura. In the OnInit, add

local test = C_ChallengeMode.GetKeystoneLevelRarityColor(5)

Last Good Version

No response

Screenshots

No response

Export String

!WA:2!vwvZQnYrqylRaByieSvYkYc7bXczXoymznXlHabIgTsRDISKZOzJ9sii3Zm1OPJh19KU7rYY3wDiSN1LCxNtGGEbc4NGbrEc8H8a4xGnv3ZiV)qUK5Guvvxt1FFFD11uQvLHvcQe8YTNt95SE8uHpC)1wssvrCr3efLZKwlib)CQubbhrUy95(OjFOlCHkX1YkmL5RZARTTQHpcqLky1uCPsqzd2Qr)grK4yGnaoIha7(uq9DWeSamOnmcIDicQAsdEmxS1(BVTfWcet6ggkb1bFtVx9Q1WNfeMpIMJ5uMYRrZoUnDw6Z5Xb8XSEJPjWzxTYTzWaisqmis(yhPIiuw2ugv9Wzb8(5qpYl))KVubs1pU3pv7RR9)dNEHyjLrwtrsoyaiKF4dffM)68aWlnm0DscioOz7JB9S22k0XHKki7nvMaXXhgiTUwM6HvMP6HztVyr)g1752VNBDhx7ueWEjXKjG420owayAo9oUz72oMiEhaKyvKdJmeKwZszfqWkztTcmcCZ91e63x7gu9abJe)diEr553UorWhiaPm)u)ZU)ARptcXHgDo79rEij4HjrbrZrq4ad0I6xvnR6s01J4F(abpLf8Y7MurHDd9Lre8m408tVsj3Ze08tixmKGjuyyZqzD2Tl)Gp1pzJ3Ocgv(BlvQu5RZJUcu21FMB3KpYee7q5yPO(Nqdur21r3BY3l6fqGj4lwM3488ceDLzDDNmnCcsqbxHKt3iB3PBNMzvfiV05m3KOVbgLXNzfKGPs2OLGEzTVpLeGcdPMR7BX9v70stSXCrWjcsY0tkmYbWiQK6fdNvW53O5ozZd70PPtF7UUUDpY5WNEG7)Hk6xyKTZYBXvp6LW9kO7PVfi0RA6f7(m32h2P5)SCqmFClb8lPaZFYXV3NV7E7NtD9cxP)5j6tD8WU8uTN(Tx6LQW7cDhbcSRCUoCB8UIk6Ul02R49mTtJB1TRsLWtxfjYK5kWzRDIm53ZNedLnWYnI6FodBjlBwPnfT30SB2OecIiViGois9c7yojOLTePDvNHPXkQLnEZYVA2ZTC8JjsP2YtHvMP0MjBGyPEXymZGSOfHc8ItpL(GS87UoLfnxy64103wpCuCXQ5sV8VmZLMUAQZzZim6qJK94SpOvw1SDUcisDTnI0DwguOO91tcesalxGCQohD5Z2XEiHYmVygCNSWSbzrO5MVBKBohGK6AIQC01lY51nPjF8k4O7OFcvsWMSaCwhNfshynxX9hLFZ)tk9h)5dOboDGX12ZzS5QssfK)nkkaoWalpC2n5nuT06KgNE9A40SzhhsCseP8EP0GfI2dzIUE0UhiX596naIE9NlOS1TVKZhwAUMW0IVMqz5nWONvg5SksV939rFXUpQYO)(0)n

Bisector Report

No response

@Peter-Day Peter-Day added the 🐛 Bug This is a problem with WeakAuras. label Jun 26, 2024
@github-actions github-actions bot added the ⏱ Awaiting Response This ticket hasn't been triaged yet. label Jun 26, 2024
@emptyrivers
Copy link
Contributor

emptyrivers commented Jun 26, 2024

(some notes for whoever picks this up first: https://discord.com/channels/327414731654692866/327414731654692866/1255413120604700735 TL;DR some silly changes from blizzard mean we need to manually add ColorMixin to the custom code fenv in a rawgetable way)

@emptyrivers emptyrivers removed the ⏱ Awaiting Response This ticket hasn't been triaged yet. label Jun 26, 2024
@InfusOnWoW
Copy link
Contributor

This should work now, we've added a workaround for blizzard's bug to the latest alpha.

@InfusOnWoW
Copy link
Contributor

Also reported to blizzard via
Stanzilla/WoWUIBugs#589

Though I have very little hope that they'll fix it.

@hambold
Copy link

hambold commented Jun 29, 2024

Thank you for adding this workaround! Everything's working fine now.

@TomCats
Copy link

TomCats commented Jul 23, 2024

What was the work-around? I'm having the same issue with Vector2DMixin not being found when calling C_AreaPoiInfo.GetAreaPOIInfo() after setfenv was used. I had to add Vector2DMixin directly to function environment but seems counterproductive as these types of problems can pop up at any time with any function and would be difficult to notice without user reports.

@InfusOnWoW
Copy link
Contributor

See the linked pull requests for my best guess on what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug This is a problem with WeakAuras.
Projects
None yet
Development

No branches or pull requests

5 participants