randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.37k stars 83 forks source link

MANY resize events, causes Terminus to be unusable #351

Open zachsiegel-capsida opened 2 years ago

zachsiegel-capsida commented 2 years ago

Every few days a Terminus window starts immediately un-selecting text I've selected, and immediately scrolling me to the bottom of the window when I scroll up.

When this happens, usually re-running my build (with the tag argument so the Terminus window gets replaced) does NOT seem to help, and the issue goes on happening. What DOES seem to help is manually closing the tab and running the script again. So, I don't think it's strictly an issue with whatever I'm running inside the Terminus tab (which is usually running a Python script with the -i "interactive" flag, for what it's worth), and has something to do with a Terminus bug.

Today this was happening and I added the setting "debug" : true, and I noticed from the console output that the issue seems to be many "resize" events occurring, maybe 5 per second.

I can do some more testing and debugging, but I don't know where to begin. I would be glad to be a partner in helping to resolve this issue but could use guidance on what to futz with (I tried editing some of the Terminus package's .py files that contain references to "resize" with no immediate success).

Thank you!

randy3k commented 2 years ago

If possible, could you share the debug log for me to diagnosing the issue? It is a bit difficult to pinpoint what's going on there.