Skip to content

Feature request: improve detection of scala compiler #2711

Description

@oharboe

I'm using Bloop with bazel and I'm running into a snag wit the detection of the Scala compiler.

The long story short is that the scala-compiler file recognition fails because the file name is changed to processed_scala-compiler-2.13.16.jar:

Caused by: java.lang.RuntimeException: Missing compiler jar in Scala jars /home/oyvind/bazel-orfs/bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/rules_jvm_external++maven+maven/org/scala-lang/scala-compiler/2.13.16/processed_scala-compiler-2.13.16.jar, ...

private def hasScalaCompilerName(filename: String): Boolean =
filename.startsWith(ScalacCompilerName) ||
(isDotty && (filename.startsWith("dotty-compiler") || filename.startsWith("scala3-compiler")))

Feature request: make compiler detection a bit more flexible or change it to a warning so that processed_ prefixes doesn't stop it from working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions