Skip to content

Commit

Permalink
Merge pull request technomancy#1413 from laurentpetit/issue-1412
Browse files Browse the repository at this point in the history
Add nREPL URL to output along side the human readable message
  • Loading branch information
technomancy committed Jan 9, 2014
2 parents b497494 + 672d204 commit 919bf67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ Enough setup; let's see some code running. Start with a REPL
(read-eval-print loop):

$ lein repl
nREPL server started on port 55568 on host 127.0.0.1
nREPL server started on port 55568 on host 127.0.0.1 - nrepl://127.0.0.1:55568
REPL-y 0.3.0
Clojure 1.5.1
Docs: (doc function-name-here)
Expand Down
5 changes: 3 additions & 2 deletions src/leiningen/repl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
legacy-repl-port# (if (.exists (io/file ~(:target-path project)))
(io/file ~(:target-path project) "repl-port"))]
(when ~start-msg?
(println "nREPL server started on port" port# "on host" ~(:host cfg)))
(println "nREPL server started on port" port# "on host" ~(:host cfg) (str "- nrepl://" ~(:host cfg) ":" port#)))
(spit (doto repl-port-file# .deleteOnExit) port#)
(when legacy-repl-port#
(spit (doto legacy-repl-port# .deleteOnExit) port#))
Expand Down Expand Up @@ -205,7 +205,8 @@
(if-let [repl-port (nrepl.ack/wait-for-ack
(get-in project [:repl-options :timeout] 60000))]
(do (main/info "nREPL server started on port"
repl-port "on host" (:host cfg))
repl-port "on host" (:host cfg)
(str "- nrepl://" (:host cfg) ":" repl-port))
repl-port)
(main/abort "REPL server launch timed out."))))

Expand Down

0 comments on commit 919bf67

Please sign in to comment.