Fork me on GitHub
#pathom
<
2019-04-13
>
mroerni17:04:20

Is there any way this visualization is coming to fulcro inspect?

wilkerlucio20:04:23

it is there already :)

mroerni18:04:14

Oh.. It could be, that I never restarted Chrome... Handy, that my laptop crashed an hour ago.

wilkerlucio18:04:39

yeah, also Chrome doesn't update the extensions immediately, so it might take days until it does the update, but you can manually ask for it to get the latest version

mroerni18:04:32

Hm. But now I get an exception, when I try to load the index. 😞

Mon Apr 15 20:12:10 CEST 2019 [worker-2] ERROR - POST /api
java.lang.RuntimeException: java.lang.Exception: Not supported: class com.wsscode.pathom.trace$fn__15355
	at com.cognitect.transit.impl.WriterFactory$1.write(WriterFactory.java:65)
	at cognitect.transit$write.invokeStatic(transit.clj:167)
	at cognitect.transit$write.invoke(transit.clj:164)
...

wilkerlucio18:04:22

the issue is with Transit in this case, because there is some things in the index that transit can't encode by default, in this case a fn, there are 2 things you can do to go around: 1. be more specific about the output index to avoid sending fns, since you write the resolver for the index explorer you can control it there 2. configure the default transit handler so it doesn't break on not supported things I like option 2 better because it goes around all encoding issues that might happen

mitchelkuijpers19:04:16

Awesome tip thnx! 👍