-
-
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
Smoother repl start for sci based repls #3255
Comments
I realized another hurdle for a command like this is that (defun mm/cider-jack-in-nbb ()
"Start a nbb nrepl process and connect."
(interactive)
(let* ((cider-allow-jack-in-without-project t)
(orig-buffer (current-buffer))
(params '(:jack-in-cmd "nbb nrepl-server :port 0"
:cljs-repl-type nbb-or-scittle-or-joyride))
(params (cider--update-project-dir
params)))
(nrepl-start-server-process
(plist-get params :project-dir)
(plist-get params :jack-in-cmd)
(lambda (server-buffer)
(with-current-buffer
orig-buffer
(cider-connect-sibling-cljs
params
server-buffer)))))) also blog post: https://benjamin-asdf.github.io/faster-than-light-memes/jacking-nbb.html |
Update: We since discovered a bug in babashka where cljs.core/inc was defined. To differentiate cljs from clj reples you can check |
@benjamin-asdf I guess we can close this, right? |
I close this is fixed |
I would like to do this:
This almost works except that
cider--check-cljs
ends up throwing because "require 'cljs.core" in sci based repls throws an error.Here is a proposal:
checking cljs.core/inc should work everywhere. I already checked my nbb command and connecting to a shadow project repl.
Slack conversation:
https://clojurians.slack.com/archives/C029PTWD3HR/p1665687978090599
The text was updated successfully, but these errors were encountered: