threads / discuss / 48058

getting fatal error trying to open git gui

Subject: getting fatal error trying to open git gui

## tl;dr

8 messages between Mar 16, 2018 and Mar 19, 2018.

replies: 7people: 4as markdown or json

Briggs, John· Mar 16, 2018, 19:03 UTC · lore
I just installed git for windows 10 and am getting "git-gui: fatal error" "Cannot parse Git version string.

When I execute "git version" in the command prompt I get Git version 2.16.2.windows.1

Everything else seems to be working. How can I get the gui to work?
John
Jonathan Nieder· Mar 16, 2018, 19:57 UTC · re: Briggs, John · lore

Re: getting fatal error trying to open git gui

Hi,
Briggs, John wrote:
Show 6 quoted lines
> I just installed git for windows 10 and am getting "git-gui: fatal error" "Cannot parse Git version string.
>
> When I execute "git version" in the command prompt I get
> Git version 2.16.2.windows.1
>
> Everything else seems to be working. How can I get the gui to work?

That's strange indeed. Why is Git capitalized when you run "git version"?

Thanks, Jonathan

Briggs, John· Mar 16, 2018, 20:24 UTC · re: Jonathan Nieder · lore

RE: getting fatal error trying to open git gui

Got it figured out. Git gui must be ran as administrator.
John
-----Original Message-----
From: Jonathan Nieder <jrnieder@gmail.com> 
Sent: Friday, March 16, 2018 1:58 PM
To: Briggs, John <JOHN.BRIGGS@aei.com>
Cc: git@vger.kernel.org; git-for-windows@googlegroups.com
Subject: Re: getting fatal error trying to open git gui
Hi,
Briggs, John wrote:
Show 6 quoted lines
> I just installed git for windows 10 and am getting "git-gui: fatal error" "Cannot parse Git version string.
>
> When I execute "git version" in the command prompt I get Git version 
> 2.16.2.windows.1
>
> Everything else seems to be working. How can I get the gui to work?
That's strange indeed.  Why is Git capitalized when you run "git version"?

Thanks, Jonathan

Jonathan Nieder· Mar 16, 2018, 20:52 UTC · re: Briggs, John · lore

Re: getting fatal error trying to open git gui

Briggs, John wrote:
> Jonathan Nieder wrote:
>> Briggs, John wrote:
Show 11 quoted lines
>>> I just installed git for windows 10 and am getting "git-gui: fatal
>>> error" "Cannot parse Git version string.
>>>
>>> When I execute "git version" in the command prompt I get Git version
>>> 2.16.2.windows.1
>>>
>>> Everything else seems to be working. How can I get the gui to work?
>>
>> That's strange indeed.  Why is Git capitalized when you run "git version"?
>
> Got it figured out. Git gui must be ran as administrator.
Hm, that leaves me even more mystified.

Before v1.7.4-rc0~155^2~4 (git-gui: generic version trimming, 2010-10-07), git-gui was not able to handle "git version" output like "git version 2.16.2.windows.1", but since then, it should have been able to cope fine with it.

I wonder: do you have multiple versions of git gui installed?

Thanks, Jonathan

Briggs, John· Mar 16, 2018, 21:01 UTC · re: Jonathan Nieder · lore

RE: getting fatal error trying to open git gui

