Hi, I;m having the same problem as described in:
http://article.gmane.org/gmane.editors.geany.general/1071/match=grep
I've tried using the grep in:
http://sourceforge.net/project/showfiles.php?group_id=9328
But I always get:
Process failed (Failed to execute helper program (No such file or directory)
In fact I always get this message no matter what program I put in to the preferences.
I'm on Windows XP Pro + SP3 and using version 0.14
Thanks,
Nik
On Tue, 20 May 2008 00:48:15 +0000 (UTC), Nik nsmorte@gmail.com wrote:
Hi, I;m having the same problem as described in:
http://article.gmane.org/gmane.editors.geany.general/1071/match=grep
I've tried using the grep in:
http://sourceforge.net/project/showfiles.php?group_id=9328
But I always get:
Process failed (Failed to execute helper program (No such file or
directory)
Do you have a file called "gspawn-win32-helper.exe" in the installation directory of Geany? Or if you installed GTK globally, this file should exist where the GTK libs are installed. The above error message is caused when this file can't be found but it is needed for execution.
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
Do you have a file called "gspawn-win32-helper.exe" in the installation directory of Geany?
I do:
C:\Program Files\Geany>dir Volume in drive C has no label. Volume Serial Number is 0C7F-7391
Directory of C:\Program Files\Geany
05/18/2008 01:30 PM <DIR> . 05/18/2008 01:30 PM <DIR> .. 04/19/2008 01:36 AM 160 Authors.txt 04/19/2008 01:36 AM 353,042 ChangeLog.txt 05/23/2003 11:45 AM 24,576 charset.dll 04/19/2008 01:36 AM 18,329 Copying.txt 05/18/2008 01:30 PM <DIR> data 05/18/2008 01:30 PM <DIR> doc 05/18/2008 01:30 PM 64 Documentation.url 05/18/2008 01:30 PM <DIR> etc 04/19/2008 01:37 AM 1,379,112 Geany.exe 05/18/2008 01:30 PM 47 Geany.url 10/16/2007 05:15 PM 9,894 gspawn-win32-helper.exe 05/23/2003 11:45 AM 892,928 iconv.dll 10/02/2005 02:18 PM 45,056 intl.dll 05/15/2005 06:08 AM 127,488 jpeg62.dll 05/18/2008 01:30 PM <DIR> lib 09/23/2007 08:13 AM 103,653 libatk-1.0-0.dll 08/20/2007 01:06 PM 536,734 libcairo-2.dll 10/17/2007 11:37 AM 638,635 libgdk-win32-2.0-0.dll 10/17/2007 11:37 AM 210,210 libgdk_pixbuf-2.0-0.dll 10/16/2007 05:15 PM 780,159 libglib-2.0-0.dll 10/16/2007 05:15 PM 17,158 libgmodule-2.0-0.dll 10/16/2007 05:15 PM 227,497 libgobject-2.0-0.dll 10/16/2007 05:15 PM 22,353 libgthread-2.0-0.dll 10/17/2007 11:37 AM 3,753,197 libgtk-win32-2.0-0.dll 10/16/2007 05:26 PM 230,700 libpango-1.0-0.dll 10/16/2007 05:26 PM 39,875 libpangocairo-1.0-0.dll 10/16/2007 05:26 PM 232,519 libpangoft2-1.0-0.dll 10/16/2007 05:26 PM 59,102 libpangowin32-1.0-0.dll 12/03/2004 05:09 PM 203,264 libpng13.dll 03/28/2006 02:50 AM 376,832 libtiff3.dll 04/19/2008 01:36 AM 32,494 News.txt 05/18/2008 01:30 PM <DIR> plugins 04/19/2008 01:36 AM 3,579 ReadMe.txt 05/18/2008 01:30 PM <DIR> share 04/19/2008 01:36 AM 4,703 Thanks.txt 04/19/2008 01:36 AM 2,090 ToDo.txt 05/18/2008 01:30 PM 60,433 uninst.exe 07/20/2005 03:48 AM 59,904 zlib1.dll 32 File(s) 10,445,787 bytes 8 Dir(s) 15,472,099,328 bytes free
If I try an execute it from the command line I get a pop-up message saying:
** ERROR **; file gspawn-win32-helper.c line 168 (WinMain): assertion failed: (__argc >= ARG_COUNT Aborting...)
However, I don't see this pop-up when when I do a Find in Files from Geany.
If I run Geany --debug I see:
Geany 0.14, GTK+ 2.12.1, GLib 2.14.2 Initializing plugin 'File Browser' Loaded: C:\Program Files\Geany\plugins\filebrowser.dll (File Browser) Initializing plugin 'Version Diff' Loaded: C:\Program Files\Geany\plugins\vcdiff.dll (Version Diff) M:\work\NikDev\s3DAV-0.7.1\src\org\carion\s3dav\webdav\HandlerPut.java : Java (U TF-8) search_find_in_files: g_spawn_async_with_pipes() failed: Failed to execute helpe r program (No such file or directory)
Many Thanks,
Nik
On Tue, 20 May 2008 16:26:17 +0000 (UTC), Nik nsmorte@gmail.com wrote:
Enrico Tröger <enrico.troeger@...> writes:
Do you have a file called "gspawn-win32-helper.exe" in the installation directory of Geany?
If I try an execute it from the command line I get a pop-up message saying:
** ERROR **; file gspawn-win32-helper.c line 168 (WinMain): assertion failed: (__argc >= ARG_COUNT Aborting...)
What exactly is your grep command set in the preferences dialog? Maybe you can attach your geany.conf?
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
What exactly is your grep command set in the preferences dialog? Maybe you can attach your geany.conf?
I've tried lost of things, but currently it is set to:
grep_cmd=C:\work\UnxUtils\usr\local\wbin\grep.exe
And this works from the command line:
C:\Program Files\Geany>C:\work\UnxUtils\usr\local\wbin\grep.exe Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information.
If it is set to:
grep_cmd=grep
Then I get the message:
grep -nHIF -- HandlerPut (in directory: M:\work\NikDev\s3DAV-0.7.1\src\org\carion\s3dav\webdav)
If it is set to anything else I get:
Process failed (Failed to execute helper program (No such file or directory)
Here if the whole of geany.conf
Thanks,
Nik
[geany] pref_main_load_session=true pref_main_project_session=true pref_main_save_winpos=true pref_main_confirm_exit=true pref_main_suppress_search_dialogs=true pref_main_search_use_current_word=true pref_main_suppress_status_messages=false switch_msgwin_pages=false beep_on_errors=true auto_focus=false default_open_path= sidebar_symbol_visible=true sidebar_openfiles_visible=true sidebar_openfiles_fullpath=false editor_font=Monospace 10 tagbar_font=Sans 9 msgwin_font=Sans 9 show_notebook_tabs=true show_tab_cross=true tab_order_ltr=true tab_pos_editor=2 tab_pos_msgwin=0 tab_pos_sidebar=2 show_indent_guide=true show_white_space=true show_line_endings=false show_markers_margin=true show_linenumber_margin=true long_line_type=0 long_line_column=80 long_line_color=#C2EBC2 symbolcompletion_max_height=10 symbolcompletion_min_chars=4 use_folding=true unfold_all_children=false indent_mode=2 check_detect_indent=1 use_indicators=true line_breaking=false auto_close_xml_tags=true complete_snippets=true auto_complete_symbols=true pref_editor_tab_width=4 pref_editor_use_tabs=false pref_editor_disable_dnd=false pref_editor_smart_home_key=true pref_editor_newline_strip=true pref_editor_default_new_encoding=UTF-8 pref_editor_default_open_encoding=none pref_editor_new_line=true pref_editor_replace_tabs=false pref_editor_trail_space=false mru_length=10 pref_toolbar_show=false pref_toolbar_show_search=true pref_toolbar_show_goto=true pref_toolbar_show_zoom=false pref_toolbar_show_indent=false pref_toolbar_show_undo=false pref_toolbar_show_navigation=true pref_toolbar_show_compile=true pref_toolbar_show_colour=true pref_toolbar_show_fileops=true pref_toolbar_show_quit=true pref_toolbar_icon_style=2 pref_toolbar_icon_size=2 pref_template_developer=nshaylor pref_template_company= pref_template_mail=nshaylor@NIKDEV pref_template_initial=n pref_template_version=1.0 context_action_cmd= show_editor_scrollbars=true use_tab_to_indent=false brace_match_ltgt=false use_gtk_word_boundaries=true complete_snippets_whilst_editing=false scroll_stop_at_last_line=false show_symbol_list_expanders=true sidebar_visible=true statusbar_visible=true msgwindow_visible=true fullscreen=false scribble_text=Type here what you want, use it as a notice/scratch board custom_date_format= treeview_position=217 msgwindow_position=906 geometry=76;43;1210;1035;0;
[tools] make_cmd=make term_cmd=cmd.exe browser_cmd=firefox grep_cmd=C:\work\UnxUtils\usr\local\wbin\grep.exe
[printing] print_cmd='C:\WINDOWS\system32\lpr.exe' '%f' use_gtk_printing=true print_line_numbers=true print_page_numbers=true print_page_header=true page_header_basename=false page_header_datefmt=%c
[plugins] load_plugins=true active_plugins=C:\Program Files\Geany\plugins\filebrowser.dll;C:\Program Files\Geany\plugins\vcdiff.dll;
[search] fif_extra_options=
[project] session_file= project_file_path=C:\Documents and Settings\nshaylor\projects
[files] recent_files=M:\work\NikDev\s3DAV-0.7.1\src\org\carion\s3dav\webdav \HandlerPut.java;/?;X:\BASE64Encoder.java;C:\Program Files\Geany\data\filetypes.java;C:\swork\java\kshell\ksys\ KArgListXXX.java;C:\swork\java\kshell\ksys\KArgList.java;C:\ swork\java\kshell\ksys\KArc.java; current_page=0 FILE_NAME_0=1082;2;0;16;0;1;0;M:\work\NikDev\s3DAV-0.7.1\src\ org\carion\s3dav\webdav\HandlerPut.java;
Enrico Tröger <enrico.troeger@...> writes:
If I try an execute it from the command line I get a pop-up message saying:
** ERROR **; file gspawn-win32-helper.c line 168 (WinMain): assertion failed: (__argc >= ARG_COUNT Aborting...)
What exactly is your grep command set in the preferences dialog?
But, to be clear, this pop-up comes when if execute gspawn-win32-helper.exe from the command line, not from within Geany. I just wanted to make sure than gspawn-win32-helper was a real executable program. It may well be that running it this way is completely invalid and the error message is exactly what should happen.
Nik
On Tue, 20 May 2008 17:41:49 +0000 (UTC), Nik nsmorte@gmail.com wrote:
Enrico Tröger <enrico.troeger@...> writes:
If I try an execute it from the command line I get a pop-up message saying:
** ERROR **; file gspawn-win32-helper.c line 168 (WinMain): assertion failed: (__argc >= ARG_COUNT Aborting...)
What exactly is your grep command set in the preferences dialog?
But, to be clear, this pop-up comes when if execute gspawn-win32-helper.exe from the command line, not from within Geany.
Ah ok.
I just wanted to make sure than gspawn-win32-helper was a real executable program. It may well be that running it this way is completely invalid and the error message is exactly what should happen.
Yes, this program is called internally by GLib when Geany calls GLib's process spawning functions. It is _not_ intended to be run manually so the error message is quite correct.
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
Yes, this program is called internally by GLib when Geany calls GLib's process spawning functions. It is _not_ intended to be run manually so the error message is quite correct.
Hi Enrico, Thanks for the clarification, but I still am unable to get Find if files to work in Geany.
If my grep_cmd is set to:
grep_cmd=grep
Then I get the message:
grep -nHIF -- <search term>(in directory: <directory>)
If it is set grep_cmd to anything else I get:
Process failed (Failed to execute helper program (No such file or directory)
Nik
On Tue, 20 May 2008 18:21:54 +0000 (UTC), Nik nsmorte@gmail.com wrote:
Enrico Tröger <enrico.troeger@...> writes:
Yes, this program is called internally by GLib when Geany calls GLib's process spawning functions. It is _not_ intended to be run manually so the error message is quite correct.
Hi Enrico, Thanks for the clarification, but I still am unable to get Find if files to work in Geany.
If my grep_cmd is set to:
grep_cmd=grep
Then I get the message:
grep -nHIF -- <search term>(in directory: <directory>)
If it is set grep_cmd to anything else I get:
Process failed (Failed to execute helper program (No such file or directory)
Ok, I just got also this. Download the file http://www.uvena.de/tmp/gspawn-win32-helper-console.zip and extract the included executable in your Geany installation directory. This did the trick for me. If it helps, I'll include this file in the next Windows build.
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
Ok, I just got also this. Download the file http://www.uvena.de/tmp/gspawn-win32-helper-console.zip and extract the included executable in your Geany installation directory. This did the trick for me. If it helps, I'll include this file in the next Windows build.
Yes, That's fixed it.
Many Thanks,
Nik
I had problems printing the manual http://geany.uvena.de/0.14/index.html with firefox in "letter" size. It was dropping the last 5 to 12 characters on long lines. I finally printed a copy with all of the text by changing the "width" in the index.html file text:
body { background-color: #f2f2f2; color: #404040; margin-left: 0.4em; width: 60em; font-size: 90%; }
to:
body { background-color: #f2f2f2; color: #404040; margin-left: 0.4em; width: 50em; font-size: 90%; }
I am using Kubuntu 8.04 with "geany 0.13 (built on Feb 12 2008 with GTK 2.12.7, GLib 2.15.5)".
I am having a problem getting filetype templates working.
"Filetype templates are templates used as the basis of a new file. To use them, choose the 'New(with Templates)' menu item from the 'File' menu."
I created a "filetype_extensions.conf" file and put it in my "~/.geany" subdirectory.
filetype_extensions.conf: [Extensions] ActionScript=*.as;
I then created "filetype.as" file in my "~/.geany/templates" subdirectory.
filetype.as: {fileheader}
class {untitled} { static var app: {untitled};
function {untitled}() { }
static function main (mc) { app = new {untitled}(); } }
I then started geany and went to File->New(with templates) and looked for a source file entry for ActionScript. There was no entry for it there.
What did I overlook?
Thanks for any assistance you might give me.
On Tue, 20 May 2008 18:45:36 -0700 Kent kent@uoregon.edu wrote:
I am using Kubuntu 8.04 with "geany 0.13 (built on Feb 12 2008 with GTK 2.12.7, GLib 2.15.5)".
I am having a problem getting filetype templates working.
"Filetype templates are templates used as the basis of a new file. To use them, choose the 'New(with Templates)' menu item from the 'File' menu."
I created a "filetype_extensions.conf" file and put it in my "~/.geany" subdirectory.
Geany doesn't have support for custom filetypes yet, it may be a while.
...
I then created "filetype.as" file in my "~/.geany/templates" subdirectory.
This only works for recognised filenames - only one extension per filetype - e.g. filetypes.c. (Note: the new SVN custom template file feature matches all extensions associated with the filetype).
Regards, Nick
P.S. I'm guessing you replied to existing posts to get the list address - but the problem with this is email programs with threading make it look like these posts are in reply to the parent Find in Files thread, so less people will see your post if they collapse the whole thread. (Your post has the following email header info (it should have no In-Reply-To field for a new post): In-Reply-To: 200805201608.20831.kent@uoregon.edu )
On 5/20/08, Kent kent@uoregon.edu wrote:
I had problems printing the manual http://geany.uvena.de/0.14/index.html with firefox in "letter" size. It was dropping the last 5 to 12 characters on long lines. I finally printed a copy with all of the text by changing the "width" in the index.html file text: [snip]
The width value in the stylesheet was chosen out of thin air just to make the manual more readable in wide browser windows.
For printing, you might try just shutting off styles altogether (in your browser: "View --> Page Style --> No Style").
---John
On Thu, 22 May 2008 10:06:56 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 5/20/08, Kent kent@uoregon.edu wrote:
I had problems printing the manual http://geany.uvena.de/0.14/index.html with firefox in "letter" size. It was dropping the last 5 to 12 characters on long lines. I finally printed a copy with all of the text by changing the "width" in the index.html file text: [snip]
The width value in the stylesheet was chosen out of thin air just to make the manual more readable in wide browser windows.
For printing, you might try just shutting off styles altogether (in your browser: "View --> Page Style --> No Style").
This is cool and IMO completely sufficient. Thanks John.
Regards, Enrico
On Sun, May 25, 2008 at 10:12:56PM +0200, Enrico Tröger wrote:
On Thu, 22 May 2008 10:06:56 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 5/20/08, Kent kent@uoregon.edu wrote:
I had problems printing the manual http://geany.uvena.de/0.14/index.html with firefox in "letter" size. It was dropping the last 5 to 12 characters on long lines. I finally printed a copy with all of the text by changing the "width" in the index.html file text: [snip]
The width value in the stylesheet was chosen out of thin air just to make the manual more readable in wide browser windows.
For printing, you might try just shutting off styles altogether (in your browser: "View --> Page Style --> No Style").
This is cool and IMO completely sufficient. Thanks John.
Then why not include the stylesheed only for the screen media? For more details:
http://www.w3.org/TR/CSS21/media.html
On Mon, 26 May 2008 06:58:01 -0300, Damián Viano geany@damianv.com.ar wrote:
On Sun, May 25, 2008 at 10:12:56PM +0200, Enrico Tröger wrote:
On Thu, 22 May 2008 10:06:56 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 5/20/08, Kent kent@uoregon.edu wrote:
I had problems printing the manual http://geany.uvena.de/0.14/index.html with firefox in "letter" size. It was dropping the last 5 to 12 characters on long lines. I finally printed a copy with all of the text by changing the "width" in the index.html file text: [snip]
The width value in the stylesheet was chosen out of thin air just to make the manual more readable in wide browser windows.
For printing, you might try just shutting off styles altogether (in your browser: "View --> Page Style --> No Style").
This is cool and IMO completely sufficient. Thanks John.
Then why not include the stylesheed only for the screen media? For more details:
Thanks Damián, this is exactly what I looked for. I changed the used stylesheet to apply the settings only for the screen media, the print media doesn't contain any special colouring or width settings (plain HTML). A quick test in Iceweasel (aka Firefox ;-)) seemed to work. Opening the page normally shows the known format, when using the print preview the stylesheet isn't used and so no width limiations.
Regards, Enrico