when upgrading to scala 3 (3.7+, 3.8+) my project stops compiling #25386
-
|
I have a really really big project (sadly can't share) that will start hanging once I upgrade from scala 2 to scala 3 (3.7,3.8) it just stops doing anything at all and hangs in I already tried to raise the log level, bug it does not print out anything at all. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
|
You could use |
Beta Was this translation helpful? Give feedback.
Here's what claude sonnet came up with after 30 minutes. Take it with a pile of salt :-) no effort done from my side here (sorry).
Theory
The hang is caused by the SpaceEngine's reachabilityCheckable analysis performing non-memoized decompose(List[T]) calls in O(N²) complexity for large Play SIRD routers.
What the stack trace reveals
Thread pool-46-thread-9 consumed 135s of CPU in 140s (96% utilization). The hot path is: