Skip to content

Commit

Permalink
Add scittle to runtime versions (#3600)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-asdf authored Mar 8, 2024
1 parent 9edb2d2 commit 23540fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
- Updates [Orchard](https://github.com/clojure-emacs/orchard/blob/v0.23.0/CHANGELOG.md#0230-2024-03-03).
- Updates [Logjam](https://github.com/clojure-emacs/logjam/blob/v0.3.0/CHANGELOG.md#030-2024-03-03).


### Bugs fixed

- [#3600](https://github.com/clojure-emacs/cider/pull/3600): Fix scittle jack in when using `cider-jack-in-clj`.


## 1.13.1 (2024-02-01)

### Bugs fixed
Expand Down
8 changes: 8 additions & 0 deletions cider-connection.el
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ See `cider-connection-capabilities'."
('clojure '(clojure jvm-compilation-errors))
('babashka '(babashka jvm-compilation-errors))
('nbb '(cljs))
('scittle '(cljs))
(_ '()))
(when
(eq cider-repl-type 'cljs)
Expand Down Expand Up @@ -457,12 +458,19 @@ But helps us know if this is a nbb repl, or not."
(when nrepl-versions
(nrepl-dict-get nrepl-versions "nbb-nrepl"))))

(defun cider--scittle-nrepl-version ()
"Retrieve the underlying connection's scittle version."
(with-current-buffer (cider-current-repl)
(when nrepl-versions
(nrepl-dict-get nrepl-versions "scittle-nrepl"))))

(defun cider-runtime ()
"Return the runtime of the nREPl server."
(cond
((cider--clojure-version) 'clojure)
((cider--babashka-version) 'babashka)
((cider--nbb-nrepl-version) 'nbb)
((cider--scittle-nrepl-version) 'scittle)
(t 'generic)))

(defun cider-runtime-clojure-p ()
Expand Down

0 comments on commit 23540fd

Please sign in to comment.