Emacs错误“无法初始化颜色列表取消存档"当我在终端上打电话时 [英] Emacs error "Failed to initialize color list unarchiver" when I call it in the terminal

查看:288
本文介绍了Emacs错误“无法初始化颜色列表取消存档"当我在终端上打电话时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在MacBook Pro上安装了emacs,但是当我在终端中键入"emacs"时,出现此错误:

I've just installed emacs on my MacBook Pro, but when I type "emacs" in my terminal I get this error :

Emacs-x86_64-10_10 [5647:247335]无法初始化颜色列表取消存档器:错误域= NSCocoaErrorDomain代码= 4864" *-[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]:无法解密非存档文件通过NSKeyedUnarchiver"UserInfo = {NSDebugDescription = * -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]:NSKeyedUnarchiver无法解码非密钥存档}

Emacs-x86_64-10_10[5647:247335] Failed to initialize color list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 "* -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver" UserInfo={NSDebugDescription=* -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot be decoded by NSKeyedUnarchiver}

然后emacs可以正确打开,但是由于此错误,我无法编译文件.

Then emacs opens correctly, but I can't compile files because of this error.

推荐答案

这是macOS Mojave上Emacs的已知错误.显然,Emacs一直在使用已弃用的API,现在将其删除.您可以在"emacs-devel"邮件中关注该线程列表.

This is a known error for Emacs on macOS Mojave. Apparently Emacs has been using a deprecated, and now removed, API. You can follow the thread on the "emacs-devel" mailing list.

编辑2019年7月25日:

Edit 25 JUL 2019:

由于人们似乎仍然可以解决此问题,因此将该问题的补丁推送到了emacs-26分支 https://emacsformacosx.com/的最新版本的Emacs 26(或更高版本)将起作用.如果您现在只是升级,而仍然使用最新的Emacs遇到错误/崩溃,请删除~/Library/Colors/Emacs.clr并重新启动新的Emacs. Emacs将重新创建该文件的文件的未损坏版本这里.

Since people still seem to be getting to this question, patches for this issue were pushed the emacs-26 branch as of Fri, 28 Sep 2018. The latest version of Emacs 26 (or greater) from source or https://emacsformacosx.com/ will work. If you're just now upgrading and you still get the error/crash with the latest Emacs, delete ~/Library/Colors/Emacs.clr and restart your new Emacs. Emacs will recreate a non-corrupted version of that file as documented here.

这篇关于Emacs错误“无法初始化颜色列表取消存档"当我在终端上打电话时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