-
Notifications
You must be signed in to change notification settings - Fork 33
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
Adding blacken_mode
as a python-mode-hook eventually runs out of file handles.
#27
Comments
In order to debug this we will need the error message you were seeing. I am not convinced that blacken is the culprit here. |
I'm on holiday now so don't have access to the machine till I get back! I had never seen this issue before; I installed blacken-mode and I got this multiple times a day; uninstalled blacken-mode after this bug and never saw it again. IIRC I wasn't getting any error message that would be useful except an Aquamacs "Cannot open file". I'll try this again when I get home. Sorry, I understand full well that such reports are frustrating and hard to act upon. :-/ |
Try setting |
I've had this happen to me, though I don't have the error message handy; it's essentially "Too many open files", and a process list showed a very large number tied to the Also see this post on Reddit which has an example process list, essentially the same as what I was seeing. Example process list:
Reproduction steps:
Expectation: |
I had a similar occurrence yesterday after adding the same line mentioned above. |
I set the black package so it blacks on save:
That worked fine for about a day, and then my emacs refused to open new files or save existing files after that, until I restart!
(Lucky I am constantly saving my buffers so I lost perhaps ten keystrokes... :-) )
It happened three times before I figured out that it was that one line above. I commented it out and restarted and it's days later and I've seen no issues.
I should have written down the error messages but I was in a hurry - also, I didn't realize it was the black package until I looked at what changes I'd made to my .emacsrc.
The message seemed to me to be implying that emacs had run out of file handles, so my guess is that the black package is somehow leaking file handles.
I'm on Aquamacs for MacOS, a GUI wrapper for emacs. I've been using it for a decade or and the compatibility has been extremely good.
Aquamacs 3.4 GNU Emacs 25.3.50.1 (x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F27)) dated 2018-07-27 rev. 53e2a47a8fbbfce9586fd76891478ac5851ac3b5
The text was updated successfully, but these errors were encountered: