How to Set `-Ypatmat-exhaust-depth off` scalac flag?

1,143 views
Skip to first unread message

Kevin Meredith

unread,
Jul 23, 2015, 10:45:05 AM7/23/15
to scala-user
Given the following compile-time error:

Exhaustivity analysis reached max recursion depth, not all missing cases are reported.

[error] (Please try with scalac -Ypatmat-exhaust-depth 40 or -Ypatmat-exhaust-depth off.)


So, heeding that warning, I updated my `build.sbt`:

scalacOptions ++= Seq(
  "-Ypatmat-exhaust-depth off"
)

Then, I typed `reload`, and then `compile`, but got this error:

[error] bad option: '-Ypatmat-exhaust-depth off'


How can I properly add this scalac option?

Seth Tisue

unread,
Jul 23, 2015, 12:03:05 PM7/23/15
to scala-user, kevin.m....@gmail.com, kevin.m....@gmail.com
it's two arguments, so:

    scalacOptions ++= Seq("-Ypatmat-exhaust-depth", "off")

Reply all
Reply to author
Forward
0 new messages