-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception on calling .parse[Source] #443
Comments
This shouldn't be. How do you invoke parse? Could you show the full stack trace? |
the invocation of parse is here - it's called on a java.nio.file.File I will try to get my hands on the full stack trace but it might be difficult - we just saw it once in the logs of a production server. |
@johannegger Could you provide a problematic file? |
Hi I'm getting the same error, and have been for a while, until I decided to investigate a bit. Just try this one with CRLF: object InterpolationError {
val parse = s"nope"
} I guess one of those ±1 is not working well with 2 Inserting other whitespace characters or line comment after the interpolated string worked to avoid the exception. Or setting the line ends to LF (I know the technology is not there yet), which is a bit difficult on Windows. |
A quick grep in the parser shows we test against \n in several places
Changing those to |
I spent some time trying to track down this issue in olafurpg@42591c1 |
The workaround for users affected by this issue is to convert CRLF to LF before running the parser. |
I can no longer reproduce it on Windows. |
We ran into an exception when calling
.parse[Source]
on ajava.nio.File
. Probably this should not happen since .parse returns aParsed
and one therefore doesn't expect the code to throw exceptions.The text was updated successfully, but these errors were encountered: