cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
Jakub Holý 2020-12-03T20:49:32.155800Z

Hi @martinklepsch! I have learned that #fulcro has experienced quite a few issues with Cljdoc such as 👇 I have browsed through the GH issues but do not see anything that would seem relevant, weirdly. Is for example this one a known issue? And are there some know limitations to cljs support? Thanks! (I love both Cljdoc and Fulcro so it would be great if they could work together.)

Jakub Holý 2020-12-04T08:00:51.165700Z

I have opened https://github.com/cljdoc/cljdoc/issues/432

lread 2020-12-04T13:02:08.169100Z

Interesting! If you folks don’t figure this out I’ll take a peek, but it might not be for a bit because I am trying to focus on rewrite-cljc at the moment.

martinklepsch 2020-12-03T21:26:04.157800Z

Thanks for checking in and yeah, definitely happy to help with this as much as I can. Could you point me to the source file for this? One issue I immediately think of is that if the file is a cljc file #js is basically invalid syntax

martinklepsch 2020-12-03T21:28:36.158800Z

We could could probably add a data reader to support #js

martinklepsch 2020-12-03T21:31:40.160Z

Even if some files are invalid we don’t necessarily care about guaranteeing correctness or something like that

Jakub Holý 2020-12-03T21:41:32.160200Z

I think that was the point - yes, #js is invalid in clj, therefore there is added a custom reader to make it acceptable also in clj. The file and line: https://github.com/fulcrologic/fulcro/blob/4da887d934d8f9c8a225f3b972a375d634a18138/src/main/com/fulcrologic/fulcro/components.cljc#L845

martinklepsch 2020-12-03T22:34:54.161600Z

I’d be open to do something like that for cljdoc 👍

martinklepsch 2020-12-03T22:37:01.163300Z

Don’t have a pointer where that would be done from the top of my head but maybe @lee has a pointer :)

martinklepsch 2020-12-03T22:39:04.164900Z

But maybe there’s also a way to properly pick up data_readers from analysed projects