{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-server/issues/1267","labels_url":"https://api.github.com/repos/ensime/ensime-server/issues/1267/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-server/issues/1267/comments","events_url":"https://api.github.com/repos/ensime/ensime-server/issues/1267/events","html_url":"https://github.com/ensime/ensime-server/issues/1267","id":129908405,"number":1267,"title":"ClassCastException when requesting DocUriAtPointReq over HTTP","user":{"login":"msiegenthaler","id":261358,"avatar_url":"https://avatars.githubusercontent.com/u/261358?v=3","gravatar_id":"","url":"https://api.github.com/users/msiegenthaler","html_url":"https://github.com/msiegenthaler","followers_url":"https://api.github.com/users/msiegenthaler/followers","following_url":"https://api.github.com/users/msiegenthaler/following{/other_user}","gists_url":"https://api.github.com/users/msiegenthaler/gists{/gist_id}","starred_url":"https://api.github.com/users/msiegenthaler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msiegenthaler/subscriptions","organizations_url":"https://api.github.com/users/msiegenthaler/orgs","repos_url":"https://api.github.com/users/msiegenthaler/repos","events_url":"https://api.github.com/users/msiegenthaler/events{/privacy}","received_events_url":"https://api.github.com/users/msiegenthaler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-29T23:12:16Z","updated_at":"2016-01-30T00:37:24Z","closed_at":null,"body":"I'm writing a Scala plugin for Cloud9, while most other things (compile errors, code completions, formatting) work I run into a problem with the tooltips I want to display:\r\n\r\nI get a \"ClassCastException: Cannot cast scala.Some to org.ensime.api.EnsimeServerMessage\" whenever I call ENSIME with a DocUriAtPointReq (and if I'm correct also on TypeAtPointReq).\r\nIt does not seem to depend on the contents of the file or the position (aka point).\r\n\r\nI use the 0.9.10-SNAPSHOT from today.\r\n\r\nFull request\r\n`\r\n{\r\n      typehint: \"DocUriAtPointReq\",\r\n      file: {\r\n        file: \"/home/ubuntu/workspace/src/main/scala/A.scala\"\r\n        contents: \"...omitted...\"\r\n      },\r\n      point: {\r\n        from: 10,\r\n        to: 12\r\n      }\r\n    }\r\n`\r\n\r\nFull exception:\r\n`\r\n23:03:58.315 ERROR ActorSystem(ENSIME) a.a.ActorSystemImpl - Error during processing of request HttpRequest(HttpMethod(POST),http://localhost:38541/rpc,List(Host: localhost:38541, Connection: close),HttpEntity.Default(application/json,146,akka.stream.scaladsl.Source@237af028),HttpProtocol(HTTP/1.1))\r\njava.lang.ClassCastException: Cannot cast scala.Some to org.ensime.api.EnsimeServerMessage\r\n        at java.lang.Class.cast(Class.java:3369) ~[na:1.8.0_72]\r\n        at scala.concurrent.Future$$anonfun$mapTo$1.apply(Future.scala:405) ~[scala-library-2.11.7.jar:na]\r\n        at scala.util.Success$$anonfun$map$1.apply(Try.scala:237) ~[scala-library-2.11.7.jar:na]\r\n        at scala.util.Try$.apply(Try.scala:192) ~[scala-library-2.11.7.jar:na]\r\n        at scala.util.Success.map(Try.scala:237) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:63) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:78) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BatchingExecutor$Batch.run(BatchingExecutor.scala:54) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:599) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:106) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:597) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40) ~[scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248) ~[scala-library-2.11.7.jar:na]\r\n        at akka.pattern.PromiseActorRef.$bang(AskSupport.scala:266) ~[akka-actor_2.11-2.3.14.jar:na]\r\n        at org.ensime.core.Analyzer$$anonfun$allTheThings$1.applyOrElse(Analyzer.scala:217) ~[core_2.11-0.9.10-SNAPSHOT.jar:0.9.10-SNAPSHOT]\r\n        at org.ensime.core.Analyzer$$anonfun$allTheThings$1.applyOrElse(Analyzer.scala:157) ~[core_2.11-0.9.10-SNAPSHOT.jar:0.9.10-SNAPSHOT]\r\n        at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) ~[scala-library-2.11.7.jar:na]\r\n        at org.ensime.core.Analyzer$$anonfun$ready$1.applyOrElse(Analyzer.scala:154) ~[core_2.11-0.9.10-SNAPSHOT.jar:0.9.10-SNAPSHOT]\r\n        at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) ~[scala-library-2.11.7.jar:na]\r\n        at akka.event.LoggingReceive.apply(LoggingReceive.scala:62) ~[akka-actor_2.11-2.3.14.jar:na]\r\n        at akka.event.LoggingReceive.apply(LoggingReceive.scala:50) ~[akka-actor_2.11-2.3.14.jar:na]\r\n        at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:123) ~[scala-library-2.11.7.jar:na]\r\n        at akka.event.LoggingReceive.applyOrElse(LoggingReceive.scala:50) ~[akka-actor_2.11-2.3.14.jar:na]\r\n        at akka.actor.Actor$class.aroundReceive(Actor.scala:467) ~[akka-actor_2.11-2.3.14.jar:na]\r\n        at org.ensime.core.Analyzer.aroundReceive(Analyzer.scala:44) ~[core_2.11-0.9.10-SNAPSHOT.jar:0.9.10-SNAPSHOT]\r\n        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) [akka-actor_2.11-2.3.14.jar:na]\r\n        at akka.actor.ActorCell.invoke(ActorCell.scala:487) [akka-actor_2.11-2.3.14.jar:na]\r\n        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) [akka-actor_2.11-2.3.14.jar:na]\r\n        at akka.dispatch.Mailbox.run(Mailbox.scala:220) [akka-actor_2.11-2.3.14.jar:na]\r\n        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) [akka-actor_2.11-2.3.14.jar:na]\r\n        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library-2.11.7.jar:na]\r\n        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library-2.11.7.jar:na]\r\n`"},"comment":{"url":"https://api.github.com/repos/ensime/ensime-server/issues/comments/177031710","html_url":"https://github.com/ensime/ensime-server/issues/1267#issuecomment-177031710","issue_url":"https://api.github.com/repos/ensime/ensime-server/issues/1267","id":177031710,"user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T00:37:24Z","updated_at":"2016-01-30T00:37:24Z","body":"http://ensime.github.io/editors/emacs/troubleshooting/"}}