Skip to content

Commit 9808235

Browse files
authored
Merge branch 'clojure-emacs:master' into fix-remote-enrich-classpath-init
2 parents e68d571 + 588c579 commit 9808235

File tree

14 files changed

+104
-41
lines changed

14 files changed

+104
-41
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22

33
## master (unreleased)
44

5+
## 1.16.1 (2024-12-03)
6+
57
### Changes
68

9+
- Bump the injected `cider-nrepl` to [0.50.3](https://github.com/clojure-emacs/cider-nrepl/blob/master/CHANGELOG.md#0503-2024-12-02).
10+
- [#3753](https://github.com/clojure-emacs/cider/pull/3753): Add `cider-log-show-frameworks` command to show available log frameworks in a buffer.
711
- [#3746](https://github.com/clojure-emacs/cider/issues/3746): Bring back `cider` completion style for activating backend-driven completion.
812

913
### Bugs fixed
1014

11-
- [#3742](https://github.com/clojure-emacs/cider/issues/3742): Restore syntax highlighting in result minibuffer.
12-
- [#3747](https://github.com/clojure-emacs/cider/issues/3747): Fix errors when docstring is nil.
15+
- [#3742](https://github.com/clojure-emacs/cider/issues/3742): Restore syntax highlighting of result in the minibuffer.
16+
- [#3747](https://github.com/clojure-emacs/cider/issues/3747): Fix errors when docstring is `nil`.
17+
- [#3757](https://github.com/clojure-emacs/cider/issues/3757): Fix inspector's `def-current-value` selecting wrong REPL when multiple are connected.
18+
- [#3754](https://github.com/clojure-emacs/cider/issues/3754): Fix regex in `cider-ns-from-p`.
1319

1420
## 1.16.0 (2024-09-24)
1521

cider-client.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ EVAL-BUFFER is the buffer where the spinner was started."
108108
;;; Evaluation helpers
109109
(defun cider-ns-form-p (form)
110110
"Check if FORM is an ns form."
111-
(string-match-p "^[[:space:]]*\(ns\\([[:space:]]*$\\|[[:space:]]+\\)" form))
111+
(string-match-p "\\`[[:space:]]*\(ns\\([[:space:]]*$\\|[[:space:]]+\\)" form))
112112

113113
(defun cider-ns-from-form (ns-form)
114114
"Get ns substring from NS-FORM."

cider-inspector.el

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ current-namespace."
388388
(interactive (let ((ns (cider-current-ns)))
389389
(list (cider-inspector--read-var-name-from-user ns)
390390
ns)))
391-
(setq cider-inspector--current-repl (cider-current-repl))
392391
(when-let* ((result (cider-sync-request:inspect-def-current-val ns var-name 'v2)))
393392
(cider-inspector--render-value result 'v2)
394393
(message "Defined current inspector value as #'%s/%s" ns var-name)))

cider-log.el

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ Example values: \"Logback\", \"Timbre\"."
4848
:safe #'stringp
4949
:type 'string)
5050

51+
(defcustom cider-log-frameworks-buffer "*cider-log-frameworks*"
52+
"The name of the log frameworks popup buffer."
53+
:group 'cider
54+
:package-version '(cider . "1.17")
55+
:safe #'stringp
56+
:type 'string)
57+
58+
(defcustom cider-log-auto-select-frameworks-buffer t
59+
"Whether to auto-select the log frameworks popup buffer."
60+
:group 'cider
61+
:package-version '(cider . "1.17")
62+
:safe #'booleanp
63+
:type 'boolean)
64+
5165
(defcustom cider-log-appender-id "cider-log"
5266
"The name of the default log appender."
5367
:group 'cider
@@ -1032,6 +1046,26 @@ the CIDER Inspector and the CIDER stacktrace mode.
10321046

10331047
;; Framework actions
10341048

1049+
(transient-define-suffix cider-log-show-frameworks ()
1050+
"Show the available log frameworks in a buffer."
1051+
:description "Show frameworks in a buffer"
1052+
(interactive)
1053+
(let ((frameworks (cider-sync-request:log-frameworks)))
1054+
(with-current-buffer (cider-popup-buffer cider-log-frameworks-buffer
1055+
cider-log-auto-select-frameworks-buffer)
1056+
(read-only-mode -1)
1057+
(insert (with-temp-buffer
1058+
(insert (propertize (cider-propertize "Cider Log Frameworks" 'ns) 'ns t) "\n\n")
1059+
(dolist (framework frameworks)
1060+
(insert (propertize (cider-propertize (cider-log-framework-name framework) 'ns) 'ns t) "\n\n")
1061+
(insert (format " Website ......... %s\n" (cider-log-framework-website-url framework)))
1062+
(insert (format " Javadocs ........ %s\n" (cider-log-framework-javadoc-url framework)))
1063+
(insert (format " Levels .......... %s\n" (string-join (cider-log-framework-level-names framework) ", ")))
1064+
(newline))
1065+
(buffer-string)))
1066+
(read-only-mode 1)
1067+
(goto-char (point-min)))))
1068+
10351069
(transient-define-suffix cider-log-browse-javadocs (framework)
10361070
"Browse the Javadoc of the log FRAMEWORK."
10371071
:description "Browse Java documentation"
@@ -1220,6 +1254,7 @@ the CIDER Inspector and the CIDER stacktrace mode.
12201254
(transient-define-prefix cider-log-framework (framework)
12211255
"Show the Cider log framework menu."
12221256
[["Cider Log Framework\n\nActions:"
1257+
("a" cider-log-show-frameworks)
12231258
("b" cider-log-set-buffer)
12241259
("j" cider-log-browse-javadocs)
12251260
("s" cider-log-set-framework)
@@ -1441,6 +1476,7 @@ based on `transient-mode'."
14411476
(transient-define-prefix cider-log (framework appender)
14421477
"Show the Cider log menu."
14431478
[["Framework Actions"
1479+
("fa" cider-log-show-frameworks)
14441480
("fs" cider-log-set-framework)
14451481
("fb" cider-log-set-buffer)
14461482
("fj" cider-log-browse-javadocs)

cider.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
;; Steve Purcell <[email protected]>
1212
;; Maintainer: Bozhidar Batsov <[email protected]>
1313
;; URL: https://www.github.com/clojure-emacs/cider
14-
;; Version: 1.16.0
14+
;; Version: 1.16.1
1515
;; Package-Requires: ((emacs "26") (clojure-mode "5.19") (parseedn "1.2.1") (queue "0.2") (spinner "1.7") (seq "2.22") (sesman "0.3.2") (transient "0.4.1"))
1616
;; Keywords: languages, clojure, cider
1717

@@ -93,7 +93,7 @@
9393
(require 'sesman)
9494
(require 'package)
9595

96-
(defconst cider-version "1.16.0"
96+
(defconst cider-version "1.16.1"
9797
"The current version of CIDER.")
9898

9999
(defconst cider-codename "Kherson"
@@ -591,7 +591,7 @@ the artifact.")
591591
592592
Used when `cider-jack-in-auto-inject-clojure' is set to `latest'.")
593593

594-
(defconst cider-required-middleware-version "0.50.2"
594+
(defconst cider-required-middleware-version "0.50.3"
595595
"The CIDER nREPL version that's known to work properly with CIDER.")
596596

597597
(defcustom cider-injected-middleware-version cider-required-middleware-version

dev/docker-sample-project/project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
:dependencies [[org.clojure/clojure "1.11.1"]
33
[clj-http "3.12.3"]]
44
:source-paths ["src"]
5-
:plugins [[cider/cider-nrepl "0.50.2"]])
5+
:plugins [[cider/cider-nrepl "0.50.3"]])

dev/tramp-sample-project/project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
:dependencies [[org.clojure/clojure "1.11.1"]
33
[clj-http "3.12.3"]]
44
:source-paths ["src"]
5-
:plugins [[cider/cider-nrepl "0.50.2"]
5+
:plugins [[cider/cider-nrepl "0.50.3"]
66
[refactor-nrepl "3.9.0"]])

doc/modules/ROOT/pages/basics/middleware_setup.adoc

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

3333
[source,clojure]
3434
----
35-
:plugins [[cider/cider-nrepl "0.50.2"]]
35+
:plugins [[cider/cider-nrepl "0.50.3"]]
3636
----
3737

3838
A minimal `profiles.clj` for CIDER would be:
3939

4040
[source,clojure]
4141
----
42-
{:repl {:plugins [[cider/cider-nrepl "0.50.2"]]}}
42+
{:repl {:plugins [[cider/cider-nrepl "0.50.3"]]}}
4343
----
4444

4545
WARNING: Be careful not to place this in the `:user` profile, as this way CIDER's
@@ -59,7 +59,7 @@ all of their projects using a `~/.boot/profile.boot` file like so:
5959
(require 'boot.repl)
6060
6161
(swap! boot.repl/*default-dependencies*
62-
concat '[[cider/cider-nrepl "0.50.2"]])
62+
concat '[[cider/cider-nrepl "0.50.3"]])
6363
6464
(swap! boot.repl/*default-middleware*
6565
conj 'cider.nrepl/cider-middleware)
@@ -76,11 +76,11 @@ run `cider-connect` or `cider-connect-cljs`.
7676

7777
[source,clojure]
7878
----
79-
:cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.50.2"}}
79+
:cider-clj {:extra-deps {cider/cider-nrepl {:mvn/version "0.50.3"}}
8080
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
8181
8282
:cider-cljs {:extra-deps {org.clojure/clojurescript {:mvn/version "1.10.339"}
83-
cider/cider-nrepl {:mvn/version "0.50.2"}
83+
cider/cider-nrepl {:mvn/version "0.50.3"}
8484
cider/piggieback {:mvn/version "0.5.3"}}
8585
:main-opts ["-m" "nrepl.cmdline" "--middleware"
8686
"[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}
@@ -99,7 +99,7 @@ NOTE: Make sure you're using https://github.com/clojurephant/clojurephant[Clojur
9999
----
100100
dependencies {
101101
devImplementation 'nrepl:nrepl:0.9.0'
102-
devImplementation 'cider:cider-nrepl:0.50.2'
102+
devImplementation 'cider:cider-nrepl:0.50.3'
103103
}
104104
105105
tasks.named('clojureRepl') {

doc/modules/ROOT/pages/basics/up_and_running.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ simple - CIDER simply passes the extra dependencies and nREPL configuration to
7373
your build tool in the command it runs to start the nREPL server. Here's how
7474
this looks for `tools.deps`:
7575

76-
$ clojure -Sdeps '{:deps {nrepl {:mvn/version "1.3.0"} cider/cider-nrepl {:mvn/version "0.50.2"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
76+
$ clojure -Sdeps '{:deps {nrepl {:mvn/version "1.3.0"} cider/cider-nrepl {:mvn/version "0.50.3"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]'
7777

7878
TIP: If you don't want `cider-jack-in` to inject dependencies automatically, set
7979
`cider-inject-dependencies-at-jack-in` to `nil`. Note that you'll have to setup
@@ -350,7 +350,7 @@ It is also possible for plain `clj`, although the command is somewhat longer:
350350

351351
[source,sh]
352352
----
353-
$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.50.2"}}}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
353+
$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.50.3"}}}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
354354
----
355355

356356
Alternatively, you can start nREPL either manually or using the facilities

doc/modules/ROOT/pages/cljs/shadow-cljs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ And connect to it with `cider-connect`.
6262
...For that to work, `shadow-cljs.edn` contents like the following are assumed:
6363

6464
```clj
65-
:dependencies [[cider/cider-nrepl "0.50.2"] ;; mandatory (unless it's inherited from deps.edn or otherwise present in the classpath of shadow-cljs's JVM process)
65+
:dependencies [[cider/cider-nrepl "0.50.3"] ;; mandatory (unless it's inherited from deps.edn or otherwise present in the classpath of shadow-cljs's JVM process)
6666
[refactor-nrepl/refactor-nrepl "3.9.0"]] ;; refactor-nrepl is optional
6767

6868
:nrepl {:middleware [cider.nrepl/cider-middleware ;; it's advisable to explicitly add this middleware. It's automatically added by shadow-cljs (if available in the classpath), unless `:nrepl {:cider false}`

0 commit comments

Comments
 (0)