cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
papachan 2020-07-15T00:06:09.386900Z

OK after testing several time, i just play with some extra-deps from my alias and check they have been correctly loaded with cider-jackin. Also i configured a global options for my project and it run fine.

((nil . ((cider-clojure-cli-global-options . "-A:dev"))))

2020-07-15T21:58:23.392800Z

I'm not sure if this is a shadow-cljs question or a cider question. Given this dir-locals file:

((nil . (
         (cider-preferred-build-tool . shadow-cljs)
         (cider-default-cljs-repl . shadow)
         (cider-shadow-default-options . "app"))))
i would expect running "cider-jack-in-cljs" to automatically pick shadow and start watching the app "app". in my messages buffer i get the following :
[nREPL] Starting server via /usr/local/bin/npx shadow-cljs -d nrepl:0.8.0-alpha5 -d cider/piggieback:0.5.0 -d refactor-nrepl:2.5.0 -d cider/cider-nrepl:0.25.3-SNAPSHOT server
[nREPL] server started on 8777
[nREPL] Establishing direct connection to localhost:8777 ...
[nREPL] Direct connection to localhost:8777 established
Visit '<http://localhost:8700>' in a browser? (y or n) y
I suppose i would expect to see mention of the "app". ALso i would expect to have a cider connection, but when i check my buffer (or what ever the mini tab at the bottom is) it says "no connection". If i check my buffers i have a shadow cljs buffer:
;;  Startup: /usr/local/bin/npx shadow-cljs -d nrepl:0.8.0-alpha5 -d cider/piggieback:0.5.0 -d refactor-nrepl:2.5.0 -d cider/cider-nrepl:0.25.3-SNAPSHOT server
;;
;; ClojureScript REPL type: shadow
;; ClojureScript REPL init form: (do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/watch :app) (shadow/nrepl-select :app))
;;
[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (528 files, 1 compiled, 0 warnings, 9.15s)
To quit, type: :cljs/quit
[:selected :app]shadow.user&gt; 
cljs.user&gt; 
Similary, if i run "shadow-cljs watch app" i get a running shadow cljs server but if i try to connect to the nrepl server presented by "cider-connect-cljs" it fails.

2020-07-16T15:08:42.393300Z

my root shadow config was referencing old cider deps. This might have been the main issue. Though i believe shadow claims the :dependencies in ./shadow-cljs/config should be ignored if the project was set to use deps. Atm things seem to be working so i can't get more information. or i guess i could add the old nrepl dependencies back in.