mr-cloud / test

0 stars 0 forks source link

Customize compiler message #81

Closed mr-cloud closed 2 years ago

mr-cloud commented 2 years ago

Reflections on #13 .

I'm wondering if we have the ability to customize the compiler error message:

scala> val a: Map[String, String] = Map("a" -> 1)
<console>:11: error: type mismatch;
 found   : Int(1)
 required: String
       val a: Map[String, String] = Map("a" -> 1)
                                               ^

I remember there are compiler plugins (https://github.com/softwaremill/scala-clippy) to improve the compiling messages.

It would be great if a scala library generate easy to read error messages for newbies.

Some thoughts when I'm writing https://github.com/ReactivePlatform/ScalaScripting/blob/master/http/get.sc ID: 21 Original Author: darcy-shen link: Original Link

mr-cloud commented 2 years ago

It a plugin from softwaremills Original Author:He-Pin

mr-cloud commented 2 years ago

gonna call this a wontfix by myself; feel free to pursue it and send a PR if you wish Original Author:lihaoyi