【问题标题】:emacs error in tramp mode流浪模式下的emacs错误
【发布时间】:2013-02-25 17:32:17
【问题描述】:

我已经用 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 文件,但这并没有解决问题。

【问题讨论】:

  • 尝试使用/sshx: 协议而不是/ssh:

标签: emacs tramp


【解决方案1】:
  • 尝试改用scpxsshx 协议。
  • 尝试(setq tramp-verbose 6) 并检查输出缓冲区以查看实际情况(C-h v tramp-verbose 查看级别),然后从那里继续。
  • 有时是因为我的ssh-agent 死了。重新启动它可以解决问题。
  • 有时是因为 TRAMP 仍然认为连接在某种程度上可用,而实际上它不可用。发生这种情况时,我会使用M-x ibuffer * * D RET 来终止所有 TRAMP 缓冲区,以便重新开始。

如果这些都不起作用,请尝试使用 melpa 提供的最新 TRAMP 或重新安装它。 TRAMP 开箱即用,效果很好,也许你调整了一些东西破坏了它?

【讨论】:

    猜你喜欢
    • 2010-10-24
    • 1970-01-01
    • 2018-05-06
    • 2016-07-16
    • 1970-01-01
    • 2011-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多