I use scala sbt console to test my methods. (commands : sbt then console) But the code changes done in eclipse or other external editor, are not getting reflected in the sbt console.
Every time, I have to quit the console (using Crt + D) and again start it using console command to see the changes.
Any one facing this problem? Is there any ways to reload the code from console?
I am using Ubuntu 64-Bit,
In bash you should be able to use Ctrl+L, on OSX you can also use Cmd+K.
Reload an sbt project IntelliJ IDEA cannot reload just a part of your project, it reloads the whole project including subprojects and dependencies.
If you call scala, you will get whatever scala version is installed on the path of your operating system. If you call sbt console, you get the scala version configured in the sbt build (build. sbt) with all libraries that are used in the build already on the classpath.
Not without using something like JRebel, mostly because class definitions could break in such a way as to make instances already loaded unusable. The only suggestion I have is to run the console with ~console so that if changes have been made they will be recompiled and the console re-entered.
Also if you're regularly running a set of commands the initialCommands sbt setting configures commands to be run immediately after starting the console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With