This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-05
Channels
- # beginners (29)
- # boot (29)
- # cider (54)
- # cljs-dev (99)
- # cljsjs (31)
- # cljsrn (39)
- # clojars (32)
- # clojure (171)
- # clojure-austin (2)
- # clojure-berlin (5)
- # clojure-brasil (3)
- # clojure-greece (2)
- # clojure-italy (1)
- # clojure-korea (11)
- # clojure-spec (202)
- # clojure-uk (166)
- # clojurescript (130)
- # cursive (54)
- # datomic (99)
- # dirac (18)
- # figwheel (6)
- # hoplon (23)
- # lambdaisland (3)
- # leiningen (8)
- # luminus (14)
- # off-topic (11)
- # om (3)
- # om-next (24)
- # onyx (59)
- # planck (25)
- # protorepl (10)
- # re-frame (49)
- # reagent (14)
- # ring-swagger (2)
- # rum (46)
- # schema (1)
- # slack-help (6)
- # specter (7)
- # testing (7)
- # untangled (115)
- # yada (1)
Hey 🙂
CLJS DevTools Error me.cljs$core$IMapEntry$_val$arity$1 is not a function
I’m getting an exception like this one from the reporting stuffIt’s almost certainly caused by my wonky custom type though 😄
@martinklepsch I would need to see full stack trace
cljs-devtools uses clojurescript printing machinery, so it can easily raise exceptions, for example when printing something with buggy IPrintWithWriter methods
but it should not break you much, because the exception guard should catch exceptions raised during printing: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/formatters/core.cljs#L66
(js/console.log 'vals (type (vals {:a 1 :b 2})))
(js/console.log 'check-in-vals (type (vals (org.martinklepsch.cc-set/set-by :id {:id 1} {:id 2}))))
(js/console.log 'vals (vals {:a 1 :b 2}))
(js/console.log 'check-in-vals (vals (org.martinklepsch.cc-set/set-by :id {:id 1} {:id 2})))
So both of these return ValSeqs but the last log statement causes the above exceptionwhat happens if you do (print (vals (org.martinklepsch.cc-set/set-by :id {:id 1} {:id 2})))
?
same issue
print should not have anything to do with cljs-devtools, can you confirm from the stack trace?
this is my IPrintWriter impl:
IPrintWithWriter
(-pr-writer [coll writer _]
(let [items (string/join " " (map pr-str (seq coll)))]
(-write writer (str "#CustomComparatorSet{" items “}"))))
yeah, no devtools in stacktrace
I’ll investigate. Sorry for the confusion 🙂