Intellij IDEA at times does not compile the changed scala files.
Answered
After mvn clean, it does not compile automatically the source when you try to run the scala application from within the idea. It complains the class not found (because IDEA does not compile them after mvn clean)
Please sign in to leave a comment.
Try Build | Build or Rebuild.
Make sure Build step is included in Before Launch section of the run/debug configuration.
I have tried those options before. It did not work. I have also included the Build Step in the Before Launch section. What I noticed is that build process kicks off and I do see the resources (properties, yml files) being copied to the target but not the compiled class files. This happens for only one of the module so I was wondering if there is an Intellij IDEA setting that accidentally triggered this behaviour.
Looks like a bug, please report at https://youtrack.jetbrains.com/issues/SCL with the reproducible test case.
Also attach idea.log and build.log with debug info: https://intellij-support.jetbrains.com/hc/articles/207241085.
Also experiencing the same as Sarvana. With Build Step in Before launch, code changes not being represented.