dajva / rg.el

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

Issue running on Windows #182

Open julian-hoch opened 3 days ago

julian-hoch commented 3 days ago

Hi, rg runs fine on my Linux machine, but on my Windows machine I run into an issue. For some reason, the command seems to break after the first " (quotation) mark, and I get this error:

-*- mode: rg; default-directory: "c:/Temp/" -*-
rg started at Mon Nov 18 15:10:24

"c:/ProgramData/chocolatey/bin/rg.exe" --color=always --colors=match:fg:red --colors=path:fg:magenta --colors=line:fg:green --colors=column:none -n --column --heading --no-config --fixed-strings -e "Padding" .

warning: extra args ignored after '-e'

rg: ripgrep requires at least one pattern to execute a search

rg exited abnormally with code 2 at Mon Nov 18 15:10:25

If I run this in the command line (without the quotation mark around the program binary) that works fine. It seems it stops parsing the command after the " after -e. Any ideas?

dajva commented 3 days ago

Sorry, I don't know Windows and no official support for it I am afraid. Do you know where the quotation mark comes from? shell-quote-argument perhaps? If it's not that you may get away with customizing rg-executable but you would probably have to debug a bit yourself.

I think there are some windows users of this package so seems odd that such an breaking issue would have been unnoticed.