1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-02 15:28:21 +01:00
git/lib
Shawn O. Pearce de83f8cc4c git-gui: Catch and display aspell startup failures to the user
If we feed a bad dictionary name to aspell on startup it may appear
to start (as Tcl found the executable in our $PATH) but it fails to
give us the version string.  In such a case the close of the pipe
will report the exit status of the process (failure) and that is
an error in Tcl.

We now trap the subprocess failure and display the stderr message
from it, letting the user know why the failure is happening.  We then
disable the spell checker, but keep our object instance so the user
can alter their preferred dictionary through the options dialog, and
possibly restart the spell checker.

I was also originally wrong to use "error" here for the display
of the problem to the user.  I meant to use "error_popup", which
will open a message box and show the failure in a GUI context,
rather than killing git-gui and showing the message on the console.

Noticed by Ilari on #git.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-02-21 00:22:06 -05:00
..
about.tcl git-gui: Ensure all spellchecker 'class' variables are initialized 2008-02-21 00:22:06 -05:00
blame.tcl git-gui: fix typo in lib/blame.tcl 2007-09-27 22:12:49 -04:00
branch.tcl git-gui: Always use absolute path to all git executables 2007-07-09 01:17:09 -04:00
branch_checkout.tcl Mark strings for translation. 2007-09-02 16:54:48 +01:00
branch_create.tcl Mark strings for translation. 2007-09-02 16:54:48 +01:00
branch_delete.tcl Mark strings for translation. 2007-09-02 16:54:48 +01:00
branch_rename.tcl git-gui: Paper bag fix missing translated strings 2007-09-14 01:51:18 -04:00
browser.tcl Merge branch 'maint' 2007-09-16 23:15:21 -04:00
checkout_op.tcl git-gui: (i18n) Fix a bunch of still untranslated strings. 2008-02-03 21:25:29 -05:00
choose_font.tcl git-gui: Disable native platform text selection in "lists" 2007-09-16 23:12:19 -04:00
choose_repository.tcl git-gui: Allow 'Create New Repository' on existing directories 2008-01-16 01:14:42 -05:00
choose_rev.tcl git-gui: Work around random missing scrollbar in revision list 2008-01-22 23:37:15 -05:00
class.tcl git-gui: Fix window manager problems on ion3 2007-08-20 00:38:13 -04:00
commit.tcl git-gui: (i18n) Fix a bunch of still untranslated strings. 2008-02-03 21:25:29 -05:00
console.tcl Merge branch 'maint' 2007-10-20 20:43:36 -04:00
database.tcl git-gui: add some strings to translation 2007-09-13 20:43:26 -04:00
date.tcl git-gui: Localize commit/author dates when displaying them 2007-09-10 01:54:16 -04:00
diff.tcl git-gui: Refresh file status description after hunk application 2008-01-16 01:29:39 -05:00
encoding.tcl git-gui: Translate standard encoding names to Tcl ones 2007-07-19 01:27:17 -04:00
error.tcl git-gui: Ensure error dialogs always appear over all other windows 2008-02-20 23:39:32 -05:00
git-gui.ico git-gui: Improve the application icon on Windows. 2007-12-02 23:05:10 -05:00
index.tcl git-gui: (i18n) Fix a bunch of still untranslated strings. 2008-02-03 21:25:29 -05:00
logo.tcl git-gui: Refactor Henrik Nyh's logo into its own procedure 2007-10-10 01:12:15 -04:00
merge.tcl git-gui: (i18n) Fix a bunch of still untranslated strings. 2008-02-03 21:25:29 -05:00
option.tcl git-gui: Correct size of dictionary name widget in options dialog 2008-02-14 01:07:39 -05:00
remote.tcl git-gui: Consolidate the Fetch and Push menus into a Remote menu 2007-10-10 01:12:17 -04:00
remote_branch_delete.tcl git-gui: add some strings to translation 2007-09-13 20:43:26 -04:00
shortcut.tcl git-gui: Use proper Windows shortcuts instead of bat files 2007-10-12 23:07:58 -04:00
spellcheck.tcl git-gui: Catch and display aspell startup failures to the user 2008-02-21 00:22:06 -05:00
status_bar.tcl Merge branch 'maint' 2007-10-20 20:43:36 -04:00
transport.tcl git-gui: Allow forced push into remote repository 2007-10-03 00:21:50 -04:00
win32.tcl git-gui: Use proper Windows shortcuts instead of bat files 2007-10-12 23:07:58 -04:00
win32_shortcut.js git-gui: Use proper Windows shortcuts instead of bat files 2007-10-12 23:07:58 -04:00