启动gitk错误
当我加载 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我最近在 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.
我在 Lion 上遇到了这个问题。这是我的解决方案:
I had this problem on Lion. This was my solution:
在您的主目录中查找 ~/.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.
~~~
正如博文:
使用Macport安装mercurial结果安装了一堆相依的库,结果导致gitk不能执行
Err...我的意思是:
问题是第一次安装修改了
.bashrc
:修改原始 PATH (
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/ bin:/usr/X11/bin
)在
.bashrc
中尝试:As mention in this blog post:
使用Macport安裝mercurial結果安裝了一堆相依的library,結果造成gitk不能執行
Err... I meant:
The issue was that the first installation has modified the
.bashrc
with:modifying the original PATH (
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
)Try instead in the
.bashrc
: