Fork me on GitHub
#shadow-cljs
<
2019-03-30
>
Daniel Hines00:03:04

Hi all. For some reason, nREPL doesn’t start when I run shadow-cljs watch app

Daniel Hines00:03:22

It worked fine for me on the lein shadow template, which I based my config on.

Daniel Hines00:03:34

Here’s my current config:

{:source-paths
 ["src"]

 :dependencies [[binaryage/devtools "0.9.7"]
                [cider/cider-nrepl "0.20.0"]
                [datascript "0.18.2"]
                [posh "0.5.5"]
                [org.clojure/clojure "1.10.0"]
                [org.clojure/clojurescript "1.10.520"]
                [org.clojure/core.async  "0.4.490"]
                [reagent "0.8.1"]]

 ;; set an nrepl port for connection to a REPL.
 :nrepl        {:port 8777}

 :builds
 {:app {:target :browser
        :output-dir "public/js/compiled"
        :asset-path "/js/compiled"

        :modules
        {:main
         {:entries [rectangles.core]}}

        :devtools
        ;; before live-reloading any code call this function
        {:before-load rectangles.core/stop
         ;; after live-reloading finishes call this function
         :after-load rectangles.core/start
         ;; serve the public directory over http at port 8700
         :http-root    "public"
         :http-port    8700
         :preloads     [devtools.preload]}
        }}}

Daniel Hines00:03:50

What am I doing wrong?

thheller00:03:35

does it log something on start?

Daniel Hines00:03:03

shadow-cljs - config: /Users/d4hines/repos/rectangles/shadow-cljs.edn  cli version: 2.8.25  node: v8.12.0
shadow-cljs - connected to server
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (207 files, 1 compiled, 0 warnings, 5.02s)

Daniel Hines00:03:27

It was showing the nREPL info, and then it cut out with some change I made.

thheller00:03:37

shadow-cljs - connected to server

thheller00:03:42

there is a server isntance still running

thheller00:03:52

shut that down and do a clean restart

Daniel Hines00:03:52

Ooooh, thanks! That worked!

Daniel Hines00:03:59

Much appreciate it 🙏

hjrnunes19:03:26

hi, can anyone pls point me to docs on :> usage? As in [:> :div props child0 child1] thanks!

hjrnunes19:03:06

specifically, I'm trying to use this https://www.npmjs.com/package/react-masonry-css with shadow-cljs

thheller20:03:49

@hjrnunes don't know where the docs are, probably better to ask in #reagent

hjrnunes20:03:24

@thheller i got it, thanks!