Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#671 Find in files, error with trailing \

open
nobody
None
5
2014-02-13
2011-03-20
Anonymous
No

Windows 7. I get the following error if I try to find in files using a directory and the directory ends with a \

Geany: Geany 0.20, English_United States.1252
Geany: GTK 2.16.6, GLib 2.20.5, GIO, built-in regex
Geany: System data dir: C:\Program Files\Geany\data
Geany: User config dir: C:\Users\Karl\AppData\Roaming\geany
Geany: Added filetype Genie (51).
Geany: Loaded: C:\Program Files\Geany\lib\filebrowser.dll (File Browser)
Geany: Loaded: C:\Program Files\Geany\lib\htmlchars.dll (HTML Characters)
Geany: Loaded: C:\Program Files\Geany\lib\pretty-printer.dll (XML PrettyPrinte
r)
Geany: C:\Program Files\Geany\Copying.txt : None (UTF-8)
calling C:\Program Files\Geany\bin\gspawn-win32-helper-console.exe with argv:

argv[0]: "C:\Program Files\Geany\bin\gspawn-win32-helper-console.exe"

argv[1]: 10

argv[2]: 11

argv[3]: z

argv[4]: 6

argv[5]: 8

argv[6]: "C:\Program Files\Geany\"

argv[7]: y

argv[8]: -

argv[9]: -

argv[10]: "C:\Program Files\GnuWin32\bin\grep.exe"

argv[11]: -nHIiF

argv[12]: --

argv[13]: blah

argv[14]: Authors.txt

argv[15]: bin

argv[16]: Changelog.txt

argv[17]: Copying.txt

argv[18]: data

argv[19]: doc

argv[20]: Documentation.url

argv[21]: etc

argv[22]: Geany.lnk

argv[23]: lib

argv[24]: News.txt

argv[25]: Readme.txt

argv[26]: ReadMe.Windows.txt

argv[27]: share

argv[28]: Thanks.txt

argv[29]: Todo.txt

argv[30]: uninst-plugins.exe

argv[31]: uninst.exe

argv[32]: Website.url

argv[33]: NULL

gspawn-win32.c:read_helper_report: read 8...

**
ERROR:gspawn-win32-helper.c:176:main: assertion failed: (__argc >= ARG_COUNT)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
...got 0 bytes

Geany: search_find_in_files: g_spawn_async_with_pipes() failed: Failed to read f
rom child pipe (EOF)

Discussion

  • Dimitar Zhekov
    Dimitar Zhekov
    2014-02-13

    We should recheck this after the full spawning fix is applied. It can't fail in the same way, because the fix does not use the helper programs under Windows.