-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Deadlock on Windows with helm-do-ag #188
Comments
Which ag do you use ? cygwin ? |
I've compiled ag from sources using mingw. |
Thanks And could you show me your configuration of I don't have Windows machine now. I'll check this issue next week. |
Here it is: (when (executable-find "ag")
(defun jmb/helm-do-ag-at-project-root-or-folder ()
"Run `helm-do-ag-project-root' or `helm-do-ag' depending on
whether a project root is found or not."
(interactive)
(if (helm-ag--project-root)
(helm-do-ag-project-root)
(helm-do-ag)))
(use-package
helm-ag
:commands helm-ag
:init
(eval-after-load 'helm
'(define-key helm-command-prefix (kbd "s")
'jmb/helm-do-ag-at-project-root-or-folder)))) You can see the rest of the helm configuration here. |
Hmm, I cannot reproduce this issue. |
Just in case, here is the ag binary I've compiled: https://www.dropbox.com/s/qi6gj7om4x0nv21/ag.zip?dl=0 Some extra information which may be relevant:
|
I am experiencing the same issue. It occurs frequently. One difference in my experience is that the ag.exe process is still running in the task manager, Software versions
NOTE: I installed Ag & Emacs via Chocolatey |
Hmm, this is windows specific issue and I suppose it is necessary to fix helm or Emacs core for resolving this issue. |
Yep it's specific to how Microsoft Windows kills processes : http://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html#Killing-subprocesses . Those freezes aren't usually reproducible on linux. Terminating In trying to deal with this, I tried to slow down helm's interactiveness by increasing |
I have noticed that the ag process is not always visible in the task manager when these freezes occur. |
I'm also seeing these kind of hangs
|
I'm still getting this issue. I'm wondering if anyone has found a workaround? |
Same here as well. |
I recently use Windows machine. However I cannot reproduce this issue yet. Please tell me how to reproduce this issue in more detail.
|
I am experiencing a hang on a macOS machine. It just started when I upgraded to the new MacBook Pro with Touch Bar. I am using version 26.0.50 of Emacs. |
same issue and platform here |
how do we go about solving this? I'm inexperienced with debugging emacs / elisp, can anyone provide pointers? |
I managed to get this stable on Windows by bumping a few delays up: (setq helm-input-idle-delay 0.1) I guess it's due to the crappy interop on Windows, but didn't dig further |
This is probably a good idea performance-wise since it limits the number of collection updates when the user is typing. However, the main reason for this change is to work around an Emacs freeze on Windows when the dynamic collection is generated by an external command (see for example this bug in helm-ag which also affects counsel-ag and similar commands: emacsorphanage/helm-ag#188). Related to abo-abo#1218 (but only applies for dynamic collections, where the difference is really noticeable). Helps with abo-abo#1198 and abo-abo#786.
This is probably a good idea performance-wise since it limits the number of collection updates when the user is typing. However, the main reason for this change is to work around an Emacs freeze on Windows when the dynamic collection is generated by an external command (see for example this bug in helm-ag which also affects counsel-ag and similar commands: emacsorphanage/helm-ag#188). Related to #1218 (but only applies for dynamic collections, where the difference is really noticeable). Helps with #1198 and #786. Fixes #1237
I'm experiencing random Emacs freezes when using
helm-do-ag
(orhelm-do-ag-project-root
) on Windows.Steps to reproduce
M-x
helm-do-ag
--ignore
options)Note that when Emacs is frozen, there is no
ag
process in the windows process manager.Software versions
The text was updated successfully, but these errors were encountered: