IntelliJ Scala 2.13.0 no longer compiles – Error compiling the sbt component ‘compiler-bridge-2.13.0-66.0’
I am working on a hobby project on my desktop using Scala 2.13.0 and JDK 22. The project compiles and runs perfectly fine there. This project is also on my personal GitHub. Because I went on holiday to Norway, I decided to clone it on my laptop. I updated my JDK to 22 there as well and have updated my system variables to properly refer to that Java version. I can select JDK 22 as well in IntelliJ and have also selected Scala JDK 2.13.0 as I have on my desktop at home. Yet, when I attempt to compile it (and any other Scala project on my laptop using any other JDK for that matter), it straight up fails with errors I have never seen before. I have spent hours and hours trying to find any solutions, but I am at a complete loss at this point. I have collected the following errors and stacktraces with the final error only taking place when rebuilding after already having had a failed build before: