Skip to content

Bad symbolic reference. A signature compilation error #8849

Closed
@chungonn

Description

@chungonn

The code compiles in Scala 2.13.1 but emits error on dotty 0.24.0-RC1

Minimized code

build.sbt

val dottyVersion = "0.24.0-RC1"

lazy val root = project
  .in(file("."))
  .settings(
    name := "dotty-simple",
    version := "0.1.0",

    scalaVersion := dottyVersion,

    libraryDependencies ++= Seq(
      "org.threeten" % "threeten-extra" % "1.5.0",
      "com.novocode" % "junit-interface" % "0.11" % "test",
      "ch.epfl.lamp" %% "dotty-staging" % scalaVersion.value
    )
  )

code

def toMyInterval(value: String): org.threeten.extra.Interval = org.threeten.extra.Interval.parse(value)

object Interval310 {
  def main(args: Array[String]): Unit = {
    println("hello world")
  }
}

Output

[info] Compiling 1 Scala source to /home/chungonn/development/scala3/explore/dotty-project-template/target/scala-0.24/classes ...
[error] Bad symbolic reference. A signature
[error] refers to FromString/T in package org.joda.convert which is not available.
[error] It may be completely missing from the current classpath, or the version on
[error] the classpath might be incompatible with the version used when compiling the signature.
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 0 s, completed 1 May, 2020 2:05:19 PM

Expectation

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions