当我尝试在macOS Mojave (10.14.4)上运行gitk时,出现以下错误:
Error in startup script: file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd"
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
^
file:///System/Library/PrivateFrameworks/FolderActionsKit.framework/Versions/A/Resources/FolderActions.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd"
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
^
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)
我已经尝试过启动gitk时遇到的类似问题的解决方案(重新启动SystemEvents,检查旧的.osax脚本附加项,从homebrew重新安装git等),但没有成功。我还检查了Terminal是否有访问System Events的权限。谷歌错误消息似乎没有找到任何相关信息。
在之前的macOS版本中,gitk一直可以完美地工作。
/System/Library/DTDs/sdef.dtd
是否确实存在吗? - Claus Jørgensen