Fork me on GitHub
#cider
<
2019-08-14
>
daplay18:08:33

I'm trying to use figwheel's nrepl with cider-nrepl middleware but I can't get it to work 😕 Upon start I get:

Figwheel: Starting CSS Watcher for paths  ["resources/public/css"]
Figwheel: Starting nREPL server on port: 7002
WARNING: unable to load "cider.nrepl/cider-middleware" middleware
Launching ClojureScript REPL for build: app
- figwheel-sidecar and lein-figwheel are in version 0.5.18 - cider/piggieback 0.4.1 - cider-nrepl 0.21.1 - nrepl 0.6.0

daplay18:08:15

the error goes away if I remove :nrepl-port from :figwheel in my project.clj, but then, I can't connect from fireplace 😕

jahson19:08:16

Are you doing something like this? https://figwheel.org/docs/vim.html

daplay19:08:31

Hi @U071CG4QY this is what I have

daplay19:08:16

:figwheel {:http-server-root "public"
             :server-logfile "log/figwheel-logfile.log"
             :nrepl-port 7002

             :css-dirs ["resources/public/css"]
             :nrepl-middleware [
                                ;; "cider/wrap-cljs-repl"
                                ;; "refactor-nrepl.middleware/wrap-refactor"
                                "cider.nrepl/cider-middleware"
                                "cider.piggieback/wrap-cljs-repl" 
                                ] }


:profiles { :project/dev  {:jvm-opts ["-Dconf=dev-config.edn"]
                          :dependencies [[binaryage/devtools "0.9.10"]
                                         ;; [cider/piggieback "0.3.9"]
                                         [cider/piggieback "0.4.1"]
                                         [doo "0.1.10"]
                                         [devcards "0.2.6"]
                                         [expound "0.7.1"]
                                         [figwheel-sidecar "0.5.18"
                                          :exclusions [org.clojure/tools.nrepl]]
                                         [pjstadig/humane-test-output "0.8.3"]
                                         [prone "1.6.0"]
                                         [faker "0.2.2"]
                                         [ring/ring-devel "1.6.3"]
                                         [ring/ring-mock "0.3.2"]]
                          :plugins      [[com.jakemccrary/lein-test-refresh "0.23.0"]
                                         ;; [refactor-nrepl "2.4.0"]
                                         [cider/cider-nrepl "0.21.1"]

                                         ;; [refactor-nrepl "2.4.0"]
                                         ;; [cider/cider-nrepl "0.21.1"]

                                         [lein-doo "0.1.10"]
                                         [lein-figwheel "0.5.18"]] })
                            

daplay19:08:34

and actually piggieback works

daplay19:08:53

I can connect from vim-fireplace with Piggieback (figwheel-sidecar.repl-api/repl-env)

daplay19:08:35

I want to install cider, to later, install refactor