Unison失败,并显示“格式错误的消息".错误,同一远程&本地版本 [英] Unison fails with "ill-formed message" error, same remote & local versions

查看:171
本文介绍了Unison失败,并显示“格式错误的消息".错误,同一远程&本地版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在升级到Mac OS X Catalina之后,我试图统一工作.不幸的是,macports安装了较新版本的ocaml(4.08.1),这意味着统一的2.51.2版本将无法编译.

I'm trying to get unison working after upgrading to Mac OS X Catalina. Unfortunately, macports installs a more recent version of ocaml (4.08.1), which means that the unison 2.51.2 release won't compile.

嗯,那没问题,我只是统一更新为git master,然后重新编译.不幸的是,这在同步时失败,因为用于在Mac上编译的ocaml版本(4.08.1)与用于在另一台计算机上编译的ocaml版本(4.07.1)不同.叹.好的,使用opam magic在我的机器上安装4.07.1.一切都应该没事吧?不!

Well, that's no problem, I just update to git master on unison, and recompile. Unfortunately, this fails at sync time because the version of ocaml used to compile on the mac (4.08.1) is different from the one used to compile on the other machine (4.07.1). Sigh. Okay, use opam magic to install 4.07.1 on my machine. Everything should be fine, right? No!

这是错误:

Connected [//zzzmyhost//home/clements/unison-home -> //zzzmyotherhost//Users/clements/clements]
Looking for changes
Uncaught exception Failure("input_value: ill-formed message")
Raised at file "/private/tmp/unison/src/lwt/lwt.ml", line 126, characters 16-23
Called from file "/private/tmp/unison/src/lwt/generic/lwt_unix_impl.ml", line 102, characters 8-23
Called from file "/private/tmp/unison/src/update.ml" (inlined), line 2105, characters 2-69
Called from file "/private/tmp/unison/src/uitext.ml", line 978, characters 16-56
Called from file "/private/tmp/unison/src/uitext.ml", line 1066, characters 6-90
Called from file "/private/tmp/unison/src/uitext.ml", line 1088, characters 19-66
Called from file "/private/tmp/unison/src/uitext.ml", line 1144, characters 21-43

这是怎么回事?

推荐答案

S ...这里的问题(非常不明显)实际上是由同步文件损坏/格式错误造成的,该文件是在较早的测试.

Sigh... the problem here (very non-obvious) is actually with a corrupted/wrong-format syncronization file, created when doing the failed sync in the earlier test.

解决方案是进入~/Library/Application Support/Unison(在UNIX机器上,该路径可能位于~/.unison中,并删除引起问题的存档文件(可能是最新的)).所有存档文件,然后重新开始.

The solution is just to go into ~/Library/Application Support/Unison (on a UNIX machine this path would presumably live in ~/.unison and delete the archive file that's causing the problem (probably the most recent one). In a pinch, just delete all of the archive files and start over.

这篇关于Unison失败,并显示“格式错误的消息".错误,同一远程&本地版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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