When I search for a pattern ag exits abnormally with signal 1 (I can see that by just printing the event in the process sentinel).
It should search the pattern I typed.
I am seeing this strange behaviour after upgrading to emacs 29.1 where when I use a list with string literals ag works fine, but as soon as I try to apply 'start-file-process to (cmd-args (helm-ag--construct-do-ag-command helm-pattern)) it stops working and ag exits with signal 1.
I can take the cmd-args and put them into the code like so:
I've tried explicitly setting the shell to bash, tried using (format "%s" helm-pattern), but neither helped. I'll revert to emacs 28.2 for the time being since it works as expected there.
When I search for a pattern ag exits abnormally with signal 1 (I can see that by just printing the event in the process sentinel).
It should search the pattern I typed.
I am seeing this strange behaviour after upgrading to emacs 29.1 where when I use a list with string literals ag works fine, but as soon as I try to apply 'start-file-process to
(cmd-args (helm-ag--construct-do-ag-command helm-pattern))
it stops working and ag exits with signal 1.I can take the cmd-args and put them into the code like so:
and it works, but as soon as I use helm-pattern instead of hardcoding the pattern it stops working.
So, cmd-args contains '("ag" "--no-color" "--nogroup" "helm") and ag fails, but if I hardcode that same list in the code it works.
Any ideas what could be the problem?