1

我用sublime打开ensime项目,ensime服务器启动正常。使用一段时间后,出现以下错误。

处理 RPC: (swank:completions D:\Scala\ensime\src\main\scala\Main.scala 52 0) Writing: 000086(:return (:abort 202 "格式错误的 swank:completions call: (swank:completions D:\ Scala\ensime\src\main\scala\Main.scala 52 0)") 21) 套接字读取器中的错误:java.io.EOFException:在套接字读取器中到达文件末尾。建立连接,创建处理程序...


当我使用 Emacs 时,从 emacs 内部,执行 Mx ensime。出现以下错误。

d:\myemacs.emacs.d\ensime>set CLASSPATH="d:\myemacs.emacs.d\ensime\bin\..\lib\ant-1.6.5.jar;d:\myemacs.emacs.d\ ensime\bin\..\lib\ant-1.8.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\ant-launcher-1.8.1.jar;d:\myemacs. emacs.d\ensime\bin\..\lib\asm-3.2.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\asm-commons-3.2.jar;d:\myemacs. emacs.d\ensime\bin\..\lib\asm-tree-3.2.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\backport-util-concurrent-3.1.jar;d :\myemacs.emacs.d\ensime\bin\..\lib\classworlds-1.1-alpha-2.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\critbit-0.0.4 .jar;d:\myemacs.emacs.d\ensime\bin\..\lib\ensime_2.9.2-RC1-0.9.3.RC4.jar;d:\myemacs.emacs.d\ensime\bin\.. \lib\ivy-2.1.0.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-ant-tasks-2.1.0.jar;d:\myemacs.emacs.d\ ensime\bin\..\lib\maven-artifact-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-artifact-manager-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-error-diagnostics-2.2.1.jar;d:\myemacs。 emacs.d\ensime\bin\..\lib\maven-model-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-plugin-registry-2.2.1 .jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-profile-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven -project-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-repository-metadata-2.2.1.jar;d:\myemacs.emacs.d\ensime\ bin\..\lib\maven-settings-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\nekohtml-1.9.6.2.jar;d:\myemacs.emacs。 d\ensime\bin\..\lib\org.eclipse.jdt.core-3.6.0.v_A58.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\org.scala-refactoring_2 .9.2-SNAPSHOT-0.5.0-SNAPSHOT.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\plexus-container-default-1.0-alpha-9-stable-1.jar;d :\myemacs.emacs.d\ensime\bin\..\lib\plexus-interpolation-1.11.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\plexus-utils-1.5.15.jar;d:\myemacs.emacs.d\ensime\ bin\..\lib\scala-compiler.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\scala-library.jar;d:\myemacs.emacs.d\ensime\bin\ ..\lib\scalariform_2.9.1-0.1.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-file-1.0-beta-6.jar;d:\myemacs. emacs.d\ensime\bin\..\lib\wagon-http-lightweight-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-http-shared -1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-provider-api-1.0-beta-6.jar;d:\myemacs.emacs.d\ ensime\bin\..\lib\xercesMinimal-1.9.6.2.jar"1-0.1.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-file-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin \..\lib\wagon-http-lightweight-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-http-shared-1.0-beta-6。 jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-provider-api-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\ lib\xercesMinimal-1.9.6.2.jar"1-0.1.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-file-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin \..\lib\wagon-http-lightweight-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-http-shared-1.0-beta-6。 jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-provider-api-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\ lib\xercesMinimal-1.9.6.2.jar"

d:\myemacs.emacs.d\ensime>if "" == "" (设置 ENSIME_JVM_ARGS=-Xms256M -Xmx1512M -XX:PermSize=128m -Xss1M -Dfile.encoding=UTF-8 )

d:\myemacs.emacs.d\ensime>java -classpath "d:\myemacs.emacs.d\ensime\bin\..\lib\ant-1.6.5.jar;d:\myemacs.emacs.d\ ensime\bin\..\lib\ant-1.8.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\ant-launcher-1.8.1.jar;d:\myemacs. emacs.d\ensime\bin\..\lib\asm-3.2.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\asm-commons-3.2.jar;d:\myemacs. emacs.d\ensime\bin\..\lib\asm-tree-3.2.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\backport-util-concurrent-3.1.jar;d :\myemacs.emacs.d\ensime\bin\..\lib\classworlds-1.1-alpha-2.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\critbit-0.0.4 .jar;d:\myemacs.emacs.d\ensime\bin\..\lib\ensime_2.9.2-RC1-0.9.3.RC4.jar;d:\myemacs.emacs.d\ensime\bin\.. \lib\ivy-2.1.0.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-ant-tasks-2.1.0.jar;d:\myemacs.emacs.d\ ensime\bin\..\lib\maven-artifact-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-artifact-manager-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-error-diagnostics-2.2.1.jar;d:\myemacs。 emacs.d\ensime\bin\..\lib\maven-model-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-plugin-registry-2.2.1 .jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-profile-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven -project-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\maven-repository-metadata-2.2.1.jar;d:\myemacs.emacs.d\ensime\ bin\..\lib\maven-settings-2.2.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\nekohtml-1.9.6.2.jar;d:\myemacs.emacs。 d\ensime\bin\..\lib\org.eclipse.jdt.core-3.6.0.v_A58.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\org.scala-refactoring_2 .9.2-SNAPSHOT-0.5.0-SNAPSHOT.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\plexus-container-default-1.0-alpha-9-stable-1.jar;d :\myemacs.emacs.d\ensime\bin\..\lib\plexus-interpolation-1.11.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\plexus-utils-1.5.15.jar;d:\myemacs.emacs.d\ensime\ bin\..\lib\scala-compiler.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\scala-library.jar;d:\myemacs.emacs.d\ensime\bin\ ..\lib\scalariform_2.9.1-0.1.1.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-file-1.0-beta-6.jar;d:\myemacs. emacs.d\ensime\bin\..\lib\wagon-http-lightweight-1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-http-shared -1.0-beta-6.jar;d:\myemacs.emacs.d\ensime\bin\..\lib\wagon-provider-api-1.0-beta-6.jar;d:\myemacs.emacs.d\ ensime\bin\..\lib\xercesMinimal-1.9.6.2.jar" -Xms256M -Xmx1512M -XX:PermSize=128m -Xss1M -Dfile.encoding=UTF-8 org.ensime.server.Server c:/Users/zxu /AppData/Local/Temp/ensime_port.5320 'java' 未被识别为内部或外部命令,可运行的程序或批处理文件。

进程低级enime-server异常退出,代码为1


这个问题困扰了我很久,这两个问题不解决我就睡不着了。谢谢!</p>

我的系统环境: OS: Window 7 64bit JAVA: 1.7 or 1.6 Scala: 2.9.1 final Sbt: 0.11.3 Ensime: ensime_2.9.2-RC1-0.9.3.RC4.tar.gz

4

1 回答 1

1

尝试将 Java 的 bin 目录添加到 PATH 环境变量中。

于 2012-07-10T06:52:13.273 回答