Skip to content

Commit

Permalink
Update scalameta, semanticdb-scalac-core, ... to 4.5.5
Browse files Browse the repository at this point in the history
semanticdb-scalac & scalameta parser behavior regarding Term.ApplyInfix
is now aligned with Scala 3 (parens tokens are no longer included). This
bugfix will cause Term.ApplyInfix single-arg lookup to fail if scalafix
is ran against semanticdb files generated with older semanticdb-scalac
because of the mismatch in arg position.
  • Loading branch information
bjaglin committed May 1, 2022
1 parent 14f1aa9 commit dca79f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object Dependencies {
val nailgunV = "0.9.1"
val scalaXmlV = "2.1.0"
val scalaXml211V = "1.3.0" // scala-xml stops publishing for scala 2.11
val scalametaV = "4.5.4"
val scalametaV = "4.5.5"
val scalatestV = "3.0.8" // don't bump, to avoid forcing breaking changes on clients via eviction

val bijectionCore = "com.twitter" %% "bijection-core" % bijectionCoreV
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class SymbolSuite extends munit.FunSuite {
case Term.ApplyInfix(_, Term.Name("shouldBe"), _, arg :: Nil) => arg
}

// The symbol lookup fails against Scala 3.1.1 SemanticDB as the position
// there excludes surrounding parentheses while 2.x (scalac-semanticdb) and
// the parser include them
assertNotEquals(arg.symbol, Symbol.None)
}

Expand Down

0 comments on commit dca79f3

Please sign in to comment.