Issue
I'm a bit baffled by this one. On Windows, when I ask aider-ce to demonstrate use of the grep tool, I get a response like below:
⚙️ Executing rg: 'C:\Users\username\AppData\Local\Microsoft\WinGet\Packages\BurntSushi.ripgrep.MSVC_Microsoft.Winget.Source_8wekyb3d8bbwe\ripgrep-14.1.1-x86_64-pc-windows-msvc\rg.EXE' -n
-B 1 -A 1 -F -g '*.py' show_status 'C:\Users\username\projects\codebase\src'
The filename, directory name, or volume label syntax is incorrect.
What is odd is that I can take the exact command and run it directly and it works just fine. There's nothing wrong with the path at all. This I think may have something to do with the way the search directory path is serialized using str and passed to the command runner. If you pass a pathlib.WindowsPath through str, it escapes the backslashes, and I tried manually passing double-backslashes into the ripgrep and it handled it just fine.
Version and model info
Aider v0.87.13
GPT 5
Windows 11
Issue
I'm a bit baffled by this one. On Windows, when I ask aider-ce to demonstrate use of the grep tool, I get a response like below:
What is odd is that I can take the exact command and run it directly and it works just fine. There's nothing wrong with the path at all. This I think may have something to do with the way the search directory path is serialized using
strand passed to the command runner. If you pass apathlib.WindowsPaththroughstr, it escapes the backslashes, and I tried manually passing double-backslashes into the ripgrep and it handled it just fine.Version and model info
Aider v0.87.13
GPT 5
Windows 11