-
Notifications
You must be signed in to change notification settings - Fork 326
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
assert in AliasAnalysis when runEngineDistribution --debug
#11022
Comments
|
Do we have any information about the source file that triggers the failure? Any steps to reproduce? I am not able to reproduce the problem - neither from CLI, neither from IDE. |
The Scala assertions aren't elided because of It was never my plan to fail production execution! I just wanted to be notified if/when there is a modification to a graph that is supposed to be frozen. Switching to regular JVM assert in: |
runEngineDistribution --debug
I am able to reproduce this problem when debugging:
in VSCode with breakpoint at Column_Operations_Spec:843 I cannot evaluate any expression in Debug Console. Yields this assertion. diff --git engine/runtime-compiler/src/main/scala/org/enso/compiler/pass/analyse/alias/graph/Graph.scala engine/runtime-compiler/src/main/scala/org/enso/compiler/pass/analyse/alias/graph/Graph.scala
index edf167ef72..105062b088 100644
--- engine/runtime-compiler/src/main/scala/org/enso/compiler/pass/analyse/alias/graph/Graph.scala
+++ engine/runtime-compiler/src/main/scala/org/enso/compiler/pass/analyse/alias/graph/Graph.scala
@@ -116,7 +116,7 @@ sealed class Graph(
}
private def addSourceTargetLink(link: Graph.Link): Unit = {
- assert(!frozen)
+ //assert(!frozen)
sourceLinks = sourceLinks.updatedWith(link.source)(v =>
v.map(s => s + link).orElse(Some(Set(link)))
) Commenting the above line out fixes the problem. When the problem happens, the stacktrace is like this:
|
Assert removed in 3fbcabc |
The text was updated successfully, but these errors were encountered: