{"action":"created","issue":{"url":"https://api.github.com/repos/ensime/ensime-emacs/issues/542","repository_url":"https://api.github.com/repos/ensime/ensime-emacs","labels_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/542/comments","events_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/542/events","html_url":"https://github.com/ensime/ensime-emacs/issues/542","id":185182181,"number":542,"title":"M-. in indirect buffer kills Ensime","user":{"login":"VlachJosef","id":5246747,"avatar_url":"https://avatars.githubusercontent.com/u/5246747?v=3","gravatar_id":"","url":"https://api.github.com/users/VlachJosef","html_url":"https://github.com/VlachJosef","followers_url":"https://api.github.com/users/VlachJosef/followers","following_url":"https://api.github.com/users/VlachJosef/following{/other_user}","gists_url":"https://api.github.com/users/VlachJosef/gists{/gist_id}","starred_url":"https://api.github.com/users/VlachJosef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VlachJosef/subscriptions","organizations_url":"https://api.github.com/users/VlachJosef/orgs","repos_url":"https://api.github.com/users/VlachJosef/repos","events_url":"https://api.github.com/users/VlachJosef/events{/privacy}","received_events_url":"https://api.github.com/users/VlachJosef/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-25T17:27:09Z","updated_at":"2016-10-25T18:23:12Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Create file `Main.scala`:\r\n```scala\r\npackage core\r\n\r\nobject Main {\r\n  def one: String = two\r\n  def two: String = \"2\"\r\n}\r\n``` \r\n2. Run `ensime` command\r\n3. Clone `Main.scala` buffer using `clone-indirect-buffer-other-window` (`C-x 4 c`)\r\n4. Navigate to definition of a method `two` in indirect (cloned) buffer. (ie. `M-.` on line  `def one: String = two`)\r\n\r\n### Expected behaviour\r\n\r\nJump to definition of `two` on line `def two: String = \"2\"`\r\n\r\n### Actual behaviour\r\n\r\nEnsime is non responsive from now on.\r\n\r\n```\r\n16:38:30.157 ERROR akka://ENSIME/user/ensime-main/tcp-server/con1 o.e.s.t.TCPConnectionActor - Error seen during message processing, closing client connection\r\norg.ensime.server.protocol.swank.SwankRPCFormatException: Invalid rpc request (swank:symbol-at-point nil 596)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestEnvelopeFormat$.read(SwankFormats.scala:860)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestEnvelopeFormat$.read(SwankFormats.scala:849)\r\n\tat org.ensime.sexp.Sexp.convertTo(Sexp.scala:21)\r\n\tat org.ensime.server.SwankProtocol.decode(SwankProtocol.scala:17)\r\n\tat org.ensime.server.tcp.TCPConnectionActor.repeatedDecode(TCPConnectionActor.scala:108)\r\n\tat org.ensime.server.tcp.TCPConnectionActor.attemptProcess(TCPConnectionActor.scala:97)\r\n\tat org.ensime.server.tcp.TCPConnectionActor$$anonfun$incoming$1.applyOrElse(TCPConnectionActor.scala:49)\r\n\tat scala.PartialFunction$OrElse.applyOrElse(PartialFunction.scala:170)\r\n\tat akka.actor.Actor$class.aroundReceive(Actor.scala:467)\r\n\tat org.ensime.server.tcp.TCPConnectionActor.aroundReceive(TCPConnectionActor.scala:17)\r\n\tat akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)\r\n\tat akka.actor.ActorCell.invoke(ActorCell.scala:487)\r\n\tat akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)\r\n\tat akka.dispatch.Mailbox.run(Mailbox.scala:220)\r\n\tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)\r\n\tat scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\r\n\tat scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\r\n\tat scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\r\n\tat scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\r\nCaused by: org.ensime.sexp.DeserializationException: Unable to parse SexpNil\r\n\tat org.ensime.sexp.formats.package$.deserializationError(package.scala:7)\r\n\tat org.ensime.sexp.formats.StandardFormats$$anon$2.read(StandardFormats.scala:50)\r\n\tat org.ensime.sexp.formats.StandardFormats$$anon$2.read(StandardFormats.scala:42)\r\n\tat org.ensime.sexp.formats.LegacyLowPriorityProductFormats$HListFormat$$anon$4.read(LegacyProductFormats.scala:41)\r\n\tat org.ensime.sexp.formats.LegacyLowPriorityProductFormats$HListFormat$$anon$4.read(LegacyProductFormats.scala:35)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$$anon$66.read(SwankFormats.scala:661)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$$anon$66.read(SwankFormats.scala:655)\r\n\tat org.ensime.sexp.Sexp.convertTo(Sexp.scala:21)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestFormat$.read(SwankFormats.scala:815)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestFormat$.read(SwankFormats.scala:789)\r\n\tat org.ensime.sexp.Sexp.convertTo(Sexp.scala:21)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestEnvelopeFormat$$anonfun$41.apply(SwankFormats.scala:854)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestEnvelopeFormat$$anonfun$41.apply(SwankFormats.scala:854)\r\n\tat scala.util.Try$.apply(Try.scala:192)\r\n\tat org.ensime.server.protocol.swank.SwankProtocolRequest$RpcRequestEnvelopeFormat$.read(SwankFormats.scala:854)\r\n\t... 18 common frames omitted\r\n```\r\n...\r\n"},"comment":{"url":"https://api.github.com/repos/ensime/ensime-emacs/issues/comments/256123504","html_url":"https://github.com/ensime/ensime-emacs/issues/542#issuecomment-256123504","issue_url":"https://api.github.com/repos/ensime/ensime-emacs/issues/542","id":256123504,"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-10-25T18:23:12Z","updated_at":"2016-10-25T18:23:12Z","body":"Definitely a client side bug. Should refuse to send the message."}}
{"actor":{"display_login":"fommil"}}