Emacs在随机模式下出现错误



我已经使用emacs设置了tramp模式,已经使用该模式工作了一段时间,最近我开始得到以下错误,我无法打开任何文件。

Loading /etc/emacs/site-start.d/50sml-mode.el (source)...done [3 times]
For information about GNU Emacs and the GNU system, type C-h C-a.
Tramp: Opening connection for toolserver using scp...
Tramp: Sending command `exec ssh   -e none toolserver'
Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec ssh   -e none toolserver'
Tramp: Found remote shell prompt on `toolserver'
Tramp: Opening connection for toolserver using scp...done
byte-code: Couldn't find exit status of `test -e /home/FILE_NAME.py'

我已经将实际文件重命名为FILE_NAME.py

行动:

我删除了.tramp_history文件,但这并没有解决问题。

    请尝试使用scpxsshx协议。
  • 尝试(setq tramp-verbose 6)并检查输出缓冲区,看看真正发生了什么(C-h v tramp-verbose看到的水平),然后从那里继续。有时候,这是因为我的ssh-agent死了。重新启动它可以解决问题。
  • 有时候,这是因为当连接不可用时,TRAMP仍然认为它是可用的。当发生这种情况时,我执行M-x ibuffer * * D RET来杀死所有的TRAMP缓冲区,以便重新开始。

如果这些都不起作用,请尝试使用最新的来自melpa的TRAMP或重新安装它。TRAMP开箱运行得很好,也许是你调整了什么东西把它弄坏了?

最新更新