I get problems with executing (simple) Scala scripts after the imported class is renamed. One of the scripts (script.scala) only has a println in it, the other (Test_totaliseer.scala) imports the class Totaliseer and uses a method (som) of it.
The configuration is that of a Scala Script with no tasks before launch.
Initially it works, but after I rename the class and I check that the refactoring in the visible code is done, I cannot execute the scripts anymore. Error "error running script; Scala script not found" as a red popup from the Run view.
I remove the configurations, restart the IDE, make new configurations and it still doesn't work. I reload another project, execute a script (no errors) and witch back to the original project. I execute the simple println script and that one runs.
Then I execute the one with the imported class and it reports this error
/home/chris/IdeaProjects/scala/test2/src/mypackage/Test_totaliseer.scala:1: error: not found: value mypackage
/home/chris/IdeaProjects/scala/test2/src/mypackage/Test_totaliseer.scala:3: error: not found: type Totaliseer
val tot = new Totaliseer
Apperently there is some cache that still holds the old class name.
Update: I just noted that an Application configuration (Summer) is changed to a Scala Script configuration, pointing to the class I just renamed. I reinstall it as an Application and run it: error is "Exception in thread "main" java.lang.ClassNotFoundException" while it ran perfectly after I created this new project.
I created this whole new project from scratch because I have had these problems before. Every script has run without errors.
I run IDEA Ultimate 133.471 with Scala plugin 0.26.357.
I think this whole Scala thing is still a bit messy. Any suggestions??