Skip to main content

IntelliJ IDEA 2023 version, .java file reports no scalac found to compile scala sources problem

There is no problem with maven install, but an error is reported when compiling in the new version of idea.

The reason should be that there are differences in the calling logic of Scala Compiler between the old and new versions. This is because the same project can be compiled normally in the old version.

Solution

Settings > Build, Execution, Deployment > Compiler > Scala Compiler -> Modify the Incrementality type to IDEA

And rebuild