This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-22
Channels
- # announcements (11)
- # architecture (7)
- # babashka (26)
- # beginners (314)
- # calva (20)
- # chlorine-clover (1)
- # cider (5)
- # circleci (27)
- # clara (6)
- # clj-kondo (41)
- # cljsrn (6)
- # clojure (120)
- # clojure-berlin (2)
- # clojure-czech (2)
- # clojure-dev (4)
- # clojure-europe (45)
- # clojure-france (4)
- # clojure-germany (1)
- # clojure-nl (5)
- # clojure-uk (20)
- # clojuredesign-podcast (8)
- # clojurescript (6)
- # conjure (42)
- # datascript (5)
- # datomic (21)
- # deps-new (28)
- # duct (1)
- # fulcro (36)
- # graalvm (10)
- # graphql (24)
- # jackdaw (19)
- # jobs (2)
- # jobs-discuss (46)
- # kaocha (6)
- # malli (26)
- # off-topic (21)
- # parinfer (5)
- # re-frame (10)
- # sci (19)
- # shadow-cljs (95)
- # tools-deps (24)
- # vim (3)
I did some more work on Inspect. There is a new snapshot of Fulcro 3.4.0 on clojars (or use git SHA 53f9d6828b972f2f832897b19a9ffe31f3b39b63) and new Electron binaries of the Inspect app at https://github.com/fulcrologic/fulcro-inspect/releases/tag/3.0.0-1. I fixed a few minor issues (db view was not pre-populating), and resurrected the old UI Element picker tab. The latter requires you add an additional preload, and only works for web-based Fulcro apps (since it has to use the DOM of your app to give feedback).
I saw that the Fulcro book mentions Workspaces, I was wondering if that's a still recommended tool. From looking at it I got the impression that it might not really be maintained anymore (card discovery doesn't work with recent versions of shadow-cljs for instance - and, while there is a fork that fixes that, it is based on the f3 branch, and that seems to break cljs.test cards)
I still use workspaces in f3 via the awkay repo, but I have no time to maintain it. Feel free to fix things and send PRs.
Speaking of Fulcro Inspect, when running mutations in the Query tab, they always return
{server/inc-counter
{:com.wsscode.pathom.core/reader-error
"Mutation not found - {:mutation server/inc-counter}"}}
even though the network tab reports that a successful response (`{server/inc-counter {:server/counter 8}}`) was returned.I like to add a bit here, the mutations do work in the query tab (the operation goes though and runs), but there is a bug in the reading end, so you don't get to see the result, altough the mutation ran
Hi! Is it possible to know the instance that fired a load or a mutation in the network layer (in the request middleware)?
I don’t think so currently, you’d have to wire it up (in F3 at least). You could do so, but you’d have to adopt a custom transaction processor (i.e. copy tx_processing and modify the necessary functions, then install that in the app), you’d also have to change the remote to pass it through. At least I think….it might be possible to pass it all the way t hrough with the tx options
Thank you for the answer! I know it was a weird question to have the instance in the network layer, but we are in a situation where I can’t think of another way to solve
It’s meant for you to decide. I personally use CSS from the community (because I hate building that crap). fulcro-css is useful when writing things like libraries of components that might need to provide css, but you don’t want to conflict with what is already on the page (name wise at least) …whatever…use it if you find it useful 🙂
Following the instructions on the fulcro rad readme https://github.com/fulcrologic/fulcro-rad-demo/tree/datomic-cloud i was able to successful run shadow-cljs watch main
which started an http server on port 8081. However, i expected it to be a more user facing demo page. Instead it seems to be abou testing. What i'm i missing?
You should read the readme. You get shadow to build, then you open another terminal and run a clojure repl where you can '(require 'development)' and then '(development/start)'
where in the readme does it say that?
i just did a text search for 3000 and i didnt see it
shadow-cljs - HTTP server available at http://localhost:8081 shadow-cljs - server version: 2.8.110 running at http://localhost:9630 shadow-cljs - nREPL server started on port 9000 shadow-cljs - watching build :main
nothing on port 3000 both in the readme and on my actual localhost
ah ok. development/go was supposed to start the demo app. It didnt' for me. Execution error (NoSuchFileException) at sun.nio.fs.UnixException/translateToIOException (UnixException.java:92). /grow/data/fulcro-rad-demo/example/db.log user=> (clojure.core/require 'development) nil user=> (development/go) I 20-09-23 02:56:18 _rad.database-adapters.datomic-cloud:-238 - Starting database :main Execution error (NoSuchFileException) at sun.nio.fs.UnixException/translateToIOException (UnixException.java:92). /grow/data/fulcro-rad-demo/example/db.log I wasnt sure that error was rel event
something is looking for a file in the directory that i pointed the datomic dev-local tool at.
For shadow it is easier not to worry about the watch. Shadow comes with its own UI so you can see all the builds. npx shadow-cljs server
.
See this UI at http://localhost:9630/
9630 shows the a "passed tests". page which isnt what i was expecting.
Try without Datomic-cloud, with just in-memory Datomic. Worked for me a while back
@U0522TWDA I was following the instructions for the datmoic cloud branch which uses the dev-tools. Which I believe is in memory. I'm currently guessing that I didn't set up the dev tools correctly. Maybe I need to point to a specific directory where datomic cloud has done some thing
Sorry for bad explanation, in memory wasn't the point. Non-cloud was. Try the master branch.
I'll try the master branch. Good call
As a reference
running the same commands on the master branch gets me the expected landing page on port 3000. Likely the instructions on the datomic-cloud branch are terse in such a way as the expect you to have done something i didn't do. If i discover its intresting ill submit a PR.
No I wouldn't expect 'passed tests' either. There is even another repo for Fulcro RAD that has a different set of instructions: https://github.com/fulcrologic/fulcro-rad-kvstore.