This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-16
Channels
- # aleph (1)
- # announcements (3)
- # babashka (24)
- # beginners (333)
- # clj-kondo (36)
- # cljs-dev (11)
- # clojure (75)
- # clojure-italy (3)
- # clojure-uk (15)
- # clojurescript (31)
- # core-logic (18)
- # cursive (2)
- # data-science (3)
- # datomic (1)
- # events (1)
- # fulcro (13)
- # graalvm (2)
- # jobs (1)
- # kaocha (2)
- # malli (1)
- # overtone (6)
- # re-frame (7)
- # reagent (17)
- # rewrite-clj (3)
- # shadow-cljs (10)
- # sql (9)
- # vim (1)
when running cljs in the browser, whenever I get instrumentation errors, they look like this: https://memset.se/10285/2b7a49f7a07ea1a07a2f3ed159b9728945da2fc1
Maybe catch the exception and beautify for example with expound? https://github.com/bhb/expound
Ah I see this answer is on old question
Maybe you already had an answer, but expound is great for making human readable messages 🙂
Here is some code for catching the exception and formatting with expound https://github.com/bhb/expound/issues/152
is there a way to get more descriptive errors? I can't even figure out what call caused this to happen
I don't think there's a way to modify it. But The "Uncaught" message has data
field in it that you can expand that should contain all that you need.
thanks for the tip. sadly, I can't find information about what called the function there
under data it looks like this, i.e. only calls to spec (and the function that crashes): https://memset.se/10286/025a2f93c1c98f642588b9f6904b25c868f2c8f9
further down there's a stack-property, but I can't look at it, because if I click it it says "too long to edit": https://memset.se/10287/f4c54d240885c0a7a079ff18782b99d339a4e979
Also, you should definitely use https://github.com/binaryage/cljs-devtools
i try to put!
the content of a col into a core.async
pipeline and want them to be received in order. what's the sane way to do this?
pipeline retains order
so it will keep the order that i called put! in? i thought i had a race condition due to this
hey everyone, having a little bit of trouble understanding this piece of code. what is the purpose of using and in this let statement, and why would we choose to do this?
Likely the intended usage of the function facet-row
is that either selected-facets
is nil, in which case it should not be called as a function, or it is a function, and it should be called. The and
expression prevents the function call if selected-facets
is nil. It could be written equivalently as (if selected-facets (selected-facets (first facet)))
awesome, thanks for clarifying!