This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-03
Channels
- # announcements (21)
- # aws (6)
- # babashka (28)
- # beginners (39)
- # biff (1)
- # calva (23)
- # cider (5)
- # clj-kondo (108)
- # clojure (11)
- # clojure-europe (17)
- # clojure-nl (2)
- # clojure-nlp (10)
- # clojure-uk (8)
- # clojurescript (29)
- # community-development (4)
- # conjure (20)
- # css (3)
- # datalevin (9)
- # datomic (3)
- # events (2)
- # figwheel-main (11)
- # fulcro (36)
- # honeysql (7)
- # humbleui (5)
- # interceptors (4)
- # introduce-yourself (3)
- # jobs (1)
- # lsp (51)
- # malli (1)
- # meander (71)
- # minecraft (8)
- # other-languages (18)
- # pathom (15)
- # polylith (25)
- # portal (10)
- # re-frame (5)
- # reitit (15)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (11)
- # tools-deps (27)
Hi, I'm getting myself familiar with pathom3. I have a couple of resolvers registered that derive such data:
:project/path -> :project/analysis -> :analysis/var-definitions -> :project/vars [:var/ns :var/name :var/expr]
:project/path -> :project/analysis -> :analysis/var-usages -> :project/vars [:var/ns :var/name {:var/uses-var [:var/ns :var/name]}]
I can't figure out a couple of things:
1. How to have :project/vars
normalized by :var/ns
+ :var/name
?
2. How to be able to perform such queries:
[{:project/vars [{:var/uses-var [:var/expr]}]}]
hello andrew, not clear to me what you intending to do here yet, can you make a running example to point where the misunderstanding may be?
Hello
I'm trying to make the Index Explorer
tab at Fulcro Inspector
work with pathom3
I tried to make a simple resolver that returns the index:
(pco/defresolver index-explorer [env _]
{::pco/input [:com.wsscode.pathom.viz.index-explorer/id]
::pco/output [:com.wsscode.pathom.viz.index-explorer/index]}
{:com.wsscode.pathom.viz.index-explorer/index (select-keys env
[:com.wsscode.pathom3.connect.indexes/index-resolvers
:com.wsscode.pathom3.connect.indexes/index-attributes
:com.wsscode.pathom3.connect.indexes/index-io
:com.wsscode.pathom3.connect.indexes/index-oir
:com.wsscode.pathom3.connect.indexes/index-mutations])})
It did not work. Probably because the inspector expect that the index
contains a pathom2-style index. There is some buitin function to do this transformationwThere's an old thread in #fulcro about it: https://clojurians.slack.com/archives/C68M60S4F/p1645018882724239 TL;DR: Might have something todo with RAD internals, but no one figured it out yet
Fulcro Inspect unfortunally uses some old code that doesn't support Pathom 3 yet
Im glad to help anyone that would like to work on this, because I can't work on it at the moment, but its something I would like to do (or help someone else to do it)
for start we need to migrate Fulcro Inspect to use Fulcro 3 (because the new versions of Pathom Viz are already in Fulcro 3)
Well, I forked fulcro-inspect a while ago because I wanted to build a dark-mode and add some virtualization for the dom, but imho it should first be converted to fulcro 3. So in the end I didn't get very far, but I could try again. Will take some weeks though, I'm very busy this month
lol @U012ADU90SW I also wanted a dark theme! I had some time last winter and ported the inspector to f3 and also added a dark theme. I can make a pass this week to clean up what I have and push it out. I've been using it to develop my own apps and seems to work fine.
@U051V5LLP can you share this with me? would love to merge it back to Fulcro Inspect repo, is there any notes/considerations you think we need to merge it back?
hey @U066U8JQJ sure! - I'll just post the fork here after I clean it up
@U051V5LLP lol no way 😂 but that's great! I'm going to have a look at your fork then once you have it ready
greetings gentlemen, here is what I have: https://github.com/dvingo/fulcro-inspect/tree/dvingo/fulcro3-port I did a pass to remove any silly comments (I hope all of them), and there are a few log statements that you may want to comment out. There's likely a few bugs remaining, I haven't been working on it lately so the memories aren't fresh. Check out the contributing.md for more dev notes, I have run through the instructions there so it should work, but feel free to fork it and have fun!
awesome! looking forward to check it out