简体   繁体   English

Emacs TRAMP 模式不起作用(我打开的每个文件都是空的)

[英]Emacs TRAMP mode doesn't work (Every file I open is empty)

I used TRAMP mode quite a lot in the last few days.最近几天我经常使用 TRAMP 模式。 But now it suddenly stopped working.但现在它突然停止工作。 Whenever I attempt to access a remote file, emacs freezes for about a minute and when the file opens, it's always empty.每当我尝试访问远程文件时,emacs 都会冻结大约一分钟,而当文件打开时,它始终为空。

My emacs version is: GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, NS apple-appkit-1348.17) And my TRAMP mode version is: 2.2.11-24.5我的 emacs 版本是: GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, NS apple-appkit-1348.17)而我的 TRAMP 模式版本是: 2.2.11-24.5

I ran into a similar issue when using tramp on a Windows 10 environment.在 Windows 10 环境中使用 Tramp 时,我遇到了类似的问题。 I found that files over 4096 bytes were being compressed when transferred from the remote with gzip, which wasn't supported on Windows 10 (I could probably have fixed that).我发现当使用 gzip 从远程传输时,超过 4096 字节的文件被压缩,这在 Windows 10 上不受支持(我可能已经解决了这个问题)。 I fixed this by changing the tramp-inline-compress-start-size variable to nil .我通过将tramp-inline-compress-start-size变量更改为nil In my case, this didn't cause a performance issue, but it may be better for you to add gzip to your environment.就我而言,这不会导致性能问题,但最好将 gzip 添加到您的环境中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM