# Gitk cannot start in the latest version when using --all

5 messages from 2015-09-29 to 2015-09-30. Participants: Christophe COEVOET, Konstantin Khomoutov, Alexander Rettig.
Thread: https://gitlist.dev/t/40450

## Christophe COEVOET, 2015-09-29 13:40

Subject: Gitk cannot start in the latest version when using --all
Message-ID: <560A94E7.9090506@notk.org>
URL: https://gitlist.dev/e/560A94E7.9090506%40notk.org

```
Hi,

I'm installing git and gitk from the Ubuntu PPA maintained by the Git 
team. I received the Git 2.6 update today.
Since this update, I'm unable to launch gitk with --all. I'm receiving 
the following error message:

Error in startup script: bad menu entry index "Éditer la vue..."
     while executing
".bar.view entryconf [mca "Edit view..."] -state normal"
     invoked from within
"if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne {}} {
     # create a view for the files/dirs specified on the command line
     se..."
     (file "/usr/bin/gitk" line 12442)

Launching gitk without the --all option works fine.
Launching gitk with the --branches option or the --tags option is also 
broken

-- 
Christophe Coevoet

```

## Konstantin Khomoutov, 2015-09-29 13:49

Subject: Re: Gitk cannot start in the latest version when using --all
Message-ID: <20150929164951.cd5dea4ab0e866e4a0b74d6f@domain007.com>
URL: https://gitlist.dev/e/20150929164951.cd5dea4ab0e866e4a0b74d6f%40domain007.com
In-Reply-To: <560A94E7.9090506@notk.org>

```
On Tue, 29 Sep 2015 15:40:55 +0200
Christophe COEVOET <stof@notk.org> wrote:

> I'm installing git and gitk from the Ubuntu PPA maintained by the Git 
> team. I received the Git 2.6 update today.
> Since this update, I'm unable to launch gitk with --all. I'm
> receiving the following error message:
> 
> Error in startup script: bad menu entry index "Éditer la vue..."
>      while executing
> ".bar.view entryconf [mca "Edit view..."] -state normal"
>      invoked from within
> "if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne
> {}} {
>      # create a view for the files/dirs specified on the command line
>      se..."
>      (file "/usr/bin/gitk" line 12442)
> 
> Launching gitk without the --all option works fine.
> Launching gitk with the --branches option or the --tags option is
> also broken

Does it start if you run it via

$ LANG=C gitk --all

or

$ LANG=en_US.UTF-8 gitk --all

?

```

## Christophe COEVOET, 2015-09-29 13:51

Subject: Re: Gitk cannot start in the latest version when using --all
Message-ID: <560A9772.80503@notk.org>
URL: https://gitlist.dev/e/560A9772.80503%40notk.org
In-Reply-To: <20150929164951.cd5dea4ab0e866e4a0b74d6f@domain007.com>

```
Le 29/09/2015 15:49, Konstantin Khomoutov a écrit :
> On Tue, 29 Sep 2015 15:40:55 +0200
> Christophe COEVOET <stof@notk.org> wrote:
>
>> I'm installing git and gitk from the Ubuntu PPA maintained by the Git
>> team. I received the Git 2.6 update today.
>> Since this update, I'm unable to launch gitk with --all. I'm
>> receiving the following error message:
>>
>> Error in startup script: bad menu entry index "Éditer la vue..."
>>       while executing
>> ".bar.view entryconf [mca "Edit view..."] -state normal"
>>       invoked from within
>> "if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne
>> {}} {
>>       # create a view for the files/dirs specified on the command line
>>       se..."
>>       (file "/usr/bin/gitk" line 12442)
>>
>> Launching gitk without the --all option works fine.
>> Launching gitk with the --branches option or the --tags option is
>> also broken
> Does it start if you run it via
>
> $ LANG=C gitk --all
>
> or
>
> $ LANG=en_US.UTF-8 gitk --all
>
> ?
Yeah, both of these commands are working fine.

-- 
Christophe | Stof

```

