Emacs TRAMP 有时无法打开目录
通常我可以使用 trap 来编辑文件并通过 SSH 浏览远程文件系统。尽管在看似随机的时候我会失去在 emacs 中浏览远程文件夹的能力。
我收到错误消息:
Wrong type argument: number-or-marker-p, //DIRED-OPTIONS//
我尝试在没有任何自定义的情况下干净地重新安装 emacs,但错误仍然发生。
有时,错误会在浏览 1 或 2 个目录后发生,而其他时候,我可以在浏览 5 或 6 个目录后才会出现错误。
编辑: 我正在使用在 OS X 10.6.8 上运行的 Emacs 23.3
编辑 2: 虽然我仍在查看流浪者调试日志,但还有一些其他信息。
- 错误发生后,我仍然可以使用打开和保存文件的tramp,只是不能查看目录列表。
- 似乎只有当我保存到使用 git 进行版本控制的目录时才会发生这种情况。
- 在调试日志中,列出了目录内容,但没有输出给用户
- 调试日志中列出的目录显示 ^M (当编辑已在 git 中进行版本控制的文件时,我通常会在 emacs 信息栏中注意到这一点)当我尝试访问非版本控制目录时
Normally I am able to use tramp just fine to edit files and browse through the remote file system through SSH. Though at seemingly random times I would lose the ability to browse remote folders in emacs.
I get the error message:
Wrong type argument: number-or-marker-p, //DIRED-OPTIONS//
I've tried doing a clean reinstall of emacs without any customizations and the error still happens.
Also sometimes the error happens after browsing 1 or 2 directories while other times I'm able to do five or six directories before the error will appear.
Edit:
I'm using Emacs 23.3 running on OS X 10.6.8
Edit 2:
While I'm still going through the tramp debug log A couple of other pieces of information.
- After the error I'm still able to use tramp of open and save files, just not view directory listings.
- It seems to happen only when I save to a directory that is version controlled using git.
- In the debug log the directory contents are listed out but it is not being outputted to the user
- The directory listing inside the debug log show ^M (I usually notice this in the emacs info bar when editing files that have been versioned in git) even when I try to access a non-version controlled directory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该消息本身是无用的。您应该尝试获取有关流浪者行为的更多痕迹,以便找到问题所在。请参阅TRAMP 用户手册的跟踪和配置文件部分。
抱歉,无法提供更多帮助,但在另一个平台上发布了另一个版本...
更新:
将以下内容放入您的 emacs 文件中
然后,使用 trapmp。现在,您应该有一个 *debug trapmp/method hostname* 缓冲区。
The message is useless by itself. You should try to obtain more traces on the tramp behavior in order to find where is the issue. See the Traces and Profiles Section of the TRAMP User Manual.
Sorry to not help more but with another release on another platform…
Update:
Put the following in your emacs file
Then, use tramp. Now, You should have a
*debug tramp/method hostname*
buffer.我发现当我启用时会发生这种情况:
但现在我不知道如何让它在这种模式下工作
I found out that this happens when I enable:
But for now I don't know how to make it work with this mode