You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: somehow I thought it was the trailing newline, but it isn't. However it's definitely that source.
scala> parse("m50d/paperdoll/scalaz/src/main/scala/paperdoll/scalaz/StateLayer.scala") collect { case x: Name => x }
parsing(/s/github/m50d/paperdoll/scalaz/src/main/scala/paperdoll/scalaz/StateLayer.scala)
java.lang.IllegalArgumentException: [2353..2352) is not a valid range
at scala.meta.inputs.Position$Range.<init>(Position.scala:26)
at scala.meta.inputs.Position$Range$.apply(Position.scala:35)
at scala.meta.internal.ast.InternalTree$class.pos(InternalTrees.scala:73)
at scala.meta.Name$Anonymous$NameAnonymousImpl.pos(Trees.scala:41)
at scala.meta.internal.prettyprinters.TreeSyntax$$anonfun$apply$37.apply(TreeSyntax.scala:555)
The text was updated successfully, but these errors were encountered:
paulp
changed the title
positions assume a trailing newline
crasher with certain sources
Oct 22, 2016
So I think it's actually related to EOL conventions. That file has old school \r\n going on. Comparing string literals which parse to file slurped data which throws that exception, line endings are the only difference I detect.
Edit: somehow I thought it was the trailing newline, but it isn't. However it's definitely that source.
The text was updated successfully, but these errors were encountered: