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

illegal inheritance; superclass BaseClass #2

Open
Voiteh opened this issue Dec 31, 2023 · 1 comment
Open

illegal inheritance; superclass BaseClass #2

Voiteh opened this issue Dec 31, 2023 · 1 comment

Comments

@Voiteh
Copy link

Voiteh commented Dec 31, 2023

Mill Build Tool version 0.11.4

Hi I'm trying to use antlr plugin with recent mill but it seems that there is some compatybility issue ? I'm getting :

PS F:\git\Alax> .\millw.bat resolve
[build.sc] [48/52] compile 
[info] compiling 1 Scala source to F:\git\Alax\out\mill-build\compile.dest\classes ...
[error] F:\git\Alax\build.sc:15:39: illegal inheritance; superclass BaseClass
[error]  is not a subclass of the supertrait Module
[error]  of the mixin trait AntlrModule
[error] object ast  extends CommonModule with AntlrModule{
[error]                                       ^
[error] one error found
1 targets failed
compile Compilation failed

Here is my build file

import mill._, scalalib._
import $ivy.`net.mlbox::mill-antlr:0.1.0`
import net.mlbox.millantlr.AntlrModule


trait CommonModule extends ScalaModule {
  def scalaVersion = "3.1.3"
  def ivyDeps = Agg(ivy"org.scala-lang::scala-library:2.13.10")
}

object utilities extends CommonModule {

}

object ast  extends CommonModule with AntlrModule{
  def moduleDeps = Seq(utilities)

  override def antlrGenerateVisitor: Boolean = true

  override def antlrGenerateListener: Boolean = false
  override def antlrPackage: Option[String] = Some("org.alax.ast")


}

@lefou
Copy link

lefou commented Jan 2, 2024

From looking at the build.sc, this project only supports Mill 0.6.x and 0.7.x (based on the Scala version, 2.12 vs. 2.13). It is not cross compiled for later Mill versions and does not contain the Mill binary platform in the artifact ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants