Commit dd92c85
authored
Attach explanation message to diagnostic message (#16787)
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`.1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments