This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-07
Channels
- # announcements (6)
- # babashka (17)
- # beginners (72)
- # calva (27)
- # cider (26)
- # circleci (6)
- # clj-kondo (35)
- # cljdoc (3)
- # clojure (22)
- # clojure-australia (2)
- # clojure-dev (45)
- # clojure-france (2)
- # clojure-italy (2)
- # clojurescript (60)
- # conjure (16)
- # cursive (8)
- # datahike (10)
- # datascript (1)
- # datomic (3)
- # emacs (5)
- # fulcro (16)
- # graalvm (4)
- # honeysql (1)
- # joker (10)
- # luminus (3)
- # malli (7)
- # off-topic (28)
- # pathom (4)
- # pedestal (2)
- # polylith (1)
- # re-frame (6)
- # reagent (9)
- # reveal (4)
- # shadow-cljs (48)
- # slack-help (1)
- # tools-deps (30)
- # vim (24)
@lukas.block
For long strings, nothing cider can do about it. You can check some emacs built-in modes though: toggle-truncate-lines
and visual-line-mode
.
For app-db, I'm not really sure what's the issue, a screenshot would be good. In general, if the object doesn't pprint nicely, I use cider-inspect
(binded to C-c M-i
by default)
Thank you a lot. I didn't know about cider inspect this is a really helpful enhancement of my work flow 😊
Hi 👋
I started a shadow-cljs project with:
shadow-cljs watch frontend --config-merge '{:closure-defines {vizards.nobil.core/APIKEY "123"}}'
which works fine but when I try to run cider-connect-cljs
, cider tries to run
(do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/watch :frontend) (shadow/watch :--config-merge) (shadow/watch :'{:closure-defines {vizards.nobil.core/NOBILKEY "123"}}') (shadow/nrepl-select :frontend))
Is this a bug or do I need to call cider differently?I’m assuming you have a dir locals file that sets some values. There’s probably a cljs repl type and a startup form in there
Yes thanks, I deleted my dir locals file and now I get a different error so at least there’s some progress 🙂
I initially tried to configure --config-merge
via dir locals but failed to do so, do you know how to configure that properly?
Is there a way to make cider
display a reagent component arguments? [my-comp arg1 arg2]
(eldoc)
Why did you delete that file. It sounded like it had some goodies in it. But it looks like it’s calling watch twice which is no good
I tried soo many different configurations to make this work in the last hour that deleting the file felt really good 😄 I tried to overwrite the custom cljs command with
((clojurescript-mode . ((cider-shadow-cljs-command . "npx shadow-cljs --config-merge '{:closure-defines {vizards.nobil.core/APIKEY \"123\"}}'"))))
now shadow-cljs starts but closure-defines is not setbut in general there are knobs for the-actual-executable
some-options
middleware stuff
cider-does-stuff-here final-options-passed-in
and you just want some final trailing options so that's what you want
But cider-shadow-cljs-parameters
is set to server
if I replace it with parameters no supported shadow-cljs
action is found
No server
is the default (https://docs.cider.mx/cider/1.0/cljs/shadow-cljs.html)
(I also tried (setq cider-shadow-cljs-parameters "server --config-merge '{:closure-defines {vizards.nobil.core/APIKEY \"123\"}}'")
but this is ignored as well)
ok. give me one second to go see how shadow expects this. in the meantime some dir locals like the following should work
((nil . ((cider-default-cljs-repl . custom)
(cider-custom-cljs-repl-init-form .
"(do (require '[shadow.cljs.devtools.api :as shadow])
(shadow/watch :your-app {:config :here})
(shadow/nrepl-select :your-app))"))))
ok. i'm guessing you can't pass a config merge in to server as config is per build, not global?
possibly the easiest thing to do:
1. in a terminal run the exact watch command you want with the config-merge. ensure that cider/nrepl is on the command line -d cider/cider-nrepl "0.25.8"
. There should be an example at the top of repls of the jack-in command.
2. cider-connect-cljs and choose shadow-select
and the watched build
I finally made it work with shadow-select
thanks!
(I did not work work with the custom REPL since my REPL tried to evaluate my closure-defines
variable which does only exist in the cljs
REPL but not in the clj
REPL. I tried to quote it but this resulted in closure-defines
being ignored. But at least it works with shadow-select
🙂 )
No I am still not able to make it work 🙈 Unfortunatly I have to leave now. But I am sure it will work by following your instructions when I stop programming in anger and rechecking all my local setup 😁 Thanks so much for your help I will retry it tomorrow

hi all, i'm using cider-nrepl via vim-fireplace for cljs development. i'm having some trouble with commands that use the info
op. basically when i have the following ns:
(ns my-ns.spec
(:require
[clojure.spec.alpha :as s :refer-macros [coll-of]]))
and i do an info
op for coll-of
, it works as expected:
send: {"ns": "my-ns.spec", "symbol": "coll-of", "op": "info", ...}
receive: {"status": ["done"], "doc": "Returns a spec..."}
however, when i don't refer coll-of
directly, the info
op fails for s/coll-of
:
(ns my-ns.spec
(:require
[clojure.spec.alpha :as s :include-macros true]))
send: {"ns": "my-ns.spec", "symbol": "s/coll-of", "op": "info", ...}
receive: {"status": ["done", "no-info"], ...}
the problem only seems to happen for macros; it works fine for e.g. s/explain
. i'm also able to eval code with s/coll-of
with no problem. it just seems to be a problem with the info
op.
am i doing something wrong?