-
Notifications
You must be signed in to change notification settings - Fork 1.1k
object caps does not have a member type Cap #21107
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
Comments
This should be fixed already in #20493, I think it should be available in 3.5.1 but we might backport it to 3.3.4 LTS. The minimization is missing the dependencies, so I cannot confirm it yet. |
@jxnu-liguobin can you help us minimise this? |
My repo is here. You can see the details from Github Action. I did not reproduce it on Mac OSX, which is why I submitted an ISSUE. |
We'll still need this minimised, rather than the whole repo... we'd welcome help, it may take time before someone on the maintenance team has time to dive into this. I'm guessing the Kotlin plugin is where the imports from the snippet come from... |
It seems that issue originates due to specific classpath entries added by the SbtIdeaPlugin and IntellijPlugins // build.sbt
lazy val `sbt-dependency-analyzer` = (project in file("."))
.enablePlugins(SbtIdeaPlugin)
.settings(
scalaVersion := "3.4.1",
intellijPlugins ++= Seq("com.intellij.java", "com.intellij.java-i18n", "org.intellij.scala").map(_.toPlugin),
) // project/plugins.sbt
addSbtPlugin("org.jetbrains" % "sbt-idea-plugin" % "3.26.2") // src/main/scala/AnalyzerException.scala
sealed abstract class AnalyzerException(msg: String) extends RuntimeException(msg)
final case class AnalyzerCommandNotFoundException(msg: String) extends AnalyzerException(msg) I'm not yet sure what exactly causes that, but I can confirm it's 3.6.0-RC1-bin-20240708-0e36424-NIGHTLY |
It was fixed in 3.5.0 |
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.It's ok on my Mac OSX:
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: