Branch: refs/heads/master Author: Nick Treleaven nick.treleaven@btinternet.com Committer: Nick Treleaven nick.treleaven@btinternet.com Date: Tue, 24 Apr 2012 16:35:31 Commit: 4f87e31478866f8e221bbccd380c944d1bd565ce https://github.com/geany/geany/commit/4f87e31478866f8e221bbccd380c944d1bd565...
Log Message: ----------- Show tag preprocessing errors on stderr
Modified Paths: -------------- tagmanager/tm_workspace.c
Modified: tagmanager/tm_workspace.c 11 files changed, 9 insertions(+), 2 deletions(-) =================================================================== @@ -379,8 +379,10 @@ gboolean tm_workspace_create_global_tags(const char *pre_process, const char **i if (pre_process != NULL) { gint ret; - command = g_strdup_printf("%s %s > %s", - pre_process, temp_file, temp_file2); + gchar *tmp_errfile = create_temp_file("tmp_XXXXXX"); + gchar *errors = NULL; + command = g_strdup_printf("%s %s >%s 2>%s", + pre_process, temp_file, temp_file2, tmp_errfile); #ifdef TM_DEBUG g_message("Executing: %s", command); #endif @@ -388,6 +390,11 @@ gboolean tm_workspace_create_global_tags(const char *pre_process, const char **i g_free(command); g_unlink(temp_file); g_free(temp_file); + g_file_get_contents(tmp_errfile, &errors, NULL, NULL); + if (errors && *errors) + g_printerr("%s", errors); + g_free(errors); + g_free(tmp_errfile); if (ret == -1) { g_unlink(temp_file2);
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).