This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-18
Channels
- # announcements (9)
- # atom-editor (29)
- # aws (17)
- # babashka (72)
- # beginners (83)
- # braveandtrue (3)
- # calva (7)
- # cider (16)
- # clj-kondo (15)
- # cljs-dev (146)
- # cljsjs (1)
- # cljsrn (8)
- # clojars (1)
- # clojure (96)
- # clojure-dev (19)
- # clojure-europe (53)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (235)
- # clojuredesign-podcast (5)
- # clojurescript (81)
- # conjure (73)
- # cursive (7)
- # data-science (1)
- # datomic (5)
- # defnpodcast (8)
- # emacs (3)
- # figwheel-main (34)
- # fulcro (83)
- # graalvm (10)
- # graphql (6)
- # helix (49)
- # jackdaw (3)
- # jobs (1)
- # joker (1)
- # kaocha (1)
- # mid-cities-meetup (10)
- # off-topic (17)
- # pathom (16)
- # re-frame (11)
- # reagent (18)
- # reitit (18)
- # remote-jobs (4)
- # shadow-cljs (63)
- # spacemacs (18)
- # specter (20)
- # sql (17)
- # uncomplicate (1)
- # vim (28)
- # xtdb (32)
is there any function to extract the eql from an arbitrary piece of data, eg given {:x 1 :y 2 :z [{:t 3 :u 4}]
returns [:x :y {:z [:t :u]}]
?
pc/data->shape
must be it. Thank you!
I am connecting my pathom parser to pathom viz and I'm getting transit encoding errors for unsupported types, in this case #tick/date. Is there a place to add transit handlers for your own types?
#error {
:cause "Not supported: class java.time.LocalDate"
:via
[{:type java.lang.RuntimeException
:message "java.lang.Exception: Not supported: class java.time.LocalDate"
:at [com.cognitect.transit.impl.WriterFactory$1 write "WriterFactory.java" 65]}
{:type java.lang.Exception
:message "Not supported: class java.time.LocalDate"
:at [com.cognitect.transit.impl.AbstractEmitter marshal "AbstractEmitter.java" 194]}]
:trace
[[com.cognitect.transit.impl.AbstractEmitter marshal "AbstractEmitter.java" 194]
[com.cognitect.transit.impl.JsonEmitter emitMap "JsonEmitter.java" 171]
[com.cognitect.transit.impl.AbstractEmitter emitMap "AbstractEmitter.java" 85]
[com.cognitect.transit.impl.AbstractEmitter marshal "AbstractEmitter.java" 184]
[com.cognitect.transit.impl.AbstractEmitter emitArray "AbstractEmitter.java" 97]
[com.cognitect.transit.impl.AbstractEmitter marshal "AbstractEmitter.java" 182]
[com.cognitect.transit.impl.JsonEmitter emitMap "JsonEmitter.java" 171]
[com.cognitect.transit.impl.AbstractEmitter emitMap "AbstractEmitter.java" 85]
[com.cognitect.transit.impl.AbstractEmitter marshal "AbstractEmitter.java" 184]
[com.cognitect.transit.impl.JsonEmitter emitMap "JsonEmitter.java" 171]
[com.cognitect.transit.impl.AbstractEmitter emitMap "AbstractEmitter.java" 85]
[com.cognitect.transit.impl.AbstractEmitter marshal "AbstractEmitter.java" 184]
[com.cognitect.transit.impl.AbstractEmitter marshalTop "AbstractEmitter.java" 211]
[com.cognitect.transit.impl.JsonEmitter emit "JsonEmitter.java" 41]
[com.cognitect.transit.impl.WriterFactory$1 write "WriterFactory.java" 62]
[cognitect.transit$write invokeStatic "transit.clj" 167]
[cognitect.transit$write invoke "transit.clj" 164]
[com.wsscode.transit$write invokeStatic "transit.cljc" 37]
[com.wsscode.transit$write invoke "transit.cljc" 33]
[_connector.impl.http_clj$send_message_BANG_ invokeStatic "http_clj.clj" 18]
[_connector.impl.http_clj$send_message_BANG_ invoke "http_clj.clj" 15]
[_connector.impl.http_clj$connect_parser$fn__56379 invoke "http_clj.clj" 75]
[_connector.core$connect_parser$connected_parser__56389$fn__56445$state_machine__7701__auto____56470$fn__56473 invoke "core.cljc" 57]
[_connector.core$connect_parser$connected_parser__56389$fn__56445$state_machine__7701__auto____56470 invoke "core.cljc" 56]
[clojure.core.async.impl.ioc_macros$run_state_machine invokeStatic "ioc_macros.clj" 978]
[clojure.core.async.impl.ioc_macros$run_state_machine invoke "ioc_macros.clj" 977]
[clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invokeStatic "ioc_macros.clj" 982]
[clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invoke "ioc_macros.clj" 980]
[clojure.core.async.impl.ioc_macros$take_BANG_$fn__7719 invoke "ioc_macros.clj" 991]
[clojure.core.async.impl.channels.ManyToManyChannel$fn__2538$fn__2539 invoke "channels.clj" 95]
[clojure.lang.AFn run "AFn.java" 22]
[java.util.concurrent.ThreadPoolExecutor runWorker "ThreadPoolExecutor.java" 1128]
[java.util.concurrent.ThreadPoolExecutor$Worker run "ThreadPoolExecutor.java" 628]
[clojure.core.async.impl.concurrent$counted_thread_factory$reify__2407$fn__2408 invoke "concurrent.clj" 29]
[clojure.lang.AFn run "AFn.java" 22]
[java.lang.Thread run "Thread.java" 834]]}
can you check with transit version are you using? they had a bug that was recently fixed related to fallback encodings, I believe if you use latest transit it may fix, but if not please let me know and lets debug it
sure thing: using clj -Stree:
com.wsscode/pathom-viz-connector 1.0.2
com.wsscode/async 1.0.4
com.cognitect/transit-clj 1.0.324
com.cognitect/transit-java 1.0.343
com.cognitect/transit-cljs 0.8.264
com.cognitect/transit-js 0.8.861
I have the following in deps.edn:
com.fulcrologic/fulcro {:mvn/version "3.2.5"
:exclusions [com.cognitect/transit-cljs
com.cognitect/transit-js]}
com.cognitect/transit-cljs {:mvn/version "0.8.264"}
com.cognitect/transit-js {:mvn/version "0.8.861"}
the cljs and js versions were older pulled in from fulcro, I updated those but the issue is still happening (i assume it's in clojure anyway not cljs)
I'm still seeing the same error. I can try running the app locally in dev mode to see if i can find where it's falling over
sorry the delay, got sidetracked on this, ok, I decided to force the fix to don't rely on transit version, I was able to run a parser returning a LocalDate, can you try version 1.0.3
of the connector and see if that works?
pc/data->shape
Hello, I apologize in advance for the question for the zone "i dont know what i dont know" i am very interested in pathom but don't know how to handle it. it's just too complex and i lack foundational knowledge in order to use it. I couldn't get EQL but after looking at GraphQL and playing around with it little bit with my brother when he was preparing for interview i finally understood EQL. I even get pathom bit more but still have issues even with simple example from docs. Where would i need to look to build up my foundation and better understand terminology and thinking about this topic? I feel like with pathom i could create integration between api and this seems very very powerful
I'd say one of the best stories for learning is focusing on fulcro, which makes using pathom easier. There's tons of documentation and videos. https://www.youtube.com/playlist?list=PLVi9lDx-4C_T7jkihlQflyqGqU4xVtsfi