This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-20
Channels
- # adventofcode (47)
- # announcements (3)
- # aws (29)
- # bangalore-clj (3)
- # beginners (63)
- # boot (2)
- # braveandtrue (40)
- # calva (34)
- # cider (37)
- # cljs-dev (8)
- # clojars (3)
- # clojure (45)
- # clojure-europe (2)
- # clojure-france (4)
- # clojure-india (2)
- # clojure-italy (44)
- # clojure-japan (4)
- # clojure-nl (39)
- # clojure-serbia (1)
- # clojure-spec (21)
- # clojure-uk (75)
- # clojurescript (28)
- # cursive (24)
- # data-science (3)
- # datomic (31)
- # emacs (13)
- # fulcro (35)
- # hoplon (21)
- # jobs-discuss (66)
- # nrepl (18)
- # off-topic (72)
- # pathom (35)
- # re-frame (20)
- # reagent (54)
- # shadow-cljs (35)
- # spacemacs (9)
- # specter (8)
- # sql (13)
- # testing (9)
- # tools-deps (21)
- # vim (3)
I’m having trouble wrapping my head around how I can get CIDER to connect to two different nREPL servers at the same time, within the same project. I am running my nREPL servers outside of CIDER: One is a plain Clojure server, the other is shadow-cljs. I can connect to either one of them and the correct thing happens, but when I try to connect at both, suddenly things start to fall apart. I’ve read the http://www.cider.mx/en/latest/managing_connections/ many times and I still can’t figure out how to do it. Any pointers welcome 🙂
As I understand it, I need to have two different “sessions”, since my sessions won’t share the same nREPL server.
So I need to do both cider-connect-clj
and cider-connect-cljs
. I do that, and sesman does report the two sessions running independently.
I tried to link a session with a buffer, and i see the link in sesman, but still I can’t get the expected results — evaluating to my CLJS buffer seems to hang or do something weird.
Using the shadow-cljs graphical REPL (in the build server webpage) produces the expected results so the nREPL connection is working. Apparently not an indicator, the build-browser repl is not using nREPL.
I tried to follow the instructions on the manual but it seems the commands indicated there are named something different in CIDER 0.18 — I’d file a PR to change them but perhaps best to first figure this out 🙂
as you see, my tests are wrapped in a let
, which gets debugged as normal: I can hit c
to move through the forms until it gets to the deftest
then the debugger quits, and my-test
is highlighted in red, ready to be debugged when run. When I run it with , t t
it doesn't debug, it passes as normal
Newbie here. I'm getting an error when trying to run coder-jack-in. I'm able to start the repl manually via lein and cider-connect to it. the error is Error loading refactor-nrepl.middleware
I'm using emacs-live to setup everything
A couple things I tried, I deleted my profile file.
I tried the following specifying the following plugins cider/cider-nrepl "0.12.0", refactor-nrepl "2.2.0"
no, i'm used the emacs-live overtone setup for clojure
Would you recommend using the "clojure for the brave and true" setup ? or is there another one?
i wrote a bit about it here: https://github.com/clojure-emacs/cider/issues/2535
ok ty, i'll take a look and see if that gets me going in the right direction.
for sure 🙂 sorry it can be so complicated. i would recommend dropping refactor stuff until you have a known working repl and then add it in
trying to figure out now why cider version is 0.14.
I don't see any thing specifying that version.
after upgrading to leiningen 2.8.3 I'm seeing this trying to start a repl:
Warning: implicit middleware found: refactor-nrepl.plugin/middleware \nPlease declare all middleware in :middleware as implicit loading is deprecated.\
the repl doesn't start, this is caught by the emacs debugger which I have switched on for errors
@tristram I also have issues to debug tests when run via cider utilities.
However, using (clojure.test/run-tests )
works.
See here: https://stackoverflow.com/questions/53870654/use-cider-debugging-inside-a-deftest/53873709#53873709