启动gitk错误

发布于 2024-08-28 15:59:28 字数 370 浏览 8 评论 0原文

当我加载 gitk 时,我收到一个关于参数的错误

Error in startup script: bad argument "zoomed": must be normal, iconic, or withdrawn
    while executing
"wm state . $geometry(state)"
    (procedure "makewindow" line 320)
    invoked from within
"makewindow"
    (file "/usr/local/git/bin/gitk" line 11250)

有人知道解决方案吗?我正在 Mac OS X 10.6.3 上工作,

谢谢!

When I'm loading gitk I get an error about an argument

Error in startup script: bad argument "zoomed": must be normal, iconic, or withdrawn
    while executing
"wm state . $geometry(state)"
    (procedure "makewindow" line 320)
    invoked from within
"makewindow"
    (file "/usr/local/git/bin/gitk" line 11250)

Anybody knows a solution? I'm working on Mac OS X 10.6.3

thx!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

锦爱 2024-09-04 15:59:29

我最近在 Ubuntu 18.04 上遇到了这个问题。

我删除了主目录中的 .config/git/gitk ,一切又恢复正常了。

I had this problem recently on Ubuntu 18.04.

I deleted .config/git/gitk in the home directory and everything was fine again.

悲欢浪云 2024-09-04 15:59:28

我在 Lion 上遇到了这个问题。这是我的解决方案:

cd 
rm -rf .gitk

I had this problem on Lion. This was my solution:

cd 
rm -rf .gitk
把昨日还给我 2024-09-04 15:59:28

在您的主目录中查找 ~/.gitk 启动脚本。它可能会包含类似 set Geometry(state) normal 的行。确保 ~/.gitk 文件具有 Unix 风格的行结尾而不是 DOS 行结尾,即 LF 而不是 LFCR。

您可以通过删除 ~/.gitk 并允许在下次运行 gitk 时重新创建它来解决问题,如 ejfresch 所指出的。
~~~

Look for the ~/.gitk startup script in your home directory. It will probably contain a line like set geometry(state) normal. Make sure the ~/.gitk file has Unix-style line endings rather than DOS line endings, i.e. LF not LFCR.

You may be able to fix things up by deleting ~/.gitk and allowing it to be recreated when you next run gitk, as noted by ejfresch.
~~~

む无字情书 2024-09-04 15:59:28

正如博文

使用Macport安装mercurial结果安装了一堆相依的库,结果导致gitk不能执行

Err...我的意思是:

结果使用Macport安装,mercurial安装了一堆库的依赖,导致gitk无法执行。

Gitk 将使用错误的 tk 库版本。

问题是第一次安装修改了 .bashrc

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

修改原始 PATH (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/X11/bin)

.bashrc 中尝试:

export PATH=$PATH:/opt/local/bin:/opt/local/sbin

As mention in this blog post:

使用Macport安裝mercurial結果安裝了一堆相依的library,結果造成gitk不能執行

Err... I meant:

The results using Macport installation, mercurial installs a bunch of dependencies of the library, resulting in a gitk which can not perform.

Gitk will use the wrong tk library version.

The issue was that the first installation has modified the .bashrc with:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

modifying the original PATH (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin)

Try instead in the .bashrc:

export PATH=$PATH:/opt/local/bin:/opt/local/sbin
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文