scala.meta.parsers.ParseException: <input>:1: error: end of file expected but . found val a: 42.type = 42 ^

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by xavier-fernandez
, 9 months ago
<input>:1: error: end of file expected but . found val a: 42.type = 42 ^
scala.meta.parsers.ParseException: <input>:1: error: end of file expected but . found val a: 42.type = 42 ^
at scala.meta.internal.parsers.Reporter$class.syntaxError(Reporter.scala:17)
at scala.meta.internal.parsers.Reporter$$anon$1.syntaxError(Reporter.scala:23)
at scala.meta.internal.parsers.Reporter$class.syntaxError(Reporter.scala:18)
at scala.meta.internal.parsers.Reporter$$anon$1.syntaxError(Reporter.scala:23)
at scala.meta.internal.parsers.ScalametaParser.syntaxErrorExpected(ScalametaParser.scala:419)
at scala.meta.internal.parsers.ScalametaParser.accept(ScalametaParser.scala:425)
at scala.meta.internal.parsers.ScalametaParser$$anonfun$parseStat$1.skipStatementSeparators$1(ScalametaParser.scala:71)
at scala.meta.internal.parsers.ScalametaParser$$anonfun$parseStat$1.apply(ScalametaParser.scala:77)
at scala.meta.internal.parsers.ScalametaParser$$anonfun$parseStat$1.apply(ScalametaParser.scala:68)
at scala.meta.internal.parsers.ScalametaParser.parseRule(ScalametaParser.scala:46)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.