[
https://issues.apache.org/jira/browse/DAFFODIL-2986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Lawrence reassigned DAFFODIL-2986:
----------------------------------------
Assignee: Steve Lawrence
> Circular Dependency Detection is broken in Scala 3
> --------------------------------------------------
>
> Key: DAFFODIL-2986
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2986
> Project: Daffodil
> Issue Type: Bug
> Components: Back End
> Affects Versions: 3.10.0
> Reporter: Olabusayo Kilo
> Assignee: Steve Lawrence
> Priority: Major
> Fix For: 4.0.0
>
>
> See test
> org.apache.daffodil.lib.oolag.TestOOLAG#testCircularDefinitionDetected which
> ends up hanging indefinitely. Scala 3 changed lazy val initialization so you
> can no longer access a lazy val while it is evaluating. There are a couple
> suggestions on how to fix this such as using a separate thread to monitor for
> hanging via stack trace analysis, tracking time stamps or stage flags or
> using progress detectors. All methods will require extensive changes to the
> OOLAG library so for now, if something is taking a while during development,
> pause debugging using IntelliJ to see where it is stuck and refactor your
> code to avoid it.
> See https://chatgpt.com/share/67e576e9-3cc4-800f-ac01-41996870038d for
> suggestions on detecting circular definitions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)