-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
5.18.1 is running ScanEvents out of order #5589
Comments
that is indeed a new behaviour. if you have a reason why it should differently you have to show a usecase. |
There never was any gurantee on how exactly WeakAuras.ScanEvents behaves. It has now changed behaviour and might again in the future. |
If you have a specific use case that can't be modified to handle asynchronous handling of ScanEvents, I'd like to hear it. |
In the Discord you guys keep advising us to avoid the use of globals and to use ScanEvents instead, if we wish to send stuff between different WeakAuras. So if I use these to request a list from another WA for example, I need to receive it before I can run the rest of my code. I saw in the discussion around the "Click() actions" ticket that ScanEvents doesn't continue the hardware event chain. I realize I'm not making a strong case here, but I'm not a programmer by trade and I imagine many authors aren't either. I would have never tried learning Lua if it wasn't for WeakAuras, because it was so much more convenient to get into than trying to write an AddOn. Thanks for your work regardless and Happy Holidays! |
The reason for that was someone sending a ScanEvents to itself, which then made the aura's function running recursively, and the called functions would modify the states in a way that would confuse the functions calling them. Queueing prevents the inner functions from changing the states in a way the outer functions wouldn't expect. |
Is there an existing issue for this?
Description
Hey,
this is an issue introduced in 5.18.1 and it is working as expected in 5.18.0.
It used to be that code called via a ScanEvent would be executed before the lines that followed it.
This is no longer the case in 5.18.1.
I hope the attached image explains the issue. I've also attached the import code to this test WA.
I hope this is a bug and not the way it is intended to work in the future :|
WeakAuras Version
5.18.1
World of Warcraft Flavor
Retail (Default)
World of Warcraft Region
EU
Tested with only WeakAuras
I got this issue with only WeakAuras enabled
Lua Error
No response
Reproduction Steps
Last Good Version
5.18.0
Screenshots
Export String
Bisector Report
No response
The text was updated successfully, but these errors were encountered: