threads / discuss / 52954

gui: error "missing close bracket" when doing a reset

Subject: gui: error "missing close bracket" when doing a reset

## tl;dr

2 messages between Mar 8, 2020 and Mar 11, 2020.

replies: 1people: 2as markdown or json

Birger Skogeng Pedersen· Mar 8, 2020, 15:52 UTC · lore
Hi,

The last couple of times I've done a reset in git-gui (Branch->Reset...->Yes), the repo is reset but I get an error message. The message header says "Error: missing close-bracket". Error message is as follows:

missing close-bracket
missing close-bracket
    while executing
"set status_bar_operation ["
    invoked from within
"if {[ask_popup $op_question] eq {yes}} {
        set fd [git_read --stderr read-tree --reset -u -v HEAD]
        fconfigure $fd -blocking 0 -translation binary
        ..."
    (procedure "merge::reset_hard" line 28)
    invoked from within
"merge::reset_hard"
    invoked from within
".#mbar.#mbar#branch invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 50)
    invoked from within
"tk::MenuInvoke .#mbar.#mbar#branch 1"
    (command bound to event)
(end of error message)
Does anyone else experience the same issue?

Best regards, Birger

Pratyush Yadav· Mar 11, 2020, 07:35 UTC · re: Birger Skogeng Pedersen · lore

Re: gui: error "missing close bracket" when doing a reset

On 08/03/20 04:52PM, Birger Skogeng Pedersen wrote:
Show 32 quoted lines
> Hi,
> 
> The last couple of times I've done a reset in git-gui
> (Branch->Reset...->Yes), the repo is reset but I get an error message.
> The message header says "Error: missing close-bracket". Error message
> is as follows:
> 
> missing close-bracket
> missing close-bracket
>     while executing
> "set status_bar_operation ["
>     invoked from within
> "if {[ask_popup $op_question] eq {yes}} {
>         set fd [git_read --stderr read-tree --reset -u -v HEAD]
>         fconfigure $fd -blocking 0 -translation binary
>         ..."
>     (procedure "merge::reset_hard" line 28)
>     invoked from within
> "merge::reset_hard"
>     invoked from within
> ".#mbar.#mbar#branch invoke active"
>     ("uplevel" body line 1)
>     invoked from within
> "uplevel #0 [list $w invoke active]"
>     (procedure "tk::MenuInvoke" line 50)
>     invoked from within
> "tk::MenuInvoke .#mbar.#mbar#branch 1"
>     (command bound to event)
> 
> (end of error message)
> 
> Does anyone else experience the same issue?

I fixed a similar issue in 6b9919c (git-gui: add missing close bracket, 2020-02-17). Do you have that commit applied? You can pull it from [0].

If you still have this problem even with the commit applied, let me know and I'll take a look after I get off from $DAYJOB.

[0] https://github.com/prati0100/git-gui.git
-- 
Regards,
Pratyush Yadav
Texas Instruments India

← back to recent threads