Skip to content

Commit

Permalink
Merge pull request #774 from olafurpg/M6
Browse files Browse the repository at this point in the history
Upgrade to scalameta v4.0.0-M6.
  • Loading branch information
olafurpg committed Jul 18, 2018
2 parents d6728de + d7dff7c commit a029b84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sbt._
/* scalafmt: { maxColumn = 120 }*/

object Dependencies {
val scalametaV = "4.0.0-M4-194-4947ce29-SNAPSHOT"
val scalametaV = "4.0.0-M6"
val metaconfigV = "0.8.3"
def dotty = "0.9.0-RC1"
def scala210 = "2.10.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ class PrettyTypeFuzzSuite extends BasePrettyTypeSuite {
val classpathIndex = ClasspathIndex(classpath)

def checkToplevel(toplevel: SymbolInformation): Unit = {
val info = table.info(toplevel.symbol).get
try {
val info = table.info(toplevel.symbol).getOrElse {
throw new NoSuchElementException(toplevel.symbol)
}
PrettyType.toTree(
info,
table,
Expand All @@ -73,6 +75,10 @@ class PrettyTypeFuzzSuite extends BasePrettyTypeSuite {
case e: NoSuchElementException
// FIXME
if e.getMessage.endsWith("_#") ||
// contains weird macro-generated symbols like MacroTreeBuilder#`_956.type`#
e.getMessage.contains("MacroTreeBuilder") ||
e.getMessage.contains("javax/servlet/http/HttpServlet#") ||
e.getMessage.contains("javax/servlet/ServletContextListener#") ||
e.getMessage.endsWith("`?0`#") ||
e.getMessage.endsWith("`1`#") ||
e.getMessage.endsWith("`2`#") =>
Expand All @@ -98,8 +104,11 @@ class PrettyTypeFuzzSuite extends BasePrettyTypeSuite {

def ignore(path: AbsolutePath): Boolean = {
val uri = path.toURI.toString
uri.contains("package-info") ||
uri.contains("scala/tools/nsc/interpreter/jline") ||
uri.contains("AntTask") ||
uri.contains("scala/tools/ant/") ||
uri.contains("org/scalatest/tools/HtmlReporter") ||
uri.contains("org/scalatest/tools/ScalaTestAntTask") ||
uri.contains("org/scalatest/testng") ||
uri.contains("org/scalatest/selenium") ||
uri.contains("org/scalatest/mockito") ||
Expand All @@ -124,7 +133,6 @@ class PrettyTypeFuzzSuite extends BasePrettyTypeSuite {
} catch {
case scala.meta.internal.classpath.MissingSymbolException(e) =>
pprint.log(file)
()
}
}
}
Expand Down

0 comments on commit a029b84

Please sign in to comment.