While playing around with multiple threads in the context of a plugin, I’ve come across the following behavior in the console output panel :
- prints from plugin_loaded, plugin_unloaded come in the expected order
- prints from a different thread come several seconds after they have been “printed”
Note : this doesn’t happen when “printing to a file” (aka correct order …)
So does anyone know why this happens ? or in other words : under which condition can I trust the order in the console output panel ?
For reproducibility, I’m on MacOS with sublime 4107.
I managed to trace this from sys.stdout
to sublime._LogWriter
and finally to sublime_api.log_message
but got stuck there
thanks for your time
Regards