-
Notifications
You must be signed in to change notification settings - Fork 347
Flymake creates a ton of file handles and processes #1704
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
Comments
I haven't use the built-in flymake support tbh, so I don't know if there's a mechanism for throttling that checking, or aborting overlapping checks. I use |
It looks like it can be reproduced easily and is not specific to my environment. I checked with a clean docker setup. Also it doesn't matter if it's built-in or elpa Will this be investigated? I've seen some similar reported issues and it seems like the consensus was pretty much this:
@purcell I used
(eval-after-load 'haskell-mode
'(setq flymake-allowed-file-name-masks
(remove '("\\.l?hs\\'" haskell-flymake-init)
flymake-allowed-file-name-masks))) |
There are no very active maintainers here, and I dip in as and when I have a little time. If you would like this to be investigated, your help would be appreciated. In theory the |
I found that running 'M-x haskell-check' once in the buffer solved the issue. Seemingly in (defun haskell-flymake-init ()
"Flymake init function for Haskell."
(let ((checker-elts (and haskell-saved-check-command
(split-string haskell-saved-check-command))))
(list (car checker-elts)
(append (cdr checker-elts)
(list (haskell-flymake-create-temp-buffer-copy
'flymake-create-temp-inplace)))))) 'haskell-saved-check-command' is usually null, unless 'haskell-check' is run. Maybe the '(and haskell-saved-check-command' clause should be moved outside the 'let', so that flymake-init will return null instead? |
Since I have added the fix which @harinath reported, I'll go ahead and close this. |
With
emacs -q
when editing inhaskell-mode
and havingflymake-mode
enabled, flymake frequently creates a new process and a handle for the temporary file, quickly exhausting the limit for open files.It seems to create a new process whenever a newline is inserted or file is saved.
Can anyone reproduce it or is it just me?
The text was updated successfully, but these errors were encountered: