This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-19
Channels
- # announcements (5)
- # beginners (68)
- # boot (1)
- # cider (27)
- # clara (11)
- # cljdoc (10)
- # clojure (129)
- # clojure-europe (2)
- # clojure-italy (16)
- # clojure-nl (15)
- # clojure-spec (74)
- # clojure-uk (31)
- # clojurescript (62)
- # core-async (17)
- # cursive (28)
- # datomic (22)
- # duct (29)
- # emacs (10)
- # fulcro (65)
- # hoplon (2)
- # hyperfiddle (16)
- # instaparse (3)
- # kaocha (2)
- # lein-figwheel (3)
- # leiningen (1)
- # mount (1)
- # nrepl (21)
- # off-topic (23)
- # re-frame (59)
- # reitit (18)
- # ring-swagger (2)
- # shadow-cljs (2)
- # spacemacs (16)
- # timbre (2)
- # tools-deps (22)
> does anyone know whether compliment
is responsible for returning keyword info like spec location? I am trying to understand how to solve cider issue #2523
@richiardiandrea Isn’t this in
?
in a project with deps.edn
and shadow-cljs
, is it possible to make cider-jack-in-clj
default to clojure-cli
instead of prompting for a choice?
fantastic, thanks! Set it in .dir-locals.el
, and it works as expected. I kept looking for cider default ...
and cider repl ...
within C-h v
and missed that one. 🙂
similarly, is there a way to set a default namespace for the CLJ REPL to be automatically in when cider-jack-in-clj
ends? I tried using cider-clojure-cli-global-options
set to -m <my-ns>
, but the REPL didn't show up.
this works via CLI, but not in cider-clojure-cli-global-options
:
$ clj -e "(ns my-app.core)" -r
For cider-clojure-cli-global-options
, I tried in .dir-locals.el
:
(nil
(cider-clojure-cli-global-options . "-e \"(ns my-app.core)\" -r")
(cider-ns-refresh-after-fn . "mount.core/start")
(cider-ns-refresh-before-fn . "mount.core/stop")
(cider-preferred-build-tool . clojure-cli))
)
I don’t recall if we have something about this currently, but in general it’s not hard to implement.
@dpsutton Good idea! In lein
I always used :init-ns
, but I guess just adding some (in-ns ...
) to user.clj is a more generic approach to tackle this.
I just don’t know if people would prefer this namespace to be required automatically be default or not.
which ns? i thought clojure used user.clj[s] by default when it is found on the classpath
hey, is there any way to enforce clj repl type for cljs sources? I mean, I don't use any cljs-specific repl in my project, I simply would like to switch to connected clj repl instead of getting a No cljs REPLs in current session "clojure/xxxx:localhost:5600"
message.
@dpsutton yeah, the problem is, I would have to do it for each cljs file which I want to switch to repl from.
you are fighting against the grain here obviously, and this might really muck things up for you in other projects where you do want to send cljs stuff to cljs repls but check out cider-repl-type-for-buffer
and perhaps have that always return "clj". perhaps you can add some more logic into it that checks if it is in "that" project, etc