kenbot / goggles

Pleasant, yet principled Scala optics DSL
MIT License
195 stars 7 forks source link

Gracefully handle lack of -Yrangepos #38

Open kenbot opened 7 years ago

kenbot commented 7 years ago

Currently if -Yrangepos is not set, then interpolated args cannot be displayed in the leftmost column of the error table, and the position of the ^ indicator cannot be accurately set.

We should gracefully show something meaningful, such as "$ARG" for the argument names (rather than an empty string), and fixing the ^ at the start of the expression. We could also print a message that suggests that the user add scalacOptions += "-Yrangepos" to build.sbt.