Skip to content

Commit 2587706

Browse files
vemvbbatsov
authored andcommitted
0.27.2
1 parent 3add430 commit 2587706

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## master (unreleased)
44

5+
## 0.27.2 (2021-10-03)
6+
7+
### Bugs fixed
8+
9+
* [#716](https://github.com/clojure-emacs/cider-nrepl/issues/716): Fix StackOverflowErrors related to `*out*` handling.
10+
511
## 0.27.1 (2021-10-02)
612

713
### Bugs fixed

doc/modules/ROOT/pages/nrepl-api/ops.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file is _generated_ by #'cider.nrepl.impl.docs/-main
44
////
55
= Supported nREPL operations
66
7-
[small]#generated from a verbose 'describe' response (cider-nrepl v0.27.1)#
7+
[small]#generated from a verbose 'describe' response (cider-nrepl v0.27.2)#
88

99
== Operations
1010

doc/modules/ROOT/pages/usage.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ Use the convenient plugin for defaults, either in your project's
1515

1616
[source,clojure]
1717
----
18-
:plugins [[cider/cider-nrepl "0.27.1"]]
18+
:plugins [[cider/cider-nrepl "0.27.2"]]
1919
----
2020

2121
A minimal `profiles.clj` for CIDER would be:
2222

2323
[source,clojure]
2424
----
25-
{:user {:plugins [[cider/cider-nrepl "0.27.1"]]}}
25+
{:user {:plugins [[cider/cider-nrepl "0.27.2"]]}}
2626
----
2727

2828
Or (if you know what you're doing) add `cider-nrepl` to your `:dev
@@ -31,7 +31,7 @@ under `:repl-options`.
3131

3232
[source,clojure]
3333
----
34-
:dependencies [[cider/cider-nrepl "0.27.1"]]
34+
:dependencies [[cider/cider-nrepl "0.27.2"]]
3535
:repl-options {:nrepl-middleware
3636
[cider.nrepl/wrap-apropos
3737
cider.nrepl/wrap-classpath
@@ -64,15 +64,15 @@ it on the command line through the `cider.tasks/add-middleware` task
6464
functionality):
6565

6666
----
67-
boot -d nrepl:0.7.0 -d cider/cider-nrepl:0.27.1 -i "(require 'cider.tasks)" cider.tasks/add-middleware -m cider.nrepl.middleware.apropos/wrap-apropos -m cider.nrepl.middleware.version/wrap-version repl --server wait
67+
boot -d nrepl:0.7.0 -d cider/cider-nrepl:0.27.2 -i "(require 'cider.tasks)" cider.tasks/add-middleware -m cider.nrepl.middleware.apropos/wrap-apropos -m cider.nrepl.middleware.version/wrap-version repl --server wait
6868
----
6969

7070
Or for all of their projects by adding a `~/.boot/profile.boot` file like so:
7171

7272
[source,clojure]
7373
----
7474
(set-env! :dependencies '[[nrepl "0.7.0"]
75-
[cider/cider-nrepl "0.27.1"]])
75+
[cider/cider-nrepl "0.27.2"]])
7676
7777
(require '[cider.tasks :refer [add-middleware]])
7878
@@ -94,7 +94,7 @@ You can easily boot an nREPL server with the CIDER middleware loaded
9494
with the following "magic" incantation:
9595

9696
----
97-
clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.27.1"} }}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
97+
clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.27.2"} }}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
9898
----
9999

100100
There are also two convenient aliases you can employ:
@@ -104,12 +104,12 @@ There are also two convenient aliases you can employ:
104104
{...
105105
:aliases
106106
{:cider-clj {:extra-deps {org.clojure/clojure {:mvn/version "1.10.1"}
107-
cider/cider-nrepl {:mvn/version "0.27.1"}}
107+
cider/cider-nrepl {:mvn/version "0.27.2"}}
108108
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
109109
110110
:cider-cljs {:extra-deps {org.clojure/clojure {:mvn/version "1.10.1"}
111111
org.clojure/clojurescript {:mvn/version "1.10.339"}
112-
cider/cider-nrepl {:mvn/version "0.27.1"}
112+
cider/cider-nrepl {:mvn/version "0.27.2"}
113113
cider/piggieback {:mvn/version "0.5.2"}}
114114
:main-opts ["-m" "nrepl.cmdline" "--middleware"
115115
"[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}}}

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject cider/cider-nrepl "0.27.1"
1+
(defproject cider/cider-nrepl "0.27.2"
22
:description "A collection of nREPL middleware designed to enhance Clojure editors."
33
:url "https://github.com/clojure-emacs/cider-nrepl"
44
:license {:name "Eclipse Public License"

src/cider/nrepl/middleware/out.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818

1919
(declare unsubscribe-session)
2020

21-
(defonce original-output
21+
(defonce
2222
^{:doc "Store the values of the original output streams so we can refer to them.
2323
Please do not inline; they must not be recomputed at runtime."}
24+
original-output
2425
{:out *out*
2526
:err *err*})
2627

test/clj/cider/nrepl/middleware/out_test.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@
2727
(is (not some-other-key)))
2828
(o/unsubscribe-session (:id the-meta))
2929
(is (empty? @o/tracked-sessions-map))))
30+
31+
(deftest original-output-test
32+
(testing "The mapping is computed once; not doing so would defeat is point and create issues."
33+
(is (map? o/original-output))
34+
(is (not (fn? o/original-output)))))

0 commit comments

Comments
 (0)