Closed VlachJosef closed 7 years ago
I can't reproduce it locally. Could you tell me what Scala version and compiler plugins you're using?
Oh, I didn't realize I have -explaintypes
in scalacOptions
.
But still it may be little more convenient to print these information as sbt is doing:
[error] /Users/me/dev/sbt-errors-test/src/main/scala/main.scala:5: type mismatch;
[error] found : String("hello")
[error] required: Int
[error] val s: Int = "hello"
[error] ^
[info] String("hello") <: Int?
[info] false
[error] one error found
[error] (compile:compileIncremental) Compilation failed
Thanks! The way we show errors for "unknown" file must be reworked.
Thanks for the report, il' see what I can do.
On 11 Jul 2017, at 13:49, Josef Vlach notifications@github.com wrote:
Oh, I didn't realize I have -explaintypes in scalacOptions.
But still it may be little more convenient to print these information as sbt is doing:
[error] /Users/me/dev/sbt-errors-test/src/main/scala/main.scala:5: type mismatch; [error] found : String("hello") [error] required: Int [error] val s: Int = "hello" [error] ^ [info] String("hello") <: Int? [info] false [error] one error found [error] (compile:compileIncremental) Compilation failed — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Fixed in #24
When trying to compile this simple program with one type error:
Following are errors reported:
Errors
[2]
and[3]
should not be printed.