This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-25
Channels
- # announcements (3)
- # beginners (64)
- # calva (1)
- # cider (78)
- # clj-kondo (4)
- # clojure-losangeles (1)
- # clojure-uk (5)
- # clojuredesign-podcast (1)
- # clojurescript (15)
- # cursive (2)
- # datomic (19)
- # docker (7)
- # fulcro (17)
- # graalvm (1)
- # hugsql (1)
- # instaparse (2)
- # jobs-discuss (25)
- # joker (2)
- # luminus (1)
- # off-topic (20)
- # pathom (1)
- # pedestal (2)
- # reagent (5)
- # shadow-cljs (83)
- # spacemacs (11)
- # vim (1)
- # vscode (13)
I’m able to connect to a shadow build in CIDER. Now I want to connect to the CLJ part of the project, which was generated by Luminus.
It asked the sibling question. I said ‘yes’ and it silently failed. I think.
and you said it silently failed? can you look in the *Messages*
buffer to see if there's any information in there?
Opening a CLJ file doesn’t indicate a connection, and compile buffer does not work.
Will do.
A session with the same parameters exists (bank/bank1:localhost:7002). You can connect a sibling instead. Proceed? (y or n) y
[nREPL] Starting server via /Users/jmckitrick/bin/lein update-in :dependencies conj \[nrepl\ \“0.6.0\“\] -- update-in :plugins conj \[cider/cider-nrepl\ \“0.23.0\“\] -- repl :headless :host localhost
Loading /Users/jmckitrick/devel/bank/bank1/src/clj/bank1/core.clj...
Let’s see…
Profiles have all been commented out, with only ‘lein-ancient’ remaining.
I just restarted… I’m connected to CLJS/shadow. Running jack-in-clj….
Correct, only CLJS repl buffers.
It asked the ‘sibling’ question and then…. nothing.
Correct.
3 minutes?
Maybe I should start the back end in a terminal, and just connect….
So ‘connect’ acts like it works, and I have a repl buffer, but it’s warning me that I don’t have cider-nrepl, and the buffer doesn’t have cider functionality.
Let me check the buffer….
No errors at all.
yeah. if you go the connect route your are responsible for ensuring that the middleware are set up
ok let’s try again…
cider-jack-in-cljs
first
Select shadow, then the app build, then visit the ‘active builds’ page. So far so good.
Now cider-jack-in
Connect using sibling, Y
command to use: lein
‘Starting server…’
[nREPL] Starting server via /usr/local/bin/npx shadow-cljs -d nrepl:0.6.0 -d cider/piggieback:0.4.2 -d cider/cider-nrepl:0.23.0 server
[nREPL] server started on 7002
[nREPL] Establishing direct connection to localhost:7002 ...
[nREPL] Direct connection to localhost:7002 established
Visit '' in a browser? (y or n) y
A session with the same parameters exists (bank/bank1:localhost:7002). You can connect a sibling instead. Proceed? (y or n) y
[nREPL] Starting server via /Users/jmckitrick/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.23.0\"\] -- repl :headless :host localhost
Mark set [2 times]
line-move-visual: End of buffer [8 times]
line-move-visual: End of buffer
That’s my *Messages*
Still waiting….
run /Users/jmckitrick/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.23.0\"\] -- repl :headless :host localhost
(the exact same command) from a terminal and see if you get more output
Warning: implicit middleware found: cider-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
nREPL server started on port 50827 on host localhost - <nrepl://localhost:50827>
2.8.3
So CIDER still won’t start the CLJ REPL, but in the terminal I don’t get the warning about middleware.
Yes and yes.
Now, for what it’s worth…
~/p/c/my-app ❯❯❯ lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.23.0\"\] -- repl
nREPL server started on port 34237 on host 127.0.0.1 -
REPL-y 0.4.3, nREPL 0.6.0
Clojure 1.10.1
OpenJDK 64-Bit Server VM 11.0.5+10-post-Ubuntu-0ubuntu1.1
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> (+ 1 1)
2
user=>
If I start CLJ first it works.
So it seems I can start one or the other, but not both.
[nREPL] Starting server via /home/dan/projects/node/bin/npx shadow-cljs -d nrepl:0.6.0 -d cider/piggieback:0.4.2 -d cider/cider-nrepl:0.23.0 server
[nREPL] server started on 7002
[nREPL] Establishing direct connection to localhost:7002 ...
[nREPL] Direct connection to localhost:7002 established
Visit '' in a browser? (y or n) n
A session with the same parameters exists (clojure/my-app:localhost:7002). You can connect a sibling instead. Proceed? (y or n) y
[nREPL] Starting server via /home/dan/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.23.0\"\] -- repl :headless :host localhost
[nREPL] server started on 36361
[nREPL] Establishing direct connection to localhost:36361 ...
[nREPL] Direct connection to localhost:36361 established
works for me. i have no idea. is your CIDER up to date?Yes, CIDER 20200120.711
Yes, I am
Wow, that stinks. I mean, I have had it running like that before, but not recently, and not with shadow, IIRC.
What luminus template params did you use?
Let me try one from scratch again.
Rats. I give up.
i'm really sorry. would you like to try screensharing or something? that sucks that you can't get it going
i can jump on a zoom and work with you if you have the time. or tomorrow if that's better for you
That would totally work for me.
I’m free for the next few hours anytime.
No problem. Thanks!