-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add scittle to runtime versions #3600
Add scittle to runtime versions #3600
Conversation
Scittle nrepl was saying a version but we don't take it into account for runtime classification. |
CHANGELOG.md
Outdated
@@ -7,6 +7,7 @@ | |||
- [#3588](https://github.com/clojure-emacs/cider/issues/3588): Compatibility with pwsh 7.3 quoting rules. | |||
- Bump the injected `enrich-classpath` to [1.19.0](https://github.com/clojure-emacs/enrich-classpath/compare/v1.18.6...v1.19.0). | |||
- Bump the `parseedn` required version to 1.2.1. | |||
- [#3600](https://github.com/clojure-emacs/cider/pull/3600) Fix scittle jack in when using `cider-jack-in-clj` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're missing a :
and a .
here.
cider-connection.el
Outdated
@@ -456,12 +457,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 () | |||
"Likewise for scittle. See `cider--nbb-nrepl-version'." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather copy the docstring from nbb
, so this can be read standalone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd appreciate understanding, does scittle have a nrepl server? Mind to share some links?
If so ideally it would bave the same capabilities as a bb-nrepl server, namely ns-list
and classpath
ops, for correct Sesman functioning.
You could also expand the user manual to show that this is possible, its use case, sample setup etc. ...It would also help us verify this works as intended - I've never used scittle but would gladly QA this branch |
@benjamin-asdf ping :-) |
df12f30
to
88dbdba
Compare
Hi, the write up is here. The last section should not be neccessary because it is replaced by cljs discovery. The cljs discovery was broken for scittle and I am honestly not 100% happy about this. I thought that we had something where the client checks cljs capability by itself. The problem right now is that if somebody like Jack Rusher writes a new clojurescript repl, it won't work directly. And it does for calva, which is then pointed out usually :P |
Please check the git logs as I don't immediately recall what that thing was named, or why it was removed.
Not sure of how things came to that point (if they really are). Per: (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))) ...the only cljs repls that need a special identification happen to come from the same author. There's a nice variety of cljs repls that don't need that. |
@benjamin-asdf Ping :-) |
88dbdba
to
4110e7e
Compare
@bbatsov Jo I fixed the remaining lint error (I hope) |
CHANGELOG.md
Outdated
@@ -2,6 +2,8 @@ | |||
|
|||
## master (unreleased) | |||
|
|||
- [#3600](https://github.com/clojure-emacs/cider/pull/3600): Fix scittle jack in when using `cider-jack-in-clj. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go under Bugs fixed
or Changes
. Also you missed the closing backtick.
cider-connection.el
Outdated
@@ -457,12 +458,22 @@ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use here more compact indentation, as the code reads better this way - e.g. like in the function above for nbb
.
I think you'll need to rebase on top of |
4b2984f
to
7363eee
Compare
@bbatsov Cool, I fixed the remaining issues |
Thanks! |
Replace this placeholder text with a summary of the changes in your PR.
The more detailed you are, the better.
Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
eldev test
)eldev lint
) which is based onelisp-lint
and includescheckdoc
, check-declare, packaging metadata, indentation, and trailing whitespace checks.