-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle breaking change in transitive dep scalameta 4.5.0 #194
Conversation
|
-@ import $ivy.`org.scalameta::scalameta:4.4.35`, scala.meta._
+@ import $ivy.`org.scalameta::scalameta:4.5.0`, scala.meta._
@ """object Foo { val a = λ[FuncK[Option, List]](_.toList) }""".parse[Source].get
res1: Source = Source(
stats = List(
Defn.Object(
mods = List(),
name = Term.Name(value = "Foo"),
templ = Template(
early = List(),
inits = List(),
self = Self(name = , decltpe = None),
stats = List(
Defn.Val(
mods = List(),
pats = List(Pat.Var(name = Term.Name(value = "a"))),
decltpe = None,
rhs = Term.Apply(
fun = Term.ApplyType(fun = Term.Name(value = "λ"), targs = List(Type.Apply(tpe = Type.Name(value = "FuncK"), args = List(Type.Name(value = "Option"), Type.Name(value = "List"))))),
- args = List(Term.Select(qual = _, name = Term.Name(value = "toList")))
+ args = List(Term.AnonymousFunction(body = Term.Select(qual = _, name = Term.Name(value = "toList"))))
)
)
),
derives = List()
)
)
)
) The regression comes from scalameta/scalameta#2601 |
Marking this as ready for visibility. Following-up about the wider impact of this in scalacenter/scalafix#1556 (comment). |
project/plugins.sbt
Outdated
@@ -1,4 +1,7 @@ | |||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34") | |||
resolvers += Resolver.sonatypeRepo("snapshots") | |||
dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.9.34+52-a83785c4-SNAPSHOT" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sh0hei scalafix 0.10.0 is around the corner and running simulacrum-scalafix 0.5.0 as-is on scalafix 0.10.x will cause missed rewrites as identified by the tests above (and a warning for the user as described in the release notes). I can update this PR as soon as 0.10.0 is tagged, and I guess a 0.6.0 (only compatible with scalafix 0.10.x) would be useful? |
Follow-up of scalacenter/scalafix#1556. Not meant to be merged for now, but to centralize investigation.