-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
nrepl-server-filter called, even though process buffer is dead #1578
Comments
I'm never quite sure when it comes to Emacs+Windows+Subprocesses, so it is possible, and your analysis sounds reasonable.
If we are sure that this is happening (and I tend to agree), then yes, we should add defensive code (with comments explaining why). |
Thanks. I'll try out some defensive code on Monday, when I'm back in a windows environment. |
Thanks. Feel free to open a PR when you have it. Should be a simple of matter of wrapping that code in a
|
Yes I'll do it tomorrow |
[Fix #1578] Add a guard for missing process-buffer
Trying to debug #390. This may or may not be related:
I often see an error when I kill CIDER in windows using
cider-quit
:This happens inside of
nrepl-server-filter
, specifically the line:TBH my knowledge of process buffers and sentinels etc is a bit naive. But it seems to me that CIDER kills the process buffer, yet this server-filter is still hanging around to intercept output from the nREPL process which is still on-going, in particular the output "Terminate batch job (Y/N)", which always happens on windows when you try to exit from batch jobs (.bat files).
So my question is, a) can you help me understand how this nrepl-server-filter is being called for a process with a dead corresponding process buffer, and b) could CIDER have some defensive code? I.e. don't call
with-current-buffer
on a potentially dead buffer.The text was updated successfully, but these errors were encountered: