This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-03
Channels
- # announcements (2)
- # babashka (66)
- # beginners (225)
- # braveandtrue (1)
- # calva (14)
- # circleci (1)
- # clj-kondo (36)
- # cljsrn (3)
- # clojure (423)
- # clojure-finland (7)
- # clojure-nl (1)
- # clojure-spec (14)
- # clojure-survey (41)
- # clojure-sweden (2)
- # clojure-uk (13)
- # clojurescript (59)
- # community-development (10)
- # cursive (2)
- # datascript (14)
- # datomic (63)
- # events (3)
- # expound (8)
- # figwheel-main (6)
- # kaocha (8)
- # luminus (6)
- # malli (1)
- # nrepl (2)
- # off-topic (51)
- # other-lisps (3)
- # reagent (16)
- # shadow-cljs (44)
- # spacemacs (7)
- # sql (22)
- # vrac (1)
I guess in this case (and probably others) then the assert message could/should include as much information as possible from the arguments to r/cursor
- in this case, path
should be plain data, which is easier to locate than resolving a possibly nil var
Any idea why I would be getting this in my REPL?
ezmonic.views=> (r/as-element [:strong "world"])
== JS EXCEPTION ==============================
ENCODING FAILED, check host console
==============================================
I can't figure out what "host console" it refers to, but I don't see any output in the watchers or connected browser's devtools.
Well, it should end up in there:
(catch :default e
(js/console.log "encoding of result failed" e ret)
(assoc result :error "ENCODING FAILED, check host console"))
Or maybe something is overriding js/console.log
with something else. Can you use console.log()
in the devtools, does it output its arguments right there?
Another thing...
[:> View
(for [[number mnemonic] {"123" 123 "456" 456}]
[:> Text number])]
This blows up during render with
> TypeError: can't convert symbol to string
The following works.
[:> View
(for [[number mnemonic] {"123" 123 "456" 456}]
[(r/adapt-react-class Text) number])]
Any idea why? I feel like knowing the answer would help my understanding of what's going on behind the scenes.That's what I was testing when I found the "ENCODING FAILED" error. I can evaluate the second form in my REPL but the first fails with the encoding failed message.
Huh... Narrowing in on something.
ezmonic.views=> (require '["react-native" :as rn])
nil
ezmonic.views=> rn/Text
== JS EXCEPTION ==============================
ENCODING FAILED, check host console
==============================================
ezmonic.views=> rn/Button
#object[Button]