Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Write repl port to file in target. Fixes #682.

  • Loading branch information...
commit e5f87083f21ad8248995a60379dfe37251d56ae6 1 parent e7dadcd
@technomancy authored
Showing with 6 additions and 5 deletions.
  1. +5 −4 src/leiningen/repl.clj
  2. +1 −1  todo.org
View
9 src/leiningen/repl.clj
@@ -27,10 +27,11 @@
(defn- start-server [project host port ack-port & [headless?]]
(let [server-starting-form
`(let [server# (clojure.tools.nrepl.server/start-server
- :bind ~host :port ~port :ack-port ~ack-port)]
- (println "nREPL server started on port"
- (-> server# deref :ss .getLocalPort))
- (while true (Thread/sleep Long/MAX_VALUE)))]
+ :bind ~host :port ~port :ack-port ~ack-port)
+ port# (-> server# deref :ss .getLocalPort)]
+ (println "nREPL server started on port" port#)
+ (spit ~(str (io/file (:target-path project) "repl-port")) port#)
+ @(promise))]
(if project
(eval/eval-in-project
(project/merge-profiles project [(:repl (user/profiles) profile)
View
2  todo.org
@@ -5,10 +5,10 @@ See also https://github.com/technomancy/leiningen/issues
* For 2.0.0
** 2.0.0-final
- [X] Allow trampoline to work with chaining in do task (#665)
+ - [X] Store repl port on filesystem (#682)
- [ ] Honor :local-repo in trampoline (#695)
- [ ] OOM in repl with lots of output (#691)
- [ ] Search indices on Central have moved (#683)
- - [ ] Store repl port on filesystem (#682)
- [ ] Improve speed of trampoline restarts (#573)
- [ ] Reduce Aether verbosity (#610)
- [ ] Honor hooks/metadata in from plugins (#401)
Please sign in to comment.
Something went wrong with that request. Please try again.