This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-07
Channels
- # 100-days-of-code (1)
- # announcements (10)
- # aws (2)
- # beginners (134)
- # calva (25)
- # cider (29)
- # cljs-dev (43)
- # clojure (130)
- # clojure-dusseldorf (3)
- # clojure-italy (27)
- # clojure-nl (48)
- # clojure-spec (32)
- # clojure-uk (63)
- # clojurescript (75)
- # core-logic (5)
- # cursive (18)
- # datascript (2)
- # datomic (37)
- # emacs (5)
- # figwheel (13)
- # figwheel-main (55)
- # graphql (1)
- # java (7)
- # jobs (11)
- # jobs-discuss (19)
- # juxt (1)
- # leiningen (16)
- # luminus (10)
- # mount (3)
- # off-topic (40)
- # om (1)
- # onyx (1)
- # pedestal (7)
- # re-frame (40)
- # reagent (81)
- # ring (2)
- # shadow-cljs (32)
- # spacemacs (5)
- # testing (1)
- # tools-deps (48)
@bhauman - cheers: I must have had typo somewhere. work like a charm for reagent with clj -A:fig:build and auto-testing as well as clj -A:fig:test and mac chrome headless
I am now trying to run figwheel-main in CIDER, and I can’t seem to find dedicated documentation - does anyone know of any?
I did find this repo: https://github.com/arichiardi/figwheel-main-cider
When I jack-in-cljs with this I kinda get a REPL, but I can only interact with it via a stdin:
prompt in my minibuffer
@christian767 I found that with a current Cider everything "just works" once I removed all the little tweaks and hacks I had accumulated in my setup 🙂
minimal example that I have confirmed is working:
kjetil@nsdl37:~/Utvikling/fikenhjul$ cat deps.edn
{:paths ["src/cljs" "target"]
:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
com.bhauman/figwheel-main {:mvn/version "0.1.9"}
nrepl/nrepl {:mvn/version "0.4.4"}}
:aliases {:dev {:extra-deps {com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
:main-opts ["-m figwheel.main --build dev --repl"]}}}
kjetil@nsdl37:~/Utvikling/fikenhjul$ cat dev.cljs.edn
^{:watch-dirs ["src/cljs"]
:open-file-command "emacsclient" }
{:main "fikenhjul.core"
:output-dir "target/public/js/out"
:asset-path "/js/out"
:output-to "target/public/js/fikenhjul.js"
:optimizations :none
:pretty-print true
:source-map true}
And I keep this in my .dir-locals.el to keep cider from asking too many questions:
((nil
(cider-default-cljs-repl . figwheel-main)
(cider-figwheel-main-default-options . ":dev")))
2018-09-07 15:40:09.119:INFO::nREPL-worker-0: Logging initialized @54319ms
Opening URL
ExceptionInfo Expected REPL Connections Evaporated! clojure.core/ex-info (core.clj:4739)
I use spacemacs, and I need to have
(setq cljr-inject-dependencies-at-jack-in nil)
(setq sayid-inject-dependencies-at-jack-in nil)
in my emacs config to make the latest cider worknow I’m seeing another issue. If I kill the repl buffer, and then try to jack in again, I get “Selecting deleted buffer”
anyway, it’s working great now, I also got it working with node, which was my target
guessing that missing cljr-inject-dependencies-at-jack-in
cost me the past two hours :man-shrugging:
great! Gotta run. Thank you for "Parens of the dead". It helped me get into Clojure 🙂