This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-15
Channels
- # admin-announcements (1)
- # announcements (8)
- # babashka (6)
- # beginners (70)
- # bristol-clojurians (1)
- # chlorine-clover (15)
- # cider (3)
- # cljs-dev (2)
- # cljsrn (27)
- # clojure (249)
- # clojure-europe (19)
- # clojure-italy (2)
- # clojure-nl (12)
- # clojure-spec (11)
- # clojure-uk (42)
- # clojuredesign-podcast (6)
- # clojurescript (39)
- # community-development (1)
- # conjure (43)
- # cursive (37)
- # data-science (1)
- # datomic (3)
- # duct (16)
- # figwheel-main (23)
- # fulcro (3)
- # instaparse (5)
- # java (5)
- # jobs (1)
- # jobs-discuss (1)
- # malli (11)
- # off-topic (27)
- # re-frame (32)
- # reagent (5)
- # reitit (2)
- # rum (15)
- # shadow-cljs (24)
- # spacemacs (7)
- # sql (5)
- # test-check (3)
- # tools-deps (5)
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"))))
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 '' 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>
cljs.user>
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.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.