diff --git a/spec/reply/integration_spec.clj b/spec/reply/integration_spec.clj index bf609d1..8c6f741 100644 --- a/spec/reply/integration_spec.clj +++ b/spec/reply/integration_spec.clj @@ -140,6 +140,7 @@ (around [f] (let [cl (classlojure/classlojure (str "file:" (:local-path logging)) + (str "file:" (:local-path bencode)) (str "file:" (:local-path nrepl)) (str "file:" (:local-path clojure))) server-port diff --git a/src/clj/reply/eval_modes/nrepl.clj b/src/clj/reply/eval_modes/nrepl.clj index 40d1440..772381e 100644 --- a/src/clj/reply/eval_modes/nrepl.clj +++ b/src/clj/reply/eval_modes/nrepl.clj @@ -155,11 +155,9 @@ (defn get-connection [{:keys [attach host port]}] (let [server (when-not attach - (nrepl.server/start-server - :port (Integer/parseInt (str (or port 0))))) + (nrepl.server/start-server :port port)) port (when-not attach - (let [^ServerSocket socket (-> server deref :ss)] - (.getLocalPort socket))) + (:port server)) url (url-for attach host port)] (when server (reset! nrepl-server server))