Closed
Description
Compiler version
3.3.3 and 3.4.0
Minimized code
The project I'm attempting to compile is here.
git clone https://gitlab.com/joliciel/test-server.git
cd test-server
sbt
I removed the business modules (which compile quickly) and kept only the api module (whose compilation never ends).
I haven't minimized the code further as I could find no way of determining which parts were freezing the compiler.
Output
% sbt
[info] welcome to sbt 1.9.9 (Eclipse Adoptium Java 17.0.2)
[info] loading global plugins from /home/assaf/.sbt/1.0/plugins
[info] loading settings for project test-server-build from plugins.sbt ...
[info] loading project definition from /home/assaf/javawork/jochre3/test-server/project
[info] loading settings for project jochre3-server from build.sbt ...
[warn] JOCHRE3_SERVER_VERSION env var not found
[info] set current project to jochre3-server (in build file:/home/assaf/javawork/jochre3/test-server/)
[info] sbt server started at local:///home/assaf/.sbt/1.0/server/92affff4cbf1ff9d4214/sock
[info] started sbt server
sbt:jochre3-server> clean
[success] Total time: 0 s, completed Mar 6, 2024, 4:02:19 PM
sbt:jochre3-server> compile
[info] compiling 22 Scala sources to /home/assaf/javawork/jochre3/test-server/modules/api/target/scala-2.13/classes ...
[warn] 1 deprecation
[warn] 1 deprecation (since 3.7.0)
[warn] 2 deprecations in total; re-run with -deprecation for details
[warn] three warnings found
[success] Total time: 18 s, completed Mar 6, 2024, 4:02:40 PM
sbt:jochre3-server> ++ 3.3.3
[info] Setting Scala version to 3.3.3 on 1 projects.
[info] Excluded 1 projects, run ++ 3.3.3 -v for more details.
[info] Reapplying settings...
[info] set current project to jochre3-server (in build file:/home/assaf/javawork/jochre3/test-server/)
sbt:jochre3-server> compile
[info] compiling 22 Scala sources to /home/assaf/javawork/jochre3/test-server/modules/api/target/scala-3.3.3/classes ...
| => api / Compile / compileIncremental 3292s
Expectation
I would expect scala 3 to compile the code, which scala 2.13.13 compiles in 18 seconds, in a reasonable amount of time.