{"action":"created","issue":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/51","labels_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/51/comments","events_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/51/events","html_url":"https://github.com/lihaoyi/Ammonite/issues/51","id":69364558,"number":51,"title":"Crash on SI-5421 example","user":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars.githubusercontent.com/u/934140?v=3","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-19T00:35:15Z","updated_at":"2015-04-19T01:36:04Z","closed_at":null,"body":"```scala\r\n@ class A {def t: Int = {println(\"getter\"); -282}; def t_=(p: Int) { println(\"setter\") }; def m(v: String) = new A}\r\ndefined class A\r\n@ val a = new A\r\na: cmd19.A = cmd19$A@4641e3dd\r\n@ a m \"txt\" t = 18; println(\"x\")\r\njava.util.NoSuchElementException: Either.left.value on Right\r\n\tscala.util.Either$LeftProjection.get(Either.scala:289)\r\n\tammonite.repl.interp.Preprocessor$$anon$2.apply(Preprocessor.scala:91)\r\n\tammonite.repl.interp.Interpreter$$anonfun$processLine$2.apply(Interpreter.scala:36)\r\n\tammonite.repl.interp.Interpreter$$anonfun$processLine$2.apply(Interpreter.scala:32)\r\n\tammonite.repl.Catching.flatMap(Util.scala:73)\r\n\tammonite.repl.interp.Interpreter.processLine(Interpreter.scala:32)\r\n\tammonite.repl.Repl$$anonfun$action$1$$anonfun$apply$4.apply(Repl.scala:44)\r\n\tammonite.repl.Repl$$anonfun$action$1$$anonfun$apply$4.apply(Repl.scala:43)\r\n\tammonite.repl.frontend.Scoped$$anonfun$flatMap$1.apply(Signaller.scala:43)\r\n\tammonite.repl.frontend.Signaller.apply(Signaller.scala:28)\r\n\tammonite.repl.frontend.Scoped$class.flatMap(Signaller.scala:43)\r\n\tammonite.repl.frontend.Signaller.flatMap(Signaller.scala:10)\r\n\tammonite.repl.Repl$$anonfun$action$1.apply(Repl.scala:43)\r\n\tammonite.repl.Repl$$anonfun$action$1.apply(Repl.scala:42)\r\n\tammonite.repl.Res$Success.flatMap(Util.scala:22)\r\n\tammonite.repl.Repl.action(Repl.scala:42)\r\n\tammonite.repl.Repl.loop$1(Repl.scala:53)\r\n\tammonite.repl.Repl.run(Repl.scala:56)\r\n\tammonite.repl.Repl$.main(Repl.scala:80)\r\n\t$line1.$read$$iw$$iw$.<init>(<console>:8)\r\n\t$line1.$read$$iw$$iw$.<clinit>(<console>)\r\n\t$line1.$eval$.$print$lzycompute(<console>:7)\r\n\t$line1.$eval$.$print(<console>:6)\r\n\t$line1.$eval.$print(<console>)\r\n\tsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tjava.lang.reflect.Method.invoke(Method.java:483)\r\n\tscala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:755)\r\n\tscala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:1002)\r\n\tscala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:609)\r\n\tscala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:608)\r\n\tscala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)\r\n\tscala.reflect.internal.util.AbstractFileClassLoader.asContext(AbstractFileClassLoader.scala:19)\r\n\tscala.tools.nsc.interpreter.IMain$WrappedRequest.loadAndRunReq(IMain.scala:608)\r\n\tscala.tools.nsc.interpreter.IMain.interpret(IMain.scala:540)\r\n\tscala.tools.nsc.interpreter.IMain.interpret(IMain.scala:536)\r\n\txsbt.ConsoleInterface$$anon$2.createInterpreter(ConsoleInterface.scala:54)\r\n\tscala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:852)\r\n\tscala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:850)\r\n\tscala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:850)\r\n\tscala.reflect.internal.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:97)\r\n\tscala.tools.nsc.interpreter.ILoop.process(ILoop.scala:850)\r\n\tscala.tools.nsc.interpreter.ILoop.main(ILoop.scala:872)\r\n\txsbt.ConsoleInterface.run(ConsoleInterface.scala:62)\r\n\tsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tjava.lang.reflect.Method.invoke(Method.java:483)\r\n\tsbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)\r\n\tsbt.compiler.AnalyzingCompiler.console(AnalyzingCompiler.scala:76)\r\n\tsbt.Console.sbt$Console$$console0$1(Console.scala:22)\r\n\tsbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply$mcV$sp(Console.scala:23)\r\n\tsbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply(Console.scala:23)\r\n\tsbt.Console$$anonfun$apply$2$$anonfun$apply$1.apply(Console.scala:23)\r\n\tsbt.Logger$$anon$4.apply(Logger.scala:85)\r\n\tsbt.TrapExit$App.run(TrapExit.scala:248)\r\n\tjava.lang.Thread.run(Thread.java:745)\r\nSomething unexpected went wrong =(\r\n```"},"comment":{"url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/comments/94220096","html_url":"https://github.com/lihaoyi/Ammonite/issues/51#issuecomment-94220096","issue_url":"https://api.github.com/repos/lihaoyi/Ammonite/issues/51","id":94220096,"user":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars.githubusercontent.com/u/934140?v=3","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T01:36:04Z","updated_at":"2015-04-19T01:36:04Z","body":"Looks like a bug in the parser\r\n\r\n```scala\r\n@ new scalaParser.Scala(\"\"\"{a.m(\"txt\").t = 18}\"\"\").TmplBody.run()\r\nres3: scala.util.Try[Unit] = Success(())\r\n@ new scalaParser.Scala(\"\"\"{a m \"txt\" t = 18}\"\"\").TmplBody.run()\r\nres4: scala.util.Try[Unit] = Failure(ParseError(Position(13,1,14), Position(13,1,14), <24 traces>))\r\n```"}}