Utils

mill.bsp.worker.Utils
object Utils

Attributes

Source
Utils.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type

Members list

Value members

Concrete methods

def combineStatusCodes(a: StatusCode, b: StatusCode): StatusCode

Combines two status codes, returning the most severe. ERROR > CANCELLED > OK

Combines two status codes, returning the most severe. ERROR > CANCELLED > OK

Attributes

Source
Utils.scala
def computeDisabledBspModules(evaluators: Seq[EvaluatorApi]): Set[ModuleApi]

Compute modules with BSP transitively disabled using single-pass topological traversal. A module is disabled if it has enableBsp=false OR any of its direct deps is disabled.

Compute modules with BSP transitively disabled using single-pass topological traversal. A module is disabled if it has enableBsp=false OR any of its direct deps is disabled.

Attributes

Source
Utils.scala
def extractPathsFromResults(results: Seq[Any]): Seq[Path]

Extract os.Path values from input task results. Input tasks like Task.Sources return PathRef or Seq[PathRef] values.

Extract os.Path values from input task results. Input tasks like Task.Sources return PathRef or Seq[PathRef] values.

Attributes

Source
Utils.scala
def findInputTasks(tasks: Seq[TaskApi[_]]): Seq[TaskApi[_]]

Find all input tasks (Task.Input, Task.Source, Task.Sources) at the roots of the task graph by traversing upstream from the given tasks.

Find all input tasks (Task.Input, Task.Source, Task.Sources) at the roots of the task graph by traversing upstream from the given tasks.

Attributes

Source
Utils.scala
def getBspLoggedReporterPool(originId: String, bspIdsByModule: Map[BspModuleApi, BuildTargetIdentifier], client: BuildClient): Int => Option[BspCompileProblemReporter]

Attributes

Source
Utils.scala
def getStatusCode(resultsLists: Seq[ExecutionResultsApi]): StatusCode

Attributes

Source
Utils.scala
def groupList[A, K, B](seq: Seq[A])(key: A => K)(f: A => B): Seq[(K, Seq[B])]

Same as Iterable.groupMap, but returns a sequence instead of a map, and preserves the order of appearance of the keys from the input sequence

Same as Iterable.groupMap, but returns a sequence instead of a map, and preserves the order of appearance of the keys from the input sequence

Attributes

Source
Utils.scala
def jvmBuildTarget(d: JvmBuildTarget): JvmBuildTarget

Attributes

Source
Utils.scala
def makeBuildTarget(id: BuildTargetIdentifier, depsIds: Seq[BuildTargetIdentifier], bt: BspBuildTarget, data: Option[(String, Object)]): BuildTarget

Attributes

Source
Utils.scala
def outputPaths(buildTargetBaseDir: Path, topLevelProjectRoot: Path): Seq[OutputPathItem]

Attributes

Source
Utils.scala
def sanitizeUri(uri: String): String

Attributes

Source
Utils.scala
def sanitizeUri(uri: Path): String

Attributes

Source
Utils.scala

Compute all transitive modules from module children via moduleDirectChildren

Compute all transitive modules from module children via moduleDirectChildren

Attributes

Source
Utils.scala