简体   繁体   English

tramp模式下的emacs错误

[英]emacs error in tramp mode

I have setup tramp mode with emacs, have been working using that mode for awhile, recently I start getting following error where I am unable to open any files. 我已经设置了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'

I have re-name the actual file to FILE_NAME.py 我已将实际文件重命名为FILE_NAME.py

Actions taken: 所采取的行动:

I deleted the .tramp_history file but that didn't fix the problem. 我删除了.tramp_history文件,但没有解决问题。

  • try using the scpx or sshx protocol instead. 请尝试使用scpxsshx协议。
  • try (setq tramp-verbose 6) and check the output buffer to see what's really happening ( Ch v tramp-verbose to see the levels), then proceed from there. 尝试(setq tramp-verbose 6)并检查输出缓冲区以查看实际发生的情况( Ch v tramp-verbose查看级别),然后从那里继续。
  • Sometimes, it's because my ssh-agent is dead. 有时,这是因为我的ssh-agent已经死了。 Restarting it solves the problem. 重新启动它解决了这个问题。
  • Sometimes it's because TRAMP still thinks the connection is somewhat usable when it's not. 有时这是因为TRAMP仍然认为连接在某些情况下可行。 When this happen, I do Mx ibuffer * * D RET to kill all the TRAMP buffers so it starts over. 当发生这种情况时,我会执行Mx ibuffer * * D RET来杀死所有TRAMP缓冲区,以便重新开始。

If none of this works, try to use latest TRAMP from melpa or to reinstall it. 如果这些都不起作用,请尝试使用melpa中的最新TRAMP或重新安装它。 TRAMP works pretty fine out of the box, maybe you tweaked something that broke it? TRAMP开箱即用,也许你调整了破坏它的东西?

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

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