This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (16)
- # babashka (104)
- # beginners (77)
- # bristol-clojurians (1)
- # calva (3)
- # chlorine-clover (50)
- # cider (19)
- # clojure (73)
- # clojure-australia (1)
- # clojure-europe (37)
- # clojure-france (3)
- # clojure-nl (3)
- # clojure-norway (13)
- # clojure-spec (21)
- # clojure-uk (79)
- # clojurescript (225)
- # conjure (102)
- # cursive (11)
- # datascript (1)
- # datomic (1)
- # defnpodcast (1)
- # events (3)
- # figwheel-main (2)
- # fulcro (49)
- # ghostwheel (10)
- # helix (1)
- # kaocha (17)
- # leiningen (10)
- # meander (1)
- # off-topic (26)
- # other-lisps (3)
- # pathom (5)
- # re-frame (40)
- # reagent (6)
- # reitit (33)
- # shadow-cljs (107)
- # testing (3)
- # tools-deps (68)
- # xtdb (16)
- # yada (3)
> If you have more than one project configuration file (project.clj, deps.edn, build.boot) then cider-jack-in commands should display a prompt allowing you to choose which configuration to use.
Yes it's what I already do, when I jack-in I choose clojure-cli and it works perfectly.
However as I say above, when I use the command
cljr-add-project-dependency`` , clj-refactor see the project.clj file and try to add the dependency in there.
I anayse the code and I think it's because the order of filenames in this list:
In the clj-refactor code I don't see any variable to force the project file which I can overwrite in .dirs-locals.el for eg.
I will try to implement that and do an PR.
BTW, thank for the useful information that we can find on your website too, it help me a lot, particully for the
-A:fig a while ago when I first tested figwheel-main. 😉
hello 👋 when I cause stack traces by eval-ing in the repl, I get a
*cider-error* buffer which is great. but when a stacktrace appears in the repl otherwise (i.e. not from me eval-ing in emacs) the
*cider-error* buffer seems unaware of it, and I can't find a way to get it to inspect it. am I missing something, or is this not possible in cider? thanks
Does cider help see what methods are available on a java class? Or should i be looking elsewhere?
and if you're on a version greater than 11 check the comments on https://github.com/clojure-emacs/orchard/pull/84 to load up the recent changes to make it work
Is there a way to automatically start my app and directly tell `cider-connect-sibling-cljs` to use my unique `:app` alias ? I have my `dir-locals.el` on this project with the basic settings:
((nil . ((cider-default-cljs-repl . shadow) (cider-shadow-cljs-default-options . "app"))))
i believe when it does it together it uses the same startup program but that's not helpful here since presumably you want lein/clj on the backend and shadow on the frontend
https://docs.cider.mx/cider/basics/clojurescript.html Haven't tested this, but would something like this work?
;; modify the list of known REPLs and set some default ((nil (cider-custom-cljs-repl-init-form . "(do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/watch :app) (shadow/nrepl-select :app))" (cider-default-cljs-repl . custom)))
Seems i get it worked with another config
((nil . ((cider-preferred-build-tool . shadow-cljs) (cider-default-cljs-repl . shadow) (cider-shadow-default-options . ":app") (cider-shadow-cljs-global-options . "-A:shadow-cljs"))))
I just noticed cider inspect last value now upstates everytime i re eval. This is awesome!