WeakAuras

WeakAuras

200M Downloads

Icon Info/Texture Info running without Trigger returning true.

asaka-wa opened this issue ยท 1 comments

commented

Description

Unsure if this is intended behaviour but it's different from before 4.1.0.

I had previously been able to rely on "Info" code blocks not being run if the trigger function didn't return true, and not nil-check those functions thoroughly. After 4.1.0 they are run, at least when selected in config.

WeakAuras Version

4.1.2

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

  • Yes
  • No

Lua Error

1x Lua error in aura 'My Raid Mark 2': Texture Function
WeakAuras Version: Dev
Aura Version: 1.0.2
[string "return function()..."]:2: attempt to concatenate a nil value
[string "return function()
return "\TargetingFrame\UI-RaidTargetingIcon_"..GetRaidTargetIndex("player")
end"]:2: in function <[string "return function()..."]:1>
[string "=[C]"]: in function xpcall' [string "@WeakAuras\GenericTrigger.lua"]:405: in function <WeakAuras\GenericTrigger.lua:401> [string "@WeakAuras\GenericTrigger.lua"]:502: in function ActivateEvent'
[string "@WeakAuras\GenericTrigger.lua"]:615: in function <WeakAuras\GenericTrigger.lua:537>
[string "@WeakAuras\GenericTrigger.lua"]:805: in function CreateFakeStates' [string "@WeakAuras\WeakAuras-@[email protected]"]:3926: in function UpdateFakeStatesFor'
[string "@WeakAuras\WeakAuras-@[email protected]"]:3902: in function FakeStatesFor' [string "@WeakAurasOptions\AceGUI-Widgets\AceGUIWidget-WeakAurasDisplayButton.lua"]:1448: in function SyncVisibility'
[string "@WeakAurasOptions\WeakAurasOptions-@[email protected]"]:814: in function <WeakAurasOptions\WeakAurasOptions.lua:771>
[string "=[C]"]: in function ShowOptions' [string "@WeakAurasOptions\WeakAurasOptions-@[email protected]"]:612: in function <WeakAurasOptions\WeakAurasOptions.lua:586> [string "=[C]"]: in function ToggleOptions'
[string "@WeakAuras\WeakAuras-@[email protected]"]:150: in function <WeakAuras\WeakAuras.lua:146>
[string "=[C]"]: in function `OpenOptions'
[string "WEAKAURASTOGGLE"]:1: in function <[string "WEAKAURASTOGGLE"]:1>

Reproduction Steps

See basic example in linked A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wjF3l9bSiUqcBpOvXBlRcnt5EnLZQQA)8V(W87AYrp8MGI5nmw5GTubfnw9xavvWFGhPJ3DvXUcoN)gZzughpB(BYDYDZP7M7Hln(8inu9oaM3y(FF()(d

commented

These functions were run always, but the lua error from them is ignored if the option for that is enabled on the information tab.