Open stardiviner opened 2 years ago
Does this happen for every project or for some specific project? Does it happens with grep/ag as well or is something that happens only for projectile-rg
?
It happens on specific project. When I in small project (less files), it is fast. When I'm in very large project (I have a very big Org/ directory contains about N * 10000 files). I also installed ag and tried command projectile-ag
. It's same slow and suspend too.
Same here, with a (old, huge) SVN repo: the "svn list -R ." command is super slow, making Emacs wait. Is there a way to disable this behaviour?
@fpatz You can use bellowing code to disable this advice function temporary.
(defun my/projectile-remove-compilation-find-file-advice ()
"Fix `compilation-mode' inherited modes caused suspend on opening `compile-goto-error', `next-error' etc targets."
(advice-remove 'compilation-find-file #'compilation-find-file-projectile-find-compilation-buffer))
(add-hook 'projectile-mode-hook #'my/projectile-remove-compilation-find-file-advice)
Expected behavior
It should be quickly open target file.
Actual behavior
projectile-files-via-ext-command' caused Emacs suspend on
compile-goto-error' for a long time until I have to press[C-g]
many times to quit process.Steps to reproduce the problem
I use extension
rg
commandrg
to search a string. Then in the*rg*
result buffer, I press[Enter]
key (which correspond to commandcompile-goto-error
, then Emacs suspend for a long time.Profiler report
Memory report:
CPU report:
Environment & Version information
Projectile version information
Include here the version string displayed by
M-x projectile-version
. Here's an example:Emacs version
E.g. 24.5 (use C-h C-a to see it)
Operating system
macOS Big Sur