No, it was a fresh install.  Plus file search reveals only one copy of the file.
I also noticed that I cannot use the file properties to run as administrator. I must right-click on Git GUI and select "More >> Run as administrator" in the start menu. Even though I have "run as administrator" checked on both shortcut and the program (or any combo of).
John
-----Original Message-----
From: Jonathan Nieder <jrnieder@gmail.com> 
Sent: Friday, March 16, 2018 2:53 PM
To: Briggs, John <JOHN.BRIGGS@aei.com>
Cc: git@vger.kernel.org; git-for-windows@googlegroups.com
Subject: Re: getting fatal error trying to open git gui
Briggs, John wrote:
> Jonathan Nieder wrote:
>> Briggs, John wrote:
Show 11 quoted lines
>>> I just installed git for windows 10 and am getting "git-gui: fatal 
>>> error" "Cannot parse Git version string.
>>>
>>> When I execute "git version" in the command prompt I get Git version
>>> 2.16.2.windows.1
>>>
>>> Everything else seems to be working. How can I get the gui to work?
>>
>> That's strange indeed.  Why is Git capitalized when you run "git version"?
>
> Got it figured out. Git gui must be ran as administrator.
Hm, that leaves me even more mystified.
Before v1.7.4-rc0~155^2~4 (git-gui: generic version trimming, 2010-10-07), git-gui was not able to handle "git version" output like "git version 2.16.2.windows.1", but since then, it should have been able to cope fine with it.
I wonder: do you have multiple versions of git gui installed?

Thanks, Jonathan

Bryan Turner· Mar 16, 2018, 21:21 UTC · re: Briggs, John · lore

Re: getting fatal error trying to open git gui

On Fri, Mar 16, 2018 at 2:01 PM, Briggs, John <JOHN.BRIGGS@aei.com> wrote:
> No, it was a fresh install.  Plus file search reveals only one copy of the file.
>
> I also noticed that I cannot use the file properties to run as administrator. I must right-click on Git GUI and select "More >> Run as administrator" in the start menu. Even though I have "run as administrator" checked on both shortcut and the program (or any combo of).

You definitely shouldn't need to run it as an administrator at all. I have the same version installed:

$ git version git version 2.16.2.windows.1

Running Git GUI from the Start menu, it starts without a UAC prompt (which means it's not running as Administrator) and runs without issue. Starting it from a non-escalated command prompt via "git gui" also does not have a UAC prompt and runs without issue.

Seems like there must be something more going on. What options did you select during installation? What installer did you use?

Bryan
Briggs, John· Mar 19, 2018, 12:56 UTC · re: Bryan Turner · lore

RE: getting fatal error trying to open git gui

I used Git-2.16.2-64-bit.exe to install. I used all defaults except for editor, where I chose Notpad++.
John
-----Original Message-----
From: Bryan Turner <bturner@atlassian.com> 
Sent: Friday, March 16, 2018 3:22 PM
To: Briggs, John <JOHN.BRIGGS@aei.com>
Cc: Jonathan Nieder <jrnieder@gmail.com>; git@vger.kernel.org; git-for-windows@googlegroups.com
Subject: Re: getting fatal error trying to open git gui
On Fri, Mar 16, 2018 at 2:01 PM, Briggs, John <JOHN.BRIGGS@aei.com> wrote:
> No, it was a fresh install.  Plus file search reveals only one copy of the file.
>
> I also noticed that I cannot use the file properties to run as administrator. I must right-click on Git GUI and select "More >> Run as administrator" in the start menu. Even though I have "run as administrator" checked on both shortcut and the program (or any combo of).
You definitely shouldn't need to run it as an administrator at all. I have the same version installed:

$ git version git version 2.16.2.windows.1

Running Git GUI from the Start menu, it starts without a UAC prompt (which means it's not running as Administrator) and runs without issue. Starting it from a non-escalated command prompt via "git gui" also does not have a UAC prompt and runs without issue.

Seems like there must be something more going on. What options did you select during installation? What installer did you use?
Bryan
Johannes Schindelin· Mar 19, 2018, 14:13 UTC · re: Briggs, John · lore

RE: getting fatal error trying to open git gui

Hi John,
On Mon, 19 Mar 2018, Briggs, John wrote:
> I used Git-2.16.2-64-bit.exe to install. I used all defaults except for
> editor, where I chose Notpad++.

If your Git GUI mentions something funny about the version string when run as normal user, but not when run as administrator, I do suspect some sort of PATH problem.

Would you mind filling out a full bug report at https://github.com/git-for-windows/git/issues/new?

Ciao, Johannes

← back to recent threads