On 17/03/2012 03:17, Matthew Brush wrote:
On 12-03-16 09:09 AM, Nick Treleaven wrote:
On 16/03/2012 12:01, Fischer, RonaldX O wrote:
The only grep.exe in my PATH is the Cygwin implementation of grep. This should work well, and even if there is a problem with my grep, I wonder why I don't see any error message.
That is likely the problem. GLib's spawning on Windows doesn't work with everything. Try using grep from:
I thought Geany used CreateProcess() or some such from the win32 API for this stuff? If not, maybe we could switch this code to use utils_spawn* so that it does?
Find in Files uses GLib's async spawn, which doesn't work for some tools IME.
Build/run commands use a synchronous Windows call which works but is not asynchronous as it is supposed to be and so adds complexity to the code.
We really need an asynchronous spawn that works properly on Windows. We could make FIF use the synchronous Windows spawn code, causing a delay on large directories/recursion, but again the code to do this would be messy as sync vs async are fundamentally different.
Regards, Nick