-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed as not planned
Closed as not planned
Copy link
Labels
itype:bugitype:metaIssues about process/similarIssues about process/similarregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymorestat:wontfix
Description
Based on OpenCB failure for beangle/commons
- Open CB logs
Compiler version
Last good release: 3.8.0-RC1-bin-20250816-644bd7f-NIGHTLY
First bad release: 3.8.0-RC1-bin-20250816-fdf052d-NIGHTLY
Bisect points to aae5acb
Minimized code
import scala.runtime.stdLibPatches.Predef.assert
Output
> scala compile example.scala -S 3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY -explain-cyclic
Compiling project (Scala 3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY, JVM (21))
[error] ./example.scala:1:8
[error] Cyclic reference involving method assert
[error]
[error] The error occurred while trying to compute the signature of method assert
[error] which required to read the definition of method assert in /Users/wmazur/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY/scala3-library_3-3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY.jar(scala/runtime/stdLibPatches/Predef.tasty)
[error] which required to compute the base classes of class SourceFile
[error] which required to compute the signature of class SourceFile
[error] which required to read the definition of class SourceFile in /Users/wmazur/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY/scala3-library_3-3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY.jar(scala/annotation/internal/SourceFile.tasty)
[error] which required to compute the signature of object Predef
[error] which required to compute the signature of object Predef
[error] which required to compute the signature of method assert
[error]
[error] Run with both -explain-cyclic and -Ydebug-cyclic to see full stack trace.
[error] import scala.runtime.stdLibPatches.Predef.assert
[error] ^
Error compiling project (Scala 3.8.0-RC1-bin-20250822-658c8bd-NIGHTLY, JVM (21))
Expectation
Probably won't fix, but all definitions present in stdlibPatches should be deprecated in 3.8 and removed in 3.9
Metadata
Metadata
Assignees
Labels
itype:bugitype:metaIssues about process/similarIssues about process/similarregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymorestat:wontfix