Skip to content
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

Update semanticdb-scalac to 4.9.9 #3316

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ object Deps {
val scalatags = ivy"com.lihaoyi::scalatags:0.12.0"
def scalaXml = ivy"org.scala-lang.modules::scala-xml:2.3.0"
// keep in sync with doc/antora/antory.yml
val semanticDBscala = ivy"org.scalameta:::semanticdb-scalac:4.9.8"
val semanticDBscala = ivy"org.scalameta:::semanticdb-scalac:4.9.9"
val semanticDbJava = ivy"com.sourcegraph:semanticdb-java:0.10.0"
val sourcecode = ivy"com.lihaoyi::sourcecode:0.3.1"
val upickle = ivy"com.lihaoyi::upickle:3.3.1"
Expand Down Expand Up @@ -1199,13 +1199,13 @@ object example extends MillScalaModule {

trait ExampleCrossModuleJava extends ExampleCrossModule {

def upstreamCross(s: String) = s match{
def upstreamCross(s: String) = s match {
case "basicjava" => basic
case "javabuilds" => scalabuilds
case "javamodule" => scalamodule
}

def buildScLines = T{
def buildScLines = T {
val upstreamLines = os.read.lines(
upstreamCross(this.millModuleSegments.parts.dropRight(1).last)(crossValue)
.testRepoRoot().path / "build.sc"
Expand All @@ -1215,20 +1215,20 @@ object example extends MillScalaModule {
import collection.mutable
val groupedLines = mutable.Map.empty[String, mutable.Buffer[String]]
var current = Option.empty[String]
lines.foreach{
lines.foreach {
case s"//// SNIPPET:$name" =>
current = Some(name)
groupedLines(name) = mutable.Buffer()
case s => groupedLines(current.get).append(s)
}

upstreamLines.flatMap{
upstreamLines.flatMap {
case s"//// SNIPPET:$name" =>
if (name != "END") {

current = Some(name)
groupedLines(name)
} else{
} else {
current = None
Nil
}
Expand All @@ -1245,7 +1245,7 @@ object example extends MillScalaModule {
def testRepoRoot: T[PathRef] = T.source(millSourcePath)
def compile = example.compile()

def buildScLines = T{ os.read.lines(testRepoRoot().path / "build.sc") }
def buildScLines = T { os.read.lines(testRepoRoot().path / "build.sc") }
def forkEnv = super.forkEnv() ++ Map("MILL_EXAMPLE_PARSED" -> upickle.default.write(parsed()))

/**
Expand Down
Loading