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
{{ message }}
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
and ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0" in build.sbt.
I'd expect running without explicitly specifying the full dependency on the command line should work. It might be some incompatibility between scalafix-0.10 or if somehow the default rule/action for this library is something different than "OrganizeImports".
The text was updated successfully, but these errors were encountered:
I've determined that at least some instances of non-working are due to aggressive state-caching, wherein once a file has been "fixed", the file will be ignored thereafter, even if changes are reverted from git. Removing all files/directoriest under target with "scalafix" in their name clears this state.
This looks like a problem with the sbt-scalafix cache indeed. I haven't been able to reproduce the issue, but if you manage to find a repro, I'll be glad to fix it. Can you follow-up on https://github.com/scalacenter/scalafix/issues? Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I haven't had success digging into why, but if I run:
sbt "scalafix dependency:OrganizeImports@com.github.liancheng:organize-imports:0.6.0 [--check]"
(with or without--check
) it works every timesbt "scalafix"
will work some of the time, otherwise exit without doing anythingsbt "scalafix --check"
never workssbt "scalafix OrganizeImports"
also never worksThis is with
.scalafix.conf
:and
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0"
inbuild.sbt
.I'd expect running without explicitly specifying the full dependency on the command line should work. It might be some incompatibility between scalafix-0.10 or if somehow the default rule/action for this library is something different than "OrganizeImports".
The text was updated successfully, but these errors were encountered: