-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scala3 crashes due to binary-incompatible upgrade when it should emit an error instead #18152
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
That would be really helpful yes! |
The previous error from #16439 was fixed. Can you verify that the error is still present when compiling with the latest nightly? |
I just tried with Scala 3.3.2-RC1-bin-20230705-13f877b-NIGHTLY `` An unhandled exception was thrown in the compiler.
== Source file context for tree position == [error] ## Exception when compiling 7 sources to /Users/pascal/Qarmin/gitlab/qarmin/development/WebReport/webPage/target/scala-3.3.2-RC1-bin-20230705-13f877b-NIGHTLY/classes |
Ah, OK. That's actually does not look like the error in #16439. So, yes, a minimization would be really helpful! |
There is an example here: [email protected]:pmeheut/scala_bug.git
|
I figured out the root cause of the issue: when
|
Upgrading libraries to the new airstream fixes the crash: diff --git project/Dependencies.scala project/Dependencies.scala
index 210a43b..cd1d26c 100644
--- project/Dependencies.scala
+++ project/Dependencies.scala
@@ -2,7 +2,7 @@ import sbt._
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
object Dependencies {
- val calibanVersion = "2.0.1"
+ val calibanVersion = "2.2.1"
val sttpVersion = "3.8.3"
@@ -27,9 +27,9 @@ object Dependencies {
val scalaTagsVersion = "0.12.0"
val circeVersion = "0.14.3"
- val laminarVersion = "0.14.5"
- val laminextVersion = "0.14.3"
- val laminarUI5Version = "1.9.0"
+ val laminarVersion = "15.0.1"
+ val laminextVersion = "0.15.0"
+ val laminarUI5Version = "1.10.0"
val waypointVersion = "6.0.0"
val scalajsPlotlyJsVersion = "1.6.2"
val plotlyJsVersion = "2.12.1" There's a few compiler errors though, one is an issue with circe and caliban (which I see you reported before #18166, but should probably be reported to caliban instead) and the other are API changes in caliban. |
Thanks for the quick diagnostic. |
A project I've been working on compiles perfectly but as soon as I add
"com.raquo" %%% "waypoint" % "6.0.0"
to the dependencies, the compiler crashes.Even if no code is referencing the library.
Compiler version
3.3.0
Minimized code
The problem occurs in a full-stack project with Scala JVM/Scala JS cross-compilation, Caliban, ZIO, Quill and when I had a library to the dependencies in sbt.
I have tried to reproduce it but it disappears if the code is too simple.
If needed, I could create a repository with moke versions of the proprietary code but the problem and stack is exactly the same as #16439
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: