-
Notifications
You must be signed in to change notification settings - Fork 141
//> using option "--explain"
does nothing
#1285
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
Comments
@Kordyjan Thanks for reporting. I want to summarize this issue. First of all, the From the In scala-cli which uses There are at least two solutions of this problem:
|
It's also a bit weird that I would be better if this was added to some other field or as additional diagnostics. Not sure currently what would be the best solution, but it fits into the whole structured errors and actionable diagnostics debacle. Ideally |
When the `-explain` flag was turned on, an explanation message wasn't displayed in the Metals and Scala CLI. This was because both of these tools only print the message from the [Problem.message](https://github.com/lampepfl/dotty/blob/c0a7d128671d063a2b566abdaa08fe7fa83c2d06/sbt-bridge/src/dotty/tools/xsbt/Problem.java#L17) field. To resolve this issue, I attached the explanation content to the `Problem.message` field, which will now be displayed in the Metals and Scala CLI. This PR addresses a [issue](VirtusLab/scala-cli#1285) from `scala-cli`.
Version(s)
0.1.12
Describe the bug
//> using option "--explain"
doesn't change the compilation output. Probably it has the same root cause as #1023. The problem goes away if we run scala-cli with--server=false
.To Reproduce
explain.scala:
Run
scala-cli compile explain.scala
. The output will be:Expected behaviour
The output should look like this:
The text was updated successfully, but these errors were encountered: