{"action":"created","issue":{"url":"https://api.github.com/repos/lihaoyi/scala-parser/issues/8","labels_url":"https://api.github.com/repos/lihaoyi/scala-parser/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/lihaoyi/scala-parser/issues/8/comments","events_url":"https://api.github.com/repos/lihaoyi/scala-parser/issues/8/events","html_url":"https://github.com/lihaoyi/scala-parser/issues/8","id":60077807,"number":8,"title":"Stackoverflow while compiling","user":{"login":"alexarchambault","id":7063723,"avatar_url":"https://avatars.githubusercontent.com/u/7063723?v=3","gravatar_id":"","url":"https://api.github.com/users/alexarchambault","html_url":"https://github.com/alexarchambault","followers_url":"https://api.github.com/users/alexarchambault/followers","following_url":"https://api.github.com/users/alexarchambault/following{/other_user}","gists_url":"https://api.github.com/users/alexarchambault/gists{/gist_id}","starred_url":"https://api.github.com/users/alexarchambault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexarchambault/subscriptions","organizations_url":"https://api.github.com/users/alexarchambault/orgs","repos_url":"https://api.github.com/users/alexarchambault/repos","events_url":"https://api.github.com/users/alexarchambault/events{/privacy}","received_events_url":"https://api.github.com/users/alexarchambault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T09:22:33Z","updated_at":"2015-03-06T09:42:09Z","closed_at":null,"body":"I keep getting StackOverflowErrors while trying to compile scala-parser. Getting them with both Java 7 (OS X) and 8 (Ubuntu 12.04, 14.04), as far as commit a0c39cdb0639a64c3277c8c0b269dd4372892331 (didn't tried further in the past), on a clean config (Ivy cache cleared).\r\n\r\n`sbt compile` output like\r\n```\r\nLoading /usr/share/sbt/bin/sbt-launch-lib.bash\r\nJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0\r\n[info] Set current project to scala-parser (in build file:/home/test/tmp/scala-parser/)\r\n[info] Compiling 8 Scala sources to /home/test/tmp/scala-parser/target/scala-2.11/classes...\r\njava.lang.StackOverflowError\r\n        at java.lang.ClassLoader.defineClass1(Native Method)\r\n        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)\r\n        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n        at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)\r\n        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)\r\n        at java.net.URLClassLoader$1.run(URLClassLoader.java:367)\r\n        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n        at java.security.AccessController.doPrivileged(Native Method)\r\n        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n        at scala.tools.nsc.typechecker.Namers$Namer.typeErrorHandler(Namers.scala:111)\r\n        at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1539)\r\n        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply$mcV$sp(Namers.scala:778)\r\n        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:777)\r\n        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:777)\r\n        at scala.tools.nsc.typechecker.Namers$Namer.scala$tools$nsc$typechecker$Namers$Namer$$logAndValidate(Namers.scala:1565)\r\n        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:777)\r\n        at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:769)\r\n        at scala.tools.nsc.typechecker.Namers$$anon$1.completeImpl(Namers.scala:1681)\r\n        at scala.tools.nsc.typechecker.Namers$LockingTypeCompleter$class.complete(Namers.scala:1689)\r\n        at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1679)\r\n\r\n```\r\n\r\n...\r\n\r\n```\r\n        at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1628)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4911)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5295)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5322)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5269)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5273)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5351)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2977)\r\n        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3081)\r\n        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3081)\r\n        at scala.collection.immutable.List.loop$1(List.scala:172)\r\n        at scala.collection.immutable.List.mapConserve(List.scala:188)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3081)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2340)\r\n        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedOutsidePatternMode$1$1.apply(Typers.scala:5217)\r\n        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedOutsidePatternMode$1$1.apply(Typers.scala:5217)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5216)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5252)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5259)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5295)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5322)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5269)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5273)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5362)\r\n        at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:5453)\r\n        at scala.tools.nsc.typechecker.Namers$Namer.assignTypeToTree(Namers.scala:876)\r\n[error] (compile:compile) java.lang.StackOverflowError\r\n[error] Total time: 4 s, completed 6 mars 2015 10:16:29\r\n```\r\n\r\nWould you have any idea of what could cause that? Am I the only one getting these errors?"},"comment":{"url":"https://api.github.com/repos/lihaoyi/scala-parser/issues/comments/77531948","html_url":"https://github.com/lihaoyi/scala-parser/issues/8#issuecomment-77531948","issue_url":"https://api.github.com/repos/lihaoyi/scala-parser/issues/8","id":77531948,"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-03-06T09:42:09Z","updated_at":"2015-03-06T09:42:09Z","body":"Yeah, just give your SBT more stack space. It's not infinite recursion,\njust a lot =P\n\nOn Fri, Mar 6, 2015 at 5:22 PM, Alexandre Archambault <\nnotifications@github.com> wrote:\n\n> I keep getting StackOverflowErrors while trying to compile scala-parser.\n> Getting them with both Java 7 (OS X) and 8 (Ubuntu 12.04, 14.04), as far as\n> commit a0c39cd\n> <https://github.com/lihaoyi/scala-parser/commit/a0c39cdb0639a64c3277c8c0b269dd4372892331>\n> (didn't tried further in the past), on a clean config (Ivy cache cleared).\n>\n> sbt compile output like\n>\n> Loading /usr/share/sbt/bin/sbt-launch-lib.bash\n> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0\n> [info] Set current project to scala-parser (in build file:/home/test/tmp/scala-parser/)\n> [info] Compiling 8 Scala sources to /home/test/tmp/scala-parser/target/scala-2.11/classes...\n> java.lang.StackOverflowError\n>         at java.lang.ClassLoader.defineClass1(Native Method)\n>         at java.lang.ClassLoader.defineClass(ClassLoader.java:760)\n>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\n>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)\n>         at java.net.URLClassLoader.access$100(URLClassLoader.java:73)\n>         at java.net.URLClassLoader$1.run(URLClassLoader.java:367)\n>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)\n>         at java.security.AccessController.doPrivileged(Native Method)\n>         at java.net.URLClassLoader.findClass(URLClassLoader.java:360)\n>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)\n>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)\n>         at scala.tools.nsc.typechecker.Namers$Namer.typeErrorHandler(Namers.scala:111)\n>         at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1539)\n>         at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply$mcV$sp(Namers.scala:778)\n>         at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:777)\n>         at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1$$anonfun$apply$1.apply(Namers.scala:777)\n>         at scala.tools.nsc.typechecker.Namers$Namer.scala$tools$nsc$typechecker$Namers$Namer$$logAndValidate(Namers.scala:1565)\n>         at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:777)\n>         at scala.tools.nsc.typechecker.Namers$Namer$$anonfun$monoTypeCompleter$1.apply(Namers.scala:769)\n>         at scala.tools.nsc.typechecker.Namers$$anon$1.completeImpl(Namers.scala:1681)\n>         at scala.tools.nsc.typechecker.Namers$LockingTypeCompleter$class.complete(Namers.scala:1689)\n>         at scala.tools.nsc.typechecker.Namers$$anon$1.complete(Namers.scala:1679)\n>\n>\n> ...\n>\n>         at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1628)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:4911)\n>         at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5295)\n>         at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5322)\n>         at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5269)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5273)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typedByValueExpr(Typers.scala:5351)\n>         at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2977)\n>         at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3081)\n>         at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$60.apply(Typers.scala:3081)\n>         at scala.collection.immutable.List.loop$1(List.scala:172)\n>         at scala.collection.immutable.List.mapConserve(List.scala:188)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3081)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2340)\n>         at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedOutsidePatternMode$1$1.apply(Typers.scala:5217)\n>         at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$typedOutsidePatternMode$1$1.apply(Typers.scala:5217)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5216)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5252)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5259)\n>         at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5295)\n>         at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5322)\n>         at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5269)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5273)\n>         at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5362)\n>         at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:5453)\n>         at scala.tools.nsc.typechecker.Namers$Namer.assignTypeToTree(Namers.scala:876)\n> [error] (compile:compile) java.lang.StackOverflowError\n> [error] Total time: 4 s, completed 6 mars 2015 10:16:29\n>\n> Would you have any idea of what could cause that? Am I the only one\n> getting these errors?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/lihaoyi/scala-parser/issues/8>.\n>\n"}}