Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error in startup script" popup after the "git-gui -h" popup #1284

Closed
Deadooshka opened this issue Aug 29, 2017 · 4 comments
Closed

"Error in startup script" popup after the "git-gui -h" popup #1284

Deadooshka opened this issue Aug 29, 2017 · 4 comments
Milestone

Comments

@Deadooshka
Copy link

screenshot - 29 08 2017 9_37_47

$ git --version --build-options

git version 2.14.1.windows.1
built from commit: 82d9b3f3b2407b52251620597d4b14933685459d
sizeof-long: 4
machine: x86
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
$ cat /etc/install-options.txt

portable
  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

cmd/bash

git-gui -h
@PhilipOakley
Copy link

The image in the issue report didn't show in the email notifications.

The Image shows the error stack.

The reported error is

 invalid command name "tk_messageBox"
             while executing
"tk_messageBox -icon error -type ok -title "git-gui: fatal err"
-message $err"

from "Git/mingw32/libexec/git-core/git-gui.tcl" line 34.

so that will be where to start (and check my copy typing;-)

Maybe the command name has a miss-spelling.

Then again, maybe the git-giu itself can't cope with the -h option which is think is pre-processed by the git command (there is magic to work out what to do between the --help, -h and git help command views).

It maybe a further layer up the command stack at git-gui line 25 (see the image)

@mfriedrich74
Copy link

mfriedrich74 commented Aug 30, 2017 via email

@dscho
Copy link
Member

dscho commented Aug 30, 2017

The underlying problem is completely different: you use (quite unnecessarily) the git-gui.exe wrapper (which actually does not perform the operation but hands off to git.exe gui <arguments>....

If you call git gui -h (note the space between git and gui), it works.

@dscho
Copy link
Member

dscho commented Aug 30, 2017

And the report failed to include the first window that pops up:

git-gui-h-failure

@dscho dscho added this to the v2.14.1(2) milestone Aug 30, 2017
dscho added a commit to git-for-windows/build-extra that referenced this issue Aug 30, 2017
The `git-gui.exe` and `gitk.exe` wrappers intended to
be used in Git CMD [now handle command-line parameters
correctly](git-for-windows/git#1284).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants