git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* exception in git-gui when saving options
@ 2007-02-17 19:40 Martin Waitz
  2007-02-18  7:14 ` Shawn O. Pearce
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Waitz @ 2007-02-17 19:40 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

hoi :)

I get the following backtrace when I want to save options in a
git-gui which is started in blame mode:

can't read "current_diff_path": no such variable
    while executing
"set p $current_diff_path"
    (procedure "reshow_diff" line 5)
    invoked from within
"reshow_diff"
    (procedure "do_save_config" line 5)
    invoked from within
"do_save_config .options_editor"
    invoked from within
".options_editor.buttons.save invoke"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke]"
    (procedure "tk::ButtonUp" line 22)
    invoked from within
"tk::ButtonUp .options_editor.buttons.save"
    (command bound to event)

The options seem to be saved correctly.

-- 
Martin Waitz

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: exception in git-gui when saving options
  2007-02-17 19:40 exception in git-gui when saving options Martin Waitz
@ 2007-02-18  7:14 ` Shawn O. Pearce
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2007-02-18  7:14 UTC (permalink / raw)
  To: Martin Waitz; +Cc: git

Martin Waitz <tali@admingilde.org> wrote:
> I get the following backtrace when I want to save options in a
> git-gui which is started in blame mode:
> 
> The options seem to be saved correctly.

Whoops.  :-)  Its fixed with the following commit in git-gui:

commit 372ef954a15c321a1065bf7e764449ce7767277f
Author: Shawn O. Pearce <spearce@spearce.org>
Date:   Sun Feb 18 02:12:32 2007 -0500

    git-gui: Correct crash when saving options in blame mode.
    
    Martin Waitz noticed that git-gui crashed while saving the user's
    options out if the application was started in blame mode.  This
    was caused by the do_save_config procedure invoking reshow_diff
    incase the number of context lines was modified by the user.
    Because we bypassed main window UI setup to enter blame mode we
    did not set many of the globals which were accessed by reshow_diff,
    and reading unset variables is an error in Tcl.
    
    Aside from moving the globals to be set earlier, I also modified
    reshow_diff to not invoke clear_diff if there is no path currently
    in the diff viewer.  This way reshow_diff does not crash when in
    blame mode due to the $ui_diff command not being defined.
    
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

-- 
Shawn.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-18  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-17 19:40 exception in git-gui when saving options Martin Waitz
2007-02-18  7:14 ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).