scalafix
scalafix copied to clipboard
sbt: scalafixEnable resets sbt session settings
Running scalafixEnable resets all configuration changes that were done in sbt console (in the session).
For example if I modify scalacOptions (set scalacOptions in ThisBuild := ...) and then run scalafixEnable, the scalacOptions are reseted back to the project configuration, which unexpected and very inconvenient.
I suspect this is because here:
https://github.com/scalacenter/sbt-scalafix/blob/e171dca59d8fc3fd3fee2997dfc2634634ecfa10/src/main/scala-sbt-1.0/sbt/internal/sbtscalafix/Compat.scala#L14
appendWithoutSession is used instead of appendWithSession. Is there something that would prevent from using appendWithSession?
appendWithoutSessionis used instead ofappendWithSession. Is there something that would prevent from usingappendWithSession?
I don't think so, feel free to open a PR!
Because of https://github.com/sbt/sbt/issues/5459, the suggested change might not be enough.