-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
EventError fired after suspended Screen resumes #480
Comments
It panics on
|
What version of ArchLinux? |
Wait, did the terminal close? (E.g. you did this from a subshell?) I could see that being a problem. I'm not sure how best to fix this -- because we have to have a way to report this problem to the calling application. But clearly panic() isn't ideal. |
Ok , this isn't specific to Arch. I've reproduced in WSL. |
So the problem is when we suspend, we "close" the channel and rely on a time out to wake us up, but we also send a bogus error upstream. We can conditionalize sending the error upstream on t.running. |
Please have a try with the branch in fix480 -- I suspect this will address the problem. |
It works on macOS, thank you. |
It works on Arch now too. Thanks! |
This change actually created a worse regression -- as some activity to wake and exit the poller is required, and this prevents that from happening. This causes exiting mouse.go to hang until another key is pressed, and suspending also is not immediate. :( |
I'd be grateful if some macOS user could test the fix for the regression -- see PR #490 |
I just tried the code above on macOS with 0f66ee8 and it worked as expected. |
In the past, in
tview
, I hadn't handled theEventError
event. But as one user reported, this gets fired when the user closes the terminal when the application is still running so it should be handled.Now it turns out I'm getting
EventError
after a suspended screen resumes. Here's some code reproduce this:Press s to suspend the screen and start
vim
. When you exitvim
, the application panics with "EOF" after theEventError
is handled. (It's notvim
, this happens with any command.)Any idea why this happens?
The text was updated successfully, but these errors were encountered: