Closed malchmih closed 10 years ago
I believe the issue is that ClojureRuntimeFactory
shuts down the agent thread pool when the factory instance is closed, which would kill nREPL. I've pushed a potential fix for that - it solves the problem for me locally using your test app. You can try it by using version 0.5.0-SNAPSHOT
in your project.clj
and server.clj
. You may also need to add the sonatype snapshots repo to project.clj
:
...
:repositories [["sonatype snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"]]
...
Works for me, great!
Great news, closing.
Created a simple project for this (https://groups.google.com/forum/#!topic/vertx/PEEouE8SPDE) discussion - https://github.com/malchmih/vertx-repl. It is based on Stuart Sierra's workflow. When you connect using "lein repl" you can start and reload code with user/reset function. After calling it three times (one to start and next two to reload) REPL connection breaks.