dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
470 stars 38 forks source link

Running `rg` commands don't give any results #98

Closed kirill-gerasimenko closed 3 years ago

kirill-gerasimenko commented 3 years ago

Hi,

I'm using emacs version 27.1.50 on Pop_OS linux. rg version is 11.0.2. rg config is simple - I just enable rg-menu. When I invoke any rg.el command, providing necessary arguments - I get no results in the output *rg* buffer. No errors or anything unusuall, but there are no results. If I use the command (that is printed in *rg* buffer and run it from the bash in the target directory - I get plenty of results as it should be. For example: image

How would I troubleshoot such issue?

Thanks!

dajva commented 3 years ago

Hmm, that seems weird. Since the ripgrep binary doesn't give any output I would guess that it something in the emacs environment that is to blame. I would try running the same command through emacs grep (M-x grep) to see if you get any output. If not, that would rule out this package. You could also try to add the target directory to the end of the command line (also through emacs grep) to rule out problems with default-diretory.

kirill-gerasimenko commented 3 years ago

I've found the issue.

(setq process-connection-type 'null) - I had this set to null in my config 🤷‍♂️