Closed
Description
I'm upgrading from 3.3.3 to 3.4.1 and after rewriting syntax I try to commit the code but the CI complained.
Compiler version
3.4.1
Minimized code
According to the logs, dotty crashes at AnalyzerException
, which is just a simple code.
package bitlap.sbt.analyzer.model
import bitlap.sbt.analyzer.DependencyScopeEnum
sealed abstract class AnalyzerException(msg: String) extends RuntimeException(msg)
final case class AnalyzerCommandNotFoundException(msg: String) extends AnalyzerException(msg)
final case class AnalyzerCommandUnknownException(
command: String,
moduleId: String,
scope: DependencyScopeEnum,
msg: String
) extends AnalyzerException(msg)
It's ok on my Mac OSX:
Output (click arrow to expand)
[info] compiling 42 Scala sources and 1 Java source to /home/runner/work/intellij-sbt-dependency-analyzer/intellij-sbt-dependency-analyzer/target/scala-3.4.1/classes ...
unhandled exception while running MegaPhase{protectedAccessors, extmethods, uncacheGivenAliases, checkStatic, elimByName, hoistSuperArgs, forwardDepChecks, specializeApplyMethods, tryCatchPatterns, patternMatcher} on /home/runner/work/intellij-sbt-dependency-analyzer/intellij-sbt-dependency-analyzer/src/main/scala/bitlap/sbt/analyzer/model/AnalyzerException.scala
An unhandled exception was thrown in the compiler.
Please file a crash report here:
https://github.com/scala/scala3/issues/new/choose
For non-enriched exceptions, compile with -Yno-enrich-error-messages.
while compiling: /home/runner/work/intellij-sbt-dependency-analyzer/intellij-sbt-dependency-analyzer/src/main/scala/bitlap/sbt/analyzer/model/AnalyzerException.scala
during phase: MegaPhase{protectedAccessors, extmethods, uncacheGivenAliases, checkStatic, elimByName, hoistSuperArgs, forwardDepChecks, specializeApplyMethods, tryCatchPatterns, patternMatcher}
mode: Mode(ImplicitsEnabled)
library version: version 2.13.12
compiler version: version 3.4.1
settings: -Werror true -classpath /home/runner/work/intellij-sbt-dependency-analyzer/intellij-sbt-dependency-analyzer/target/scala-3.4.1/classes:/home/runner/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-embeddable/1.9.10/kotlin-scripting-compiler-embeddable-1.9.10.jar:/home/runner/.cache/coursier/v1/https/repo1.maven.org/maven2/guru/nidi/graphviz-java-min-deps/0.18.1/graphviz-java-min-deps-0.18.1.jar:/home/runner/.cache/coursier/v1/https/repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.5.6/logback-classic-1.5.6.jar:/home/runner/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jooq/joor/0.9.15/joor-0.9.15.jar:/home/runner/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-scripting-compiler-impl-embeddable/1.9.10/kotlin-scripting-compiler-impl-embeddable-1.9.10.jar:/home/runner/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.9.10/kotlin-stdlib-1.9.10.jar:/home/runner/.cache/cour
[error] ## Exception when compiling 43 sources to /home/runner/work/intellij-sbt-dependency-analyzer/intellij-sbt-dependency-analyzer/target/scala-3.4.1/classes
[error] dotty.tools.dotc.core.TypeError$$anon$1: object caps does not have a member type Cap
[error]
[error]
[error] dotty.tools.dotc.core.TypeError$$anon$1: object caps does not have a member type Cap
[error] (Compile / compileIncremental) dotty.tools.dotc.core.TypeError$$anon$1: object caps does not have a member type Cap
[error] Total time: 26 s, completed Jul 7, 2024, 5:[51](https://github.com/bitlap/intellij-sbt-dependency-analyzer/actions/runs/9825009887/job/27124625884?pr=101#step:4:52):08 AM