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
As of 0.10.4, this is not documented publicly in tutorials (but does appear in the scaladoc) as it doesn’t handle some important cases leading to generating broken code.
At the top of my head, renaming a method won’t rename overrides/supermethods. The rename functionality in metals and IntelliJ are more reliable since they handle such cases. There are some cases the replace rule can do stuff I haven’t seen in IntelliJ or metals (for example replace usage of com.foo.Bar with org.foo.Bar, not definition site) but it’s not obvious for users to evaluate what cases will generate valid rewrites and what cases generate broken code.
The text was updated successfully, but these errors were encountered:
scalafix/scalafix-tests/input/src/main/scala/test/ReplaceSymbol.scala
Lines 1 to 29 in d55b09b
--rules=replace:from/to
and via thepatches.replaceSymbols
configuration key, backed byscalafix/scalafix-core/src/main/scala/scalafix/patch/Patch.scala
Lines 125 to 143 in 6811967
As of 0.10.4, this is not documented publicly in tutorials (but does appear in the scaladoc) as it doesn’t handle some important cases leading to generating broken code.
From https://gitter.im/scalacenter/scalafix?at=5eeb039a405be935cda9fe27
The text was updated successfully, but these errors were encountered: