scala - Enable tilde trigger with Akka and sbt -


with sbt possible ~run recompile , run program when source changes. once actorsystem created not work anymore.

when system shutdown works, don't want shutdown system.

import akka.actor.actorsystem  object test {   def main(args: array[string]) : unit = {     val system = actorsystem()      // if line removed, source code detection disabled     system.shutdown()   } } 

is there workaround ?

you have remember sbts ~run not hot-reloading, "once process finishes, run again please". akka's thread-pools non-daemonic, means until actorsystem "alive" program not terminate, sbt's ~run won't trigger again.

instead might want sbt-revolver sbt plugin, can you're looking (including akka based apps).


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -