This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-01
Channels
- # admin-announcements (8)
- # arachne (11)
- # beginners (17)
- # boot (64)
- # cider (26)
- # cljs-dev (7)
- # cljsrn (1)
- # clojure (115)
- # clojure-belgium (2)
- # clojure-dusseldorf (15)
- # clojure-poland (15)
- # clojure-russia (62)
- # clojure-spec (86)
- # clojure-uk (208)
- # clojurescript (36)
- # cursive (4)
- # datavis (11)
- # datomic (44)
- # editors (9)
- # hoplon (21)
- # jobs (4)
- # mount (21)
- # off-topic (3)
- # om (113)
- # onyx (65)
- # parinfer (2)
- # perun (3)
- # proton (6)
- # re-frame (29)
- # reagent (20)
- # yada (3)
ClojureScript compiler has started to behave weird... I have an already established clj/cljs project and today after some work CLJS compiler started to emit JS code which results in:
Uncaught TypeError: Cannot read property 'call' of undefined
at app.js
line my_app.core.init_BANG_.call(null);
What is more weird here is that when I delete target
and checkout commit from few days ago, then compile it again it results in the same error.
Is it posible that CLJS compiler now emits different JS code than before?
Certainly, it is the same CLJS version, literally git checkout <commit_wich_undoubtedly_worked>
and recompile.care to share more details? what build tool(s) / system are you using? what settings are you passing to the google closure compiler?
Sorry people, it was my browser caching... CLJS compiler does its job well as usual. @akiroz: (it's not relevant now) lein + cljsbuild + figwheel
When cloning the cljsjs project over https, does anybody else get a timeout? I had to use git/ssh to clone it.
@dominicm: I think it’s Github that’s having troubles. Just had a timeout as well pushing to a repo
19:16 WESTWe're investigating reports of connection issues on GitHub.
@mattsfrey: I want to read the docs and maybe ask again. idk what I’m missing 🙂
anyone know how to disable a warning in just one place? Is there a comment-based annotation to disable it or something?
how is this even possible? (prn order-id (first (keys @orders)) (= order-id (first (keys @orders))) (get @orders order-id))
prints 1834 1834 true nil
— ???
@anmonteiro: only checked status which was up at the time. I wondered if maybe size was the problem. Makes sense though.
@si14: just because you have a key defined doesn't mean it's associated value isn't nill
@mattsfrey: yep, it can be the case, but we can check this with some "guard" value like here https://gist.github.com/si14/9cf2c9f75048124989cdfd9ef5272169
explanation here: https://gist.github.com/si14/9cf2c9f75048124989cdfd9ef5272169 apparently you can provide any function as a comparator in CLJS. If you screw up and provide e.g. keyword as a comparator, the map will be displayed properly, but all attempts to get an element from it will fail
Clojure handles this properly: ClassCastException clojure.lang.Keyword cannot be cast to java.util.Comparator clojure.core/sorted-map-by
Asked this question last week, but didn’t really get an answer: for those using writing queries or pulls in cljs land, which then get applied server-side to datomic, how are you addressing issues around authorization, permissions, scoping, etc?
I have a js function which returns an object with some values. Now I want to merge these values with an existing js object. This object can't be transformed with js->clj. How could I realise this?
@danielgrosse: (js/Object.assign destination source)
?
Ah thank you.
I’m interested in doing my side project in state-of-the-art CLJS, but I can’t figure out what the right way to go about setting up my dev environment is.
@mathpunk: until the next CLJS release you’ll have to require cljs.spec
it’s not yet up to date with Clojure 1.9 alpha 10 though