Fork me on GitHub
#clojurescript
<
2017-07-18
>
bellp01:07:38

I’m trying to require doo for a project i’m working in… all the examples I see use the old :refer-macros syntax:

bellp01:07:43

But cljs now uses newer syntax which I’m trying to use.. I’ve looked at examples and I’m not sure if I’m doing it right because I can’t get my tests to run… I’m using

bspaulding03:07:50

so it looks like js->clj doesn’t convert UintXArray types? does anyone know if there’s rationale for this? or a best practice for dealing with these types in cljs?

bspaulding03:07:30

ah, looks like those arrays are also iterable, so i can use the iterator converter

bellp03:07:45

Does doo still work? I keep getting a “ReferenceError: Can’t find variable: doo” and can’t find any help online yet

tony.kay06:07:46

@bellp I use it. I have a template for the fulcro project that might be of some help: https://github.com/fulcrologic/fulcro-template

kors09:07:43

Hi, I'm building a little vertical site with Enlive. I love it. Owner ask me some animation so... well I'm relative new to Cljs. What is best library for animating elements?

kasuko16:07:32

Has anyone interacted with the Youtube Data API v3 from Clojurescript? If so how do you recommend I do so as well?

wilkerlucio16:07:05

@kasuko I did, it's quite easy, you just need a way to handle the HTTP requests, if you are not hold by old browsers I suggest just use the JS fetch api

kasuko16:07:52

@wilkerlucio Excellent, so the requests are easy enough to form. Awesome I will just interact with it manually. Thanks!

tiagoantao16:07:43

Hi, has anyone here used cljs.js/eval-script? For some reason I am getting a eval_str is not defined. error. I suspect I am not including something that I should on my project.clj but I am lost as what that might be

mikerod17:07:44

Is there some way to set *warn-on-infer* via a cljs-build build map?

mikerod17:07:56

Or do you just have to put that code somewhere in a namespace

mikerod17:07:16

Lein seems to have :global-vars for clj, but don’t think that’s suitable for this in cljs

mikerod17:07:48

In which I mean (set! *warn-on-infer* true)

mfikes18:07:16

@mikerod No, *warn-on-infer* is meant to be file-scoped. See https://clojurescript.org/guides/externs

mikerod18:07:52

Oh, I read that, but didn’t pick up on the “file local” part. I just thought it was saying the flag wouldn’t be globally enabled - woops

mikerod18:07:57

thanks for pointing that out

mikerod18:07:06

I can see why that’d make sense

tiagoantao19:07:13

I managed to have cljs.js/eval-str working on the lein figwheel REPL (rhino based), but still no luck on the browser, as I still get eval_str is not defined, confused...

kors20:07:30

nobody cares about me 😭

samcf20:07:19

@kors are you using React? React has some utilities for animation

kors20:07:36

@samcf actually not. That's the problem. It is made of some simple pages with some dynamic content. Nothing more.

mfikes21:07:37

@tiagoantao Do you see any errors when you (require 'cljs.js) in the browser REPL?

tiagoantao21:07:28

I sorted it out. I suspect figwheel did not recompile everything when I added the reader. Thanks

tiagoantao21:07:28

I sorted it out. I suspect figwheel did not recompile everything when I added the reader. Thanks

devth23:07:56

anyone know where this issue ended up? https://dev.clojure.org/jira/browse/CLJS-1399

devth23:07:08

looks like it was declined because the root cause was in tools.reader but there are no links

devth23:07:20

i (might) be experiencing the bug currently

sound2gd23:07:42

anything one knows why? I have figwheel running on 7002 and cider-connect to it.but it seems that cider consider it as a clj repl not cljs repl.

pradyumna04:07:28

when cider-connects, it gets you a CLJ repl only. this is not CLJS. to get the cljs repl you need the browser connect to it. If you are using the default figwheel template, then type (cljs-repl) in this CLJ repl. This will start the cljs repl and it will wait till a browser connection. Then open the browser, it will automatically connect to it, and then you will get the promp cljs.user=> in this CLJ repl and the CIDER starts treating as a CLJS repl. Then you can continue with your usual code evaluation directly from the buffer.

pradyumna04:07:42

Typically I start a plain lein repl from an external shell. Then cider-connect to it. And in the emacs CLJ repl, use (fig-start) to start the figwheel server. then (cljs-repl). All the while the external repl is kept running in the background. do not kill it.