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
$ scalafix --verbose
warning: Name RemoveUnusedImports is deprecated. Use RemoveUnused instead (since 0.6.0)
warning: Name RemoveUnusedTerms is deprecated. Use RemoveUnused instead (since 0.6.0)
error: 2 errors
[E0] The Scala compiler option "-Ywarn-unused" is required to use RemoveUnused.
To fix this problem, update your build to use at least one Scala compiler
option like -Ywarn-unused, -Xlint:unused (2.12.2 or above), or -Wunused (2.13 only)
[E1] The Scala compiler option "-Ywarn-unused" is required to use RemoveUnused.
To fix this problem, update your build to use at least one Scala compiler
option like -Ywarn-unused, -Xlint:unused (2.12.2 or above), or -Wunused (2.13 only)
But -Ywarn-unused is already enabled in maven. Is there an option to correctly identify it?
The text was updated successfully, but these errors were encountered:
All the scalac options used to compile sources must be passed as arguments when using the CLI (see --scalac-options in https://scalacenter.github.io/scalafix/docs/users/installation.html#help). Partly to check the setup and partly because it is needed (to know the semanticdb locations for example).
Since this can be a hassle, you can try https://github.com/evis/scalafix-maven-plugin if you use maven as build tool. It is a community plugin that allows you to automatically setup scalafix.
that may not be possible, the semanticDB plugin was known to cause problem in our project, but it has to be enabled for a key feature of scalafix we use (optimise imports)
Is there a way to inline it or optimise imports without semanticDB?
I'm using the command line launch:
But
-Ywarn-unused
is already enabled in maven. Is there an option to correctly identify it?The text was updated successfully, but these errors were encountered: