Fork me on GitHub
#cider
<
2019-08-30
>
johanatan02:08:40

i'm having a lot of trouble getting cider working with figwheel-main (latest versions of all involved packages).

johanatan02:08:50

anyone else using this setup successfully and can share the setup?

johanatan04:08:18

here are my deps:

com.bhauman/figwheel-main {:mvn/version "0.2.3"}
        com.bhauman/rebel-readline {:mvn/version "0.1.4"}
        com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
        org.clojure/tools.nrepl {:mvn/version "0.2.13"}
        nrepl/nrepl {:mvn/version "0.6.0"}
        cider/cider-nrepl {:mvn/version "0.22.0"}
        cider/piggieback {:mvn/version "0.4.1"}

bozhidar07:08:23

Try removing that dependency to tools.nrepl. My guess is that this should fix your problem.

jr0cket07:08:54

@johanatan I use the figwheel-main template to create new projects and that works with CIDER without issue. Details of the deps.edn file and other configuration files and workflow are here http://jr0cket.co.uk/2019/08/development-workflow-with-clojure-cli-tools.html There is also a video of creating a figwheel-main of project with the Clojure CLI tools here https://youtu.be/uuxEYsX-1eg

johanatan16:08:27

Unfortunately this is also my own setup. Most of it works. But connecting from CIDER/Emacs does not.

johanatan16:08:13

cider-jack-in-cljs does not prompt for the build tool like it is purported to.

jr0cket07:08:50

If you want to run a deps.edn based figwheel-main project from Emacs, then don’t forget to include the alias for cider-jack-in-cljs if that is where you include the figwheel-main dependency http://jr0cket.co.uk/2019/07/CIDER-jack-in-to-Clojure-CLI-projects-from-Spacemacs.html

kommen08:08:48

@jr0cket since you worked on find var stuff recently, do you mind having a quick look at https://github.com/syl20bnr/spacemacs/pull/12658?

jr0cket08:08:46

Yes, looks very useful, thanks. I will give it a try and leave a comment on the GitHub PR, helping the maintainers know it works for others. If anyone else here has used this hopefully they will do the same. Thanks again.

kommen08:08:16

thank you too!