This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-02
Channels
- # announcements (6)
- # babashka (21)
- # beginners (38)
- # biff (2)
- # calva (14)
- # cider (5)
- # clerk (4)
- # cljdoc (2)
- # clojure (11)
- # clojure-europe (2)
- # clojure-norway (5)
- # clojure-spec (4)
- # core-typed (8)
- # data-science (5)
- # deps-new (15)
- # events (1)
- # fulcro (2)
- # graalvm (33)
- # holy-lambda (3)
- # hyperfiddle (19)
- # kaocha (1)
- # portal (5)
- # test-check (1)
- # xtdb (9)
- # yamlscript (2)
In case you find the musing fun, today I spent most of my hack time formatting Javadoc as something that will look clear within a CIDER widget. It's a fairly wicked problem, because javadoc mixes natural text with html, so you have to parse a not-quite-html string, while preserving newlines and table alignment. I got it solved with a mixture of Jsoup on the cider-nrepl side, and https://github.com/emacs-mirror/emacs/blob/3dac48d1b73794d2379e233f11736d0279b0733c/lisp/net/shr.el on the elisp side. You can look at how unusable it was before here: https://github.com/clojure-emacs/orchard/issues/179
Cheers guys, thanks for the encouragement :)
I have kept working on this. I replaced Jsoup with JDK's official javadoc parser.
So here you have progress (vs. screenshot in OP):
• unwrapped <@U018HQ11FTK>
s
• Nicely formatted Throws/Returns etc
If you want to help making this a reality, consider giving Enrich a spin! https://clojurians.slack.com/archives/C0617A8PQ/p1693598934327439