This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-21
Channels
- # announcements (1)
- # architecture (1)
- # beginners (125)
- # boot (6)
- # boot-dev (2)
- # calva (69)
- # cider (38)
- # cljs-dev (3)
- # clojure (212)
- # clojure-austin (7)
- # clojure-australia (1)
- # clojure-denver (2)
- # clojure-europe (3)
- # clojure-gamedev (1)
- # clojure-hamburg (8)
- # clojure-italy (10)
- # clojure-nl (31)
- # clojure-russia (3)
- # clojure-uk (57)
- # clojurescript (56)
- # core-async (3)
- # cursive (15)
- # datascript (1)
- # duct (28)
- # emacs (6)
- # events (1)
- # figwheel-main (11)
- # fulcro (22)
- # luminus (59)
- # lumo (2)
- # onyx (4)
- # overtone (1)
- # re-frame (1)
- # reagent (4)
- # remote-jobs (3)
- # rum (2)
- # shadow-cljs (84)
- # spacemacs (7)
- # speculative (5)
- # vim (1)
- # yada (127)
seems I had added some code earlier to make CIDER use cider-nrepl 0.19.0-SNAPSHOT, which is outdated by now.
I'm can't get shadow-cljs to work with cider - it always errors with
error in process filter: Sync nREPL request timed out (op classpath)
after selecting the REPL type`;; Connected to nREPL server - <nrepl://localhost:8230> ;; CIDER 0.21.0snapshot (package: 20190116.1142), nREPL 0.2.13`
tried putting [nrepl "0.5.3"] into :dependencies
list in the shadow-cljs.edn but that didn't change anything
@qythium I detailed my setup with shadow-cljs
here, if it can be of any help: https://manuel-uberti.github.io/programming/2018/11/14/deps-shadow-cljs/
do I need a deps.edn / project.clj in the folder? I thought shadow-cljs.edn was meant to replace that
Well, shadow-cljs is for ClojureScript. You will still need to use something else to build/configure the Clojure side of your project, if you have one
ohh okay, I was starting with the shadow-examples repo and didn't realise there was a project.clj in the root folder
@qythium you absolutely do not need deps/lein for shadow-cljs if you just want to do CLJS
the project.clj
in the root folder of the examples is only for Cursive. it is otherwise unused.
so the idea is to start npx shadow-cljs watch ...
from an external terminal, then use cider-connect-cljs
instead of jacking in directly from Emacs?
I don't use emacs myself and don't know but this was written by a contributor. not sure how current it is though. https://shadow-cljs.github.io/docs/UsersGuide.html#cider
this seemed to work:
(add-hook 'cider-mode-hook
'(lambda () (add-hook 'after-save-hook
'(lambda ()
(if (and (boundp 'cider-mode) cider-mode)
(cider-ns-refresh))))))
ns-refresh invokes clojure.tools.namespace.repl/refresh ns-reload invokes (require ... :reload)
I found that ns-reload actually did (clojure.core/reload "x.y.z")
and made the fn which I had modified really refreshing, and ns-refresh didn't
Does anyone know how to use the old cider-cljs-lein-repl
functionality in newer versions of Cider? The latest version of Cider seems to need you to register the REPL type.