This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-18
Channels
- # aleph (12)
- # beginners (31)
- # boot (67)
- # cider (17)
- # cljs-dev (14)
- # clojure (111)
- # clojure-dev (1)
- # clojure-france (4)
- # clojure-gamedev (1)
- # clojure-italy (49)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (18)
- # clojure-spec (15)
- # clojure-uk (68)
- # clojurescript (33)
- # core-typed (1)
- # datomic (15)
- # emacs (3)
- # graphql (4)
- # hoplon (36)
- # leiningen (3)
- # lumo (44)
- # mount (2)
- # off-topic (46)
- # om (21)
- # onyx (47)
- # parinfer (22)
- # pedestal (21)
- # protorepl (4)
- # quil (4)
- # re-frame (15)
- # reagent (4)
- # ring-swagger (9)
- # rum (27)
- # spacemacs (11)
- # vim (7)
- # yada (8)
I’m trying to require doo for a project i’m working in… all the examples I see use the old :refer-macros syntax:
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
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?
ah, looks like those arrays are also iterable, so i can use the iterator converter
Does doo still work? I keep getting a “ReferenceError: Can’t find variable: doo” and can’t find any help online yet
@bellp I use it. I have a template for the fulcro project that might be of some help: https://github.com/fulcrologic/fulcro-template
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?
Has anyone interacted with the Youtube Data API v3 from Clojurescript? If so how do you recommend I do so as well?
@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
@kasuko here you can find some code examples: https://gist.github.com/wilkerlucio/0d1a453ed77ab2feb1dfd2c7aef1c90d#file-youtube-clj
@wilkerlucio Excellent, so the requests are easy enough to form. Awesome I will just interact with it manually. Thanks!
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
Lein seems to have :global-vars
for clj, but don’t think that’s suitable for this in cljs
@mikerod No, *warn-on-infer*
is meant to be file-scoped. See https://clojurescript.org/guides/externs
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
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...
@samcf actually not. That's the problem. It is made of some simple pages with some dynamic content. Nothing more.
@tiagoantao Do you see any errors when you (require 'cljs.js)
in the browser REPL?
I sorted it out. I suspect figwheel did not recompile everything when I added the reader. Thanks
I sorted it out. I suspect figwheel did not recompile everything when I added the reader. Thanks
anyone know where this issue ended up? https://dev.clojure.org/jira/browse/CLJS-1399
looks like it was declined because the root cause was in tools.reader but there are no links
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.
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.