This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (9)
- # beginners (96)
- # boot (77)
- # cljs-dev (23)
- # cljsrn (18)
- # clojure (206)
- # clojure-austin (7)
- # clojure-conj (5)
- # clojure-japan (7)
- # clojure-poland (13)
- # clojure-russia (130)
- # clojure-taiwan (1)
- # clojurescript (125)
- # cursive (13)
- # data-science (2)
- # datascript (3)
- # datomic (2)
- # hoplon (24)
- # immutant (5)
- # jobs (4)
- # ldnclj (3)
- # ldnproclodo (2)
- # off-topic (2)
- # om (70)
- # onyx (12)
- # re-frame (6)
- # vim (2)
Anyone know how to using Static Image Resources in cljs? https://facebook.github.io/react-native/docs/images.html#content
Anyone got slow reloads with latest figwheel ? https://github.com/bhauman/lein-figwheel/issues/264
Anyone understand how piggieback works? Cemerick projects have incomprehensible documentation. I’m trying to use Emacs CIDER with a cljs nrepl and this is what I was told to use. I can’t help it but I feel like the docs just told me to go fuck myself.
I'm interested in the same. I took a look at the README and put it on the back burner because I didn't understand it.
I'll tell you how and then you can pull it apart and see which parts are the parts that you are missing
You can do it with vanilla figwheel also by specifying the
nrepl-port in the
project.clj options for figwheel
Anyways, I was wondering if anybody knew a good way to accumulate values from a bunch of core.async channels and then push the result out to another channel
how do I write a function that takes [s1 s2 s3] and returns a channel that will eventually yield [:a 😛 :c] ?
(i can assume that all channels will return just one value. Those are actually webservice calls)
right off the top of my head, you could probably use
alt!, add the value to a list, and recur until the number of values is equal to the number of chans you're
i tried async/merge and then async/reduce but that didn't work out. I suspect i was using them wrong
(defn get-all  (let [s1 (return-stuff :a) s2 (return-stuff :b) s3 (return-stuff :c) stuffs [s1 s2 s3]] (->> stuffs (async/merge) (async/reduce conj ))))
@mrg In the terminal, I run
lein figwheel. Then, in Emacs, I open
src/cljs/core.cljs and run
M-x cider-connect, then interactively select
7002. I get an error saying that I should install nrepl-refactor. The bottom of the screen says that it’s not connected.
[refactor-nrepl "2.0.0-SNAPSHOT"]; helps with refactoring and is a dependency of clj-refactor [cider/cider-nrepl "0.10.0-SNAPSHOT"] ; needed for clj-refactor
or if you'd rather try it out local first, put them in the project.clj of your try-out project
> ; CIDER 0.10.0snapshot (package: 20151025.1201) (Java 1.8.0_25, Clojure 1.7.0, nREPL 0.2.12)
> yes but you want to connect to it from emacs --- isn't that the whole point? Yes. But you said that I need to start the cljs-repl from the repl buffer. Why? It’s already running in my shell.
In my regular Clojure workflow, I start a
lein repl and connect to it from Emacs. Then I can compile the current file, and eval an expression with
C-c C-k and
that's close to what you need to do, except that the clojure repl needs to connect to the clojurescript repl
or, if i don’t want to bother wih lein repl, i can get emacs to start it for me with cider-jack-in
I actually don’t know how nrepl works, exactly, but piggieback wraps the cljs repl in an nrepl so that you can use nrepl functions and still connect to your cljs process
noticed that cljs stopped to recompile if files changed inside directory linked into source (by
I don’t understand why I need to start the cljs repl inside of emacs when it’s already running. It doesn’t actually start a new process, it just seems to tell emacs that it exists.
@honza: You can also use inf-clojure to interact with lein figwheel, but then you need to start lein figwheel from inferior-lisp
@honza: steps to reproduce: 1) install inf-clojure package. 2) C-u M-x inferior-lisp RET lein figwheel RET, 3) enable inf-clojure inside your .cljs buffer, and interact you can.
but if you can use nrepl, that's cool too. I'm not sure how that works if you have backend code to interact with too.