一、问题
scala: No scalac found to compile scala sources
官网 Bug 链接
二、临时解决方案
Incrementality Type 先变成 IDEA 类型
Please go to Settings > Build, Execution, Deployment > Compiler > Scala Compiler and change the Incrementality type to IDEA.
三、永久解决方案
升级到 2023.2.4 以后版本
https://youtrack.jetbrains.com/issue/SCL-21480