【问题标题】:eclipse remote project with sftp - dltk indexing results in 'no more sessions' error带有 sftp 的 Eclipse 远程项目 - dltk 索引导致“没有更多会话”错误
【发布时间】:2013-07-02 04:51:47
【问题描述】:

我正在运行一个安装了 debian 的虚拟机作为本地网络服务器。我正在使用远程项目(RSE 插件)直接在那个虚拟机上使用 eclipse。我遇到的问题是,当我打开项目时,eclipse 会立即启动 DLTK-indexer。在 debian 机器上,我的 /var/log/auth.log 立即被无穷无尽的列表填满:

sshd[4271]: error: no more sessions

在 Eclipse 中,错误日志被填满(尽管使用 JRE 6):

org.eclipse.core.runtime.CoreException: Operation failed. File system input or output error: rse://xxx.xxx.xxx.xxx/path/to/file/being/indexed
org.eclipse.rse.services.files.RemoteFileIOException: Operation failed. File system input or output error 

索引完成后,我无法保存正在处理的任何文件,因为所有 ssh 会话都已在服务器上使用。
索引进程似乎试图为它索引的每个文件打开一个新连接。

索引完成后,一切都恢复正常,我可以保存文件等。 我希望索引器完成它的工作,但由于代码完成之后不起作用,eclipse 无法进行索引。

一种解决方案是禁用索引,但这不是 IDE 的目的,代码完成是我仍然使用 IDE 的少数原因之一(至少对于大型项目而言)。

任何关于如何使索引工作和摆脱 ssh 错误的想法都会很棒!

更多系统信息:

主机系统: Windows 7 Prof. 64 位
来宾系统(虚拟机):启用 sftp 子系统的 Debian Lenny
Eclipse: 带有 Zend PDT 和 RSE 的 Indigo(已经运行 Java 6 JRE 1.6.0_45)

感谢您的帮助!

大卫

【问题讨论】:

    标签: eclipse ssh sftp dltk


    【解决方案1】:

    我可以通过做两件事来解决这个问题:

    1. 设置 ssh 以在虚拟机中使用多路复用(参见 http://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing
    2. 手动安装 PDT 功能(使用 Zend PDT 是浪费时间)将 eclipse 升级到 Kepler 64 位版本(在 Windows 7 中更快更稳定)

    这也适用于 Java7!

    现在我已经完全索引项目并且可以使用代码完成了!

    【讨论】:

      猜你喜欢
      • 2014-09-18
      • 1970-01-01
      • 1970-01-01
      • 2017-10-05
      • 1970-01-01
      • 2014-09-22
      • 2014-11-29
      • 2022-07-09
      • 1970-01-01
      相关资源
      最近更新 更多