You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
olafurpg
changed the title
java.lang.IllegalStateException: Object {} has no field 'explicitReturnTypes'. Did you mean '' instead?
Document scalacOptions for sbt-scalafix and explicitReturnTypes config
Aug 10, 2017
I managed to reproduce your issue and the problem was that build.sbt sets scalacOptions := instead of ++=. By replacing := with ++= I was able to run the rewrites. Alternatively, the next release of sbt-scalafix exposes a scalafixScalacOptions setting which can be appended to scalacOptions if you prefer to keep :=. This is not documented so I'm gonna keep this issue open.
Hey Olaf,
I tried to run scalafmt on the scaladex codebase. This is how it's configured:
scalacenter/scaladex@f8dabd5
The doc has mentioned I should configure this rewrite https://scalacenter.github.io/scalafix/#ExplicitReturnTypes
The text was updated successfully, but these errors were encountered: