-
Notifications
You must be signed in to change notification settings - Fork 1.1k
java.lang.AssertionError: assertion failed: TS[753540, 753539, 753538] attempted to take ownership of B which is already owned by committable TS[808807, 753540, 753539, 753538] #20768
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
Also, for what it's worth, the error happened when in the diff from the |
We'll need to minimise this. @rleibman can you help? |
Yeah, I know, unfortunately I don't have a lot of time to reproduce a minimal version, at least I know that it happens on that specific branch, so there's only a few files that are affected. I believe it's in one of the scala.js files, for what it's worth. I'm sorry if I can't be more specific and don't have much time to spend on it. I removed most of those changes from my |
@Gedochao I'm seeing the same problem (with different integer values in the assertion failure). I've managed to minimize the reproduction down to what I think is small enough to think about debugging the failure. Given there are already several duplicates of this issue, may I simply leave steps to reproduce in this ticket, as it seems to be the first one? I'll add a following comment... |
**Reproduction: ** The repository: https://github.com/sageserpent-open/kineticMerge at commit: af774510ad44a859bd28ca6b7a6549677fea9507 (branch: Scala build uses 3.3.4. Code follows inline:
import scala.language.postfixOps
lazy val javaVersion = "17"
ThisBuild / scalaVersion := "3.3.4"
ThisBuild / javacOptions ++= Seq("-source", javaVersion, "-target", javaVersion)
ThisBuild / scalacOptions += s"-java-output-version:$javaVersion"
lazy val root = (project in file("."))
.settings(
scalacOptions ++= List("-source:future"),
name := "kinetic-merge",
libraryDependencies += "org.typelevel" %% "cats-core" % "2.12.0"
)
package com.sageserpent.kineticmerge.core
import cats.Eval
import cats.data.StateT
case class Bystander():
end Bystander
object Bystander:
type PartialResultsCache = Unit
type EvalWithPartialResultState[X] = StateT[Eval, PartialResultsCache, X]
def of(
index: Int
): EvalWithPartialResultState[Bystander] =
StateT.get.flatMap { partialResultsCache =>
_of(index)
.flatMap(computedResult =>
StateT
.set(???)
// This last call to `>>` with the rhs operand triggers the assertion
// failure. Commenting it out yields an expected compilation error...
>> StateT.pure(
computedResult
)
)
}
end of
def _of(
index: Int
): EvalWithPartialResultState[Bystander] = ???
end Bystander
Error message from SBT:
Stack trace when building via IntelliJ:
|
I should add that changing the offending For that matter, remembering to put in |
Reproduction steps
Scala version: I'm able to reproduce it in both 3.4.2 and 3.5.0-RC1 (I was running with 3.5.0-RC1, but went back to 3.4.2 to see if it still happened there.
It's a very complicated application, and everything was going fine, on my latest changes, I started getting this error.
To reproduce:
clone https://github.com/rleibman/dmscreen/tree/scalaError
cd to the stLib directory and
sbt publishLocal
cd back to the root directory and
sbt compile
Problem
The text was updated successfully, but these errors were encountered: