Fork me on GitHub
#clojurescript
<
2016-09-24
>
moxaj14:09:13

how can I require two different namespaces depending on the compilation target (ie. one for node, one for the browser)?

romanglass16:09:10

Hi all, I don't know if this channel is open to beginner questions, or just for ClojureScript developers. Anyway excuse my beginner's ignorance, I can't access the response of ajax.cores's GET. In the debugger it's a PersistentArrayMap. But the output is always just "null". Any hints?

hlolli18:09:21

@romanglass: what does your js console say. Sometimes you run into COARS security block, depending on the website. Best to do all GET requests in json. All depends what you seek to accomplish.

hlolli18:09:38

@moxaj: that differs between boot and leiningen. This is easy to do with #C053K90BR

stbgz19:09:33

hey all has anyone run into problems doing recurs inside doseq inside go-loops

stbgz19:09:41

I get the following error: No implementation of method: :emit-instruction of protocol: #'cljs.core.async.impl.ioc-macros/IEmittableInstruction found for class: cljs.core.async.impl.ioc_macros.Jmp

stbgz19:09:08

(go-loop [next dep
           status true]
                 (doseq [n (range 4)]
                   (recur n true))))
Seems to be the cause of the issue

jrheard19:09:21

is there a way to colorize the output of clojurescript tests?

jrheard19:09:30

iā€™m using doo and cljs.test

romanglass19:09:33

@hlolli Thank you for your response. My case is this one: https://gist.github.com/rglass/942ba50ca68b0567d2ab73754024ce70 COARS should not be a problem. Python works just fine. But I would like to do it in Clojure. Can you spot the mistake? Or should I use another library (maybe directly goog.net.XhrIo.

futuro20:09:25

whoops, wrong channel

jrheard20:09:52

(i often find myself doing the same thing, @futuro - you can delete wayward slack messages by hovering over them and using the ā€œā€¦ā€ menu in the top right of the message)