在 macOS 上启动 gitk 会出现错误应用程序未运行

Jha*_*noy 15 git

当我加载 gitk 时出现错误 ->

Error in startup script: 58:102: execution error: System Events got an error: Application isn’t running. (-600)
    while executing
"exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes whose unix id is %d to true
        end te..."
    invoked from within
"if {[tk windowingsystem] eq "aqua"} {
    exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes ..."
    (file "/usr/local/bin/gitk" line 12212)
Run Code Online (Sandbox Code Playgroud)

我的 git 版本是 2.17.1,我的 mac os 版本是 10.13.6。有想法该怎么解决这个吗?

Bal*_*ato 23

在较旧的问题中有关于此的相关信息:Applescript failed with error (-600) when launch over ssh on Mavericks

人们报告说通过重新启动机器或杀死“系统事件”来解决这个问题。

$ kill -9 $(pgrep "System Events")
Run Code Online (Sandbox Code Playgroud)

  • 我每个月都会回到这个答案:-) (2认同)