## Konstantin Khomoutov, 2015-09-29 13:59

Subject: Re: Gitk cannot start in the latest version when using --all
Message-ID: <20150929165903.893d668b86583dcf2085884b@domain007.com>
URL: https://gitlist.dev/e/20150929165903.893d668b86583dcf2085884b%40domain007.com
In-Reply-To: <560A9772.80503@notk.org>

```
On Tue, 29 Sep 2015 15:51:46 +0200
Christophe COEVOET <stof@notk.org> wrote:

> >> I'm installing git and gitk from the Ubuntu PPA maintained by the
> >> Git team. I received the Git 2.6 update today.
> >> Since this update, I'm unable to launch gitk with --all. I'm
> >> receiving the following error message:
> >>
> >> Error in startup script: bad menu entry index "Éditer la vue..."
> >>       while executing
> >> ".bar.view entryconf [mca "Edit view..."] -state normal"
> >>       invoked from within
> >> "if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd
> >> ne {}} {
> >>       # create a view for the files/dirs specified on the command
> >>       # line
> >>       se..."
> >>       (file "/usr/bin/gitk" line 12442)
[...]
> > Does it start if you run it via
> >
> > $ LANG=C gitk --all
> >
> > or
> >
> > $ LANG=en_US.UTF-8 gitk --all
> >
> > ?
> Yeah, both of these commands are working fine.

OK, so the problem is that some menu entry has the title "Edit view..."
which is for some reason not translated for your current locale,
and then some code tries to locate it using the original title
translated to French -- I fathom the command [mca] being called here
stands for "Message Catalog A-something" ;-)

```

## Alexander Rettig, 2015-09-30 14:06

Subject: Re: Gitk cannot start in the latest version when using --all
Message-ID: <loom.20150930T155320-343@post.gmane.org>
URL: https://gitlist.dev/e/loom.20150930T155320-343%40post.gmane.org
In-Reply-To: <20150929165903.893d668b86583dcf2085884b@domain007.com>

```
Konstantin Khomoutov <kostix+git <at> 007spb.ru> writes:

> 
> On Tue, 29 Sep 2015 15:51:46 +0200
> Christophe COEVOET <stof <at> notk.org> wrote:
> 
> > >> I'm installing git and gitk from the Ubuntu PPA maintained by the
> > >> Git team. I received the Git 2.6 update today.
> > >> Since this update, I'm unable to launch gitk with --all. I'm
> > >> receiving the following error message:
> > >>
> > >> Error in startup script: bad menu entry index "Éditer la vue..."
> > >>       while executing
> > >> ".bar.view entryconf [mca "Edit view..."] -state normal"
> > >>       invoked from within
> > >> "if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd
> > >> ne {}} {
> > >>       # create a view for the files/dirs specified on the command
> > >>       # line
> > >>       se..."
> > >>       (file "/usr/bin/gitk" line 12442)
> [...]
> > > Does it start if you run it via
> > >
> > > $ LANG=C gitk --all
> > >
> > > or
> > >
> > > $ LANG=en_US.UTF-8 gitk --all
> > >
> > > ?
> > Yeah, both of these commands are working fine.
> 
> OK, so the problem is that some menu entry has the title "Edit view..."
> which is for some reason not translated for your current locale,
> and then some code tries to locate it using the original title
> translated to French -- I fathom the command [mca] being called here
> stands for "Message Catalog A-something" 
>

Hello, I notice the same problem (updated to gitk 2.6.0 on openSUSE)

It is not only a problem with the German translation but also with others, I
additionally tried French and Japanese.

But even stranger, gitk starts correctly, when no command line arguments are
given in these locales (and the German locale), but with any command line
argument I tried (e.g. only 'gitk .') it crashes with the error message
mentioned above (they differ in the text 'bad menu entry index "Éditer la
vue..."', there the translated text of the locale is shown)

Furthermore I checked the translation files, there seems to be an
appropriate entry for "Edit view..." for all languages.

```
