This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-21
Channels
- # announcements (13)
- # babashka (29)
- # beginners (52)
- # calva (95)
- # cider (18)
- # clj-commons (7)
- # cljs-dev (42)
- # clojure (121)
- # clojure-australia (1)
- # clojure-dev (39)
- # clojure-europe (36)
- # clojure-france (4)
- # clojure-greece (1)
- # clojure-italy (20)
- # clojure-nl (3)
- # clojure-portugal (1)
- # clojure-uk (7)
- # clojurescript (47)
- # conjure (2)
- # cursive (9)
- # datalevin (5)
- # datascript (8)
- # datomic (68)
- # defnpodcast (2)
- # deps-new (5)
- # fulcro (18)
- # graalvm (21)
- # gratitude (9)
- # jobs (6)
- # jobs-discuss (17)
- # leiningen (3)
- # lsp (80)
- # lumo (1)
- # malli (9)
- # mount (2)
- # off-topic (16)
- # other-languages (8)
- # podcasts-discuss (19)
- # reitit (5)
- # remote-jobs (5)
- # shadow-cljs (29)
- # sql (5)
- # tools-deps (13)
- # vim (11)
- # xtdb (19)
After jack-in-cljs, and then opening the app in a browser I often get this exception:
1. Unhandled clojure.lang.ExceptionInfo
Expected REPL Connections Evaporated!
{:type :js-eval-exception,
:error
{:status :exception,
:value "Expected REPL Connections Evaporated!",
:stacktrace "No stacktrace available."},
:form (set! cljs.core/*print-namespace-maps* true),
:js "(cljs.core._STAR_print_namespace_maps_STAR_ = true)"}
This results in no working figwheel REPL in cider, but the rest of the figwheel process works as expected (e.g. it still compiles and reloads). Any pointers to some options I can tweak to avoid this?I'm having problems with Emacs and Cider on Windows using a deps.edn file, I was wondering if anyone else had issue with this combination. We have an alias in this project called "dev" that includes the paths to the project source but I can't seem to get Cider to set that path. I can try to edit the command, but it's a big blob of base64 encoded text.
I can't help much here however you might have better luck by launching a nrepl (+ cider-nrepl, refactor-nrepl) process from a terminal and then running cider-connect
against that
It's a more transparent approach if just a little more manual
Yes, you are correct: that's the only thing that's worked for me so far. The "escaping quotes" section on the clj-on-windows project page kind of hints that something nutty is happening. https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows#escaping-quotes
I'd guess that not many maintainers hack on Windows so you might find something interesting / PR-able by inspecting the source and evaling various forms in an Elisp repl. Else you can always report an issue over GH
I can't seem to make it work, I wonder if there's something weird happening that is preventing it from seeing the deps.edn
file. I did submit an issue. š
https://github.com/clojure-emacs/cider/issues/3079
Thanks @U45T93RA6, setting the cider-clojure-cli-aliases
variable did resolve my problem.
Hi folks, I am trying to install clj-refactor
from source but I have some problem finding the inflections
package's source - where does the project live?
Oh it might be buried in this one https://github.com/eschulte/jump.el/tree/55caa66a7cc6e0b1a76143fd40eff38416928941
Hi there, today is nrepl day. I thought I knew how to do this but when I start nrepl this way
(nrepl-server/start-server :port port
:address bind-address
:middleware [#'cider.nrepl/cider-middleware #'refactor-nrepl.middleware/wrap-refactor])
I get the warnings that functions may not be available...
I tried symbols as well to no avail, is there anything there obviously wrong I am doing?Oh, did :middleware
disappear on start-server
?
Oh, did :middleware
disappear on start-server
?
which is just
(def cider-nrepl-handler
"CIDER's nREPL handler."
(apply nrepl-server/default-handler (map resolve-or-fail mw/cider-middleware)))
This is what eventually worked:
(def custom-nrepl-handler
"We build our own custom nrepl handler, mimicking CIDER's."
(apply nrepl-server/default-handler (conj cider.nrepl.middleware/cider-middleware 'refactor-nrepl.middleware/wrap-refactor)))
The fact is that cider-middleware
is actually middleware*s* and you need to add the refactor-nrepl
one to itprobably we should have an 'official' snippet for this, or if it's around in the docs already it should be more easily discoverable.
probably we should have an 'official' snippet for this, or if it's around in the docs already it should be more easily discoverable.