These are chat archives for ensime/ensime-sublime

4th
Mar 2016
Afsal Thaj
@afsalthaj
Mar 04 2016 13:16

@all
I came across a following error while doing Ensime:Startup..
Could someone help me out with this?

2016-03-04 23:59:52,956 [INFO ]  Server: OUT: b'23:59:52.956 INFO  akka://ENSIME/user/ensime-main/project a.a.LocalActorRef - Message [org.ensime.api.ConnectionInfoReq$] from Actor[akka://ENSIME/user/ensime-main/tcp-server/con1/1#-2047828005] to Actor[akka://ENSIME/user/ensime-main/project#1790467827] was not delivered. [1] dead letters encountered. This logging can be turn\n'
2016-03-04 23:59:52,959 [INFO ]  Server: OUT: b'23:59:52.959 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/1 a.i.TcpListener - Unbinding endpoint /127.0.0.1:49969\n'
2016-03-04 23:59:52,961 [INFO ]  Server: OUT: b'23:59:52.960 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/1 a.i.TcpListener - Unbound endpoint /127.0.0.1:49969, stopping listener\n'
2016-03-04 23:59:52,961 [INFO ]  Server: OUT: b'23:59:52.961 INFO  akka://ENSIME/system/IO-TCP-STREAM/server-1-%2F127.0.0.1%3A0 a.a.LocalActorRef - Message [akka.io.Tcp$Unbound$] from Actor[akka://ENSIME/system/IO-TCP/selectors/$a/1#1493790444] to Actor[akka://ENSIME/system/IO-TCP-STREAM/server-1-%2F127.0.0.1%3A0#1766597311] was not delivered. [2] dead letters encountered. This logging can be tu\n'
2016-03-04 23:59:52,962 [INFO ]  Server: OUT: b'23:59:52.962 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/0 a.i.SelectionHandler - Monitored actor [Actor[akka://ENSIME/user/ensime-main/tcp-server#-1748149795]] terminated\n'
2016-03-04 23:59:52,962 [INFO ]  Server: OUT: b'23:59:52.962 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/0 a.i.TcpListener - Closing serverSocketChannel after being stopped\n'
2016-03-04 23:59:52,962 [INFO ]  Server: OUT: b'23:59:52.962 DEBUG EventStream a.e.EventStream - shutting down: StandardOutLogger started\n'
2016-03-04 23:59:52,963 [ERROR]  *****    ERROR     *****
2016-03-04 23:59:52,964 [ERROR]  Traceback (most recent call last):
  File "ensime in /Users/afsalthaj/Library/Application Support/Sublime Text 3/Installed Packages/Ensime.sublime-package", line 379, in receive_loop
ConnectionResetError: [Errno 54] Connection reset by peer

2016-03-04 23:59:52,964 [INFO ]  Server: OUT: b'23:59:52.964 DEBUG akka://ENSIME/system/IO-TCP/selectors/$a/2 a.i.SelectionHandler - Monitored actor [Actor[akka://ENSIME/user/ensime-main/tcp-server/con1#196094646]] terminated\n'

This is an excerpt from ensime.log

Rory Graves
@rorygraves
Mar 04 2016 13:18
I can't see enough from this log fragment to tell but it looks like the Ensime server shut down with an error. About 5 lines above your snapshot I would expect to see a stacktace of some kind.
Afsal Thaj
@afsalthaj
Mar 04 2016 13:19
its a bit too long..il paste it here
This message was deleted
guess its not wrapped text..
rg$ensime$vfs$RichVFS$$withContext$extension(EnsimeVFS.scala:52)\n\t... 24 common frames omitted\nCaused by: java.util.zip.ZipException: error in opening zip file\n\tat java.util.zip.ZipFile.open(Native Method)\n\tat java.util.zip.ZipFile.<init>(ZipFile.java:215)\n\tat java.util.zip.ZipFile.<init>(ZipFile.java:145)\n\tat java.util.jar.JarFile.<init>(JarFile.java:154)\n\tat java.util.jar.JarFile.<init>(JarFile.java:118)\n\tat org.apache.commons.vfs2.provider.jar.JarFileSystem.createZipFile(JarFileSystem.java:58)\n\t... 37 common frames omitted\n'
2016-03-04 23:59:52,956 [INFO ] Server: OUT: b'23:59:52.956 INFO akka://ENSIME/user/ensime-main/project a.a.LocalActorRef - Message [org
16-03-04 23:59:52,953 [INFO ] Server: OUT: b'23:59:52.953 INFO None Server - Shutting down the ActorSystem\n'
2016-03-04 23:59:52,954 [INFO ] Server: OUT: b'23:59:52.954 INFO None Server - Awaiting actor system termination\n'
2016-03-04 23:59:52,954 [INFO ] Server: OUT: b'23:59:52.954 ERROR akka://ENSIME/user/ensime-main/project a.a.OneForOneStrategy - exception during creation\nakka.actor.ActorInitializationException: exception during creation\n\tat akka.actor.ActorInitializationException$.apply(Actor.scala:166)\n\tat akka.actor.ActorCell.create(ActorCell.scala:596)\n\tat akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)\n\tat akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)\n\tat akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)\n\tat akka.dispatch.Mailbox.run(Mailbox.scala:219)\n\tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)\n\tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\n\tat scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\n\tat scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\n\tat scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\nCaused by: java.lang.reflect.InvocationTargetException: null\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\n\tat akka.util.Reflect$.instantiate(Reflect.scala:66)\n\tat akka.actor.ArgsReflectConstructor.produce(Props.scala:355)\n\tat akka.actor.Props.newActor(Props.scala:255)\n\tat akka.actor.ActorCell.newActor(ActorCell.scala:552)\n\tat akka.actor.ActorCell.create(ActorCell.scala:578)\n\t... 9 common frames omitted\nCaused by: org.apache.commons.vfs2.FileSystemException: Unknown message with code "Could not open Jar file "/Users/afsalthaj/.ivy2/cache/antlr/antlr/srcs/antlr-2.7.7-sources.jar". in /Users/afsalthaj/.ivy2/cache/antlr/antlr/srcs/antlr-2.7.7-sources.jar =>".\n\tat org.ensime.vfs.package$RichVFS$.org$ensime$vfs$RichVFS
KaTeX parse error: Unexpected character: '$' at position 11: withContext̲$extension(Ens: withContext$extension(EnsimeVFS.scala:53)\n\tat org.ensime.vfs.package$RichVFS$.vjar$extension0(EnsimeVFS.scala:66)\n\tat org.ensime.indexer.SourceResolver
anonfun$4.apply(SourceResolver.scala:63)\n\tat org.ensime.indexer.SourceResolver$$anonfun$4.apply(SourceResolver.scala:61)\n\tat scala.collection.immutable.List.map(List.scala:277)\n\tat org.ensime.indexer.SourceResolver.<init>(SourceResolver.scala:61)\n\tat org.ensime.core.Project.<init>(Project.scala:46)\n\t... 18 common frames omitted\nCaused by: org.apache.commons.vfs2.FileSystemException: Could not open Jar file "/Users/afsalthaj/.ivy2/cache/antlr/antlr/srcs/antlr-2.7.7-sources.jar".\n\tat org.apache.commons.vfs2.provider.jar.JarFileSystem.createZipFile(JarFileSystem.java:62)\n\tat org.apache.commons.vfs2.provider.zip.ZipFileSystem.getZipFile(ZipFileSystem.java:136)\n\tat org.apache.commons.vfs2.provider.jar.JarFileSystem.getZipFile(JarFileSystem.java:214)\n\tat org.apache.commons.vfs2.provider.zip.ZipFileSystem.init(ZipFileSystem.java:83)\n\tat org.apache.commons.vfs2.provider.AbstractVfsContainer.addComponent(AbstractVfsContainer.java:52)\n\tat org.apache.commons.vfs2.provider.AbstractFileProvider.addFileSystem(AbstractFileProvider.java:101)\n\tat org.apache.commons.vfs2.provider.AbstractLayeredFileProvider.createFileSystem(AbstractLayeredFileProvider.java:90)\n\tat org.apache.commons.vfs2.provider.AbstractLayeredFileProvider.findFile(AbstractLayeredFileProvider.java:63)\n\tat org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693)\n\tat org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:649)\n\tat org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:605)\n\tat org.ensime.vf
Afsal Thaj
@afsalthaj
Mar 04 2016 13:28
its quite hard for me to debug with my current knowledge on ensime :( hope this one is ok with you
Rory Graves
@rorygraves
Mar 04 2016 13:35
I think there is a log file in the .ensime_cache directory. Can you paste it from there into an issue. Not seen this one before.
Afsal Thaj
@afsalthaj
Mar 04 2016 13:47
okkay
there is one log file called .saveClassPath.log
[warn] The global sbt directory is now versioned and is located at /Users/afsalthaj/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/afsalthaj/.sbt but not in /Users/afsalthaj/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Loading project definition from /Users/afsalthaj/stash/afsal-dataproducts.features-sitecatalyst/.ensime_cache/Resolution/project
[warn] The global sbt directory is now versioned and is located at /Users/afsalthaj/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/afsalthaj/.sbt but not in /Users/afsalthaj/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[info] Set current project to resolution (in build file:/Users/afsalthaj/stash/afsal-dataproducts.features-sitecatalyst/.ensime_cache/Resolution/)
[warn] The global sbt directory is now versioned and is located at /Users/afsalthaj/.sbt/0.13.
[warn] You are seeing this warning because there is global configuration in /Users/afsalthaj/.sbt but not in /Users/afsalthaj/.sbt/0.13.
[warn] The global sbt directory may be changed via the sbt.global.base system property.
[success] Total time: 0 s, completed 04/03/2016 11:59:51 PM
logged the isse ensime/ensime-sublime#102
with full ensime.log file
Rory Graves
@rorygraves
Mar 04 2016 14:08
Thanks
Updated the ticket - looks like an invalid source jar file. Try removing and restarting.
Afsal Thaj
@afsalthaj
Mar 04 2016 21:27
sure