-
Notifications
You must be signed in to change notification settings - Fork 121
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
Part of Javac diagnostic messages are hidden #523
Comments
It's an old bug:
|
You'd need to have a single |
dwijnand
added a commit
to dwijnand/zinc
that referenced
this issue
Apr 5, 2018
Test for the fix to sbt#523.
dwijnand
added a commit
to dwijnand/zinc
that referenced
this issue
Apr 5, 2018
Test for the fix to sbt#523.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code in
DiagnosticReporter
:zinc/internal/zinc-compile-core/src/main/scala/sbt/internal/inc/javac/DiagnosticsReporter.scala
Lines 34 to 56 in 494fdda
And runs the result of
getMessage
through a regex translation, documented to remove the source file name and line number. But they don't exist in that string, and instead we strip half of the message:Which is reported to the user as:
I'm using Java 10, not sure yet if the behaviour of
getMessage
has changed, or it this is just a long standing bug that you only notice when an Java error or warning contains ':'The text was updated successfully, but these errors were encountered: