Skip to content

Commit

Permalink
Fix a bug where :eval-in :nrepl would look in the wrong place for port.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jan 21, 2024
1 parent 3252469 commit 82f5002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 2.11.0 / ???

* Fix a bug where `:eval-in :nrepl` couldn't detect running repl. (Phil Hagelberg)
* Fix a bug where `:eval-in :nrepl` would crash. (Marco Biscaro)
* Fix a bug where files on test path could be visible during jar. (Phil Hagelberg)
* Fix an issue with `check` in namespaces that rely on AOT. (Phil Hagelberg)
* Fix a redundant confusing dependencies warning. (Phil Hagelberg)
* Add `static-classpath` task for static analysis. (Phil Hagelberg)
Expand Down
2 changes: 1 addition & 1 deletion leiningen-core/src/leiningen/core/eval.clj
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
(defmethod eval-in :nrepl [project form]
(require 'nrepl.core)
(require 'nrepl.transport)
(let [port-file (io/file (:target-path project) "repl-port")
(let [port-file (io/file (:root project) ".nrepl-port")
connect (resolve 'nrepl.core/connect)
client (resolve 'nrepl.core/client)
client-session (resolve 'nrepl.core/client-session)
Expand Down

0 comments on commit 82f5002

Please sign in to comment.