This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-15
Channels
- # ai (1)
- # announcements (1)
- # aws (4)
- # babashka (9)
- # biff (1)
- # calva (1)
- # clerk (15)
- # clj-kondo (24)
- # clojure (23)
- # clojure-austin (7)
- # clojure-europe (19)
- # clojure-nl (2)
- # clojure-norway (33)
- # clojurescript (43)
- # conjure (4)
- # data-science (2)
- # datahike (5)
- # datomic (14)
- # defnpodcast (27)
- # domino-clj (1)
- # events (1)
- # honeysql (13)
- # hyperfiddle (44)
- # introduce-yourself (1)
- # java (4)
- # jobs (1)
- # jobs-discuss (11)
- # lsp (3)
- # malli (14)
- # missionary (5)
- # off-topic (44)
- # pedestal (2)
- # podcasts-discuss (1)
- # releases (8)
- # remote-jobs (2)
- # shadow-cljs (3)
Hi, this is the datalevin version for the electric starter app. It is similar to the datascript version, but datalevin has durable storage. https://github.com/amos814/electric-starter-datalevin
very nice. The https://github.com/juji-io/datalevin#entities-with-staged-transactions-datalog-store feature is interesting, related to what I posted a couple of days ago: https://clojurians.slack.com/archives/C7Q9GSHFV/p1686248211536109
it says > This Entity API is new and can be improved. I would be curious too hear if anyone has tried using this
Hi! I have a Remote error - 1011 Server process crash
but no logs on fly and localy (when I run the prod jar). What is the way to display the error?
ok, that's not good 🙂 It's hard to say where the issue is in the stack (electric, shadow, cljs, gcc)
hyperfiddle.electric-jetty-adapter has this handler
(defn failure [^WebSocketAdapter ws ^Throwable e]
(if (instance? Cancelled e)
(log/debug "Websocket handler completed gracefully.")
(do (log/error e "Websocket handler failure")
;; jetty/close! is missing arity 3 for jetty 9. Call close directly to get arity 3.
(when-some [s (.getSession ws)] (.close s 1011 "Server process crash")))))
which logs the exception. Are you using this adapter? What version of jetty are you using?the starter app uses it for both jetty setups, e.g. https://github.com/hyperfiddle/electric-starter-app/blob/1fba9a24f46f9a2c537686555861f32c4bdb6df5/src/electric_server_java11_jetty10.clj#L94
the starter app has this https://github.com/hyperfiddle/electric-starter-app/blob/1fba9a24f46f9a2c537686555861f32c4bdb6df5/src/logback.xml#L15
I'd put a log/info
call in an app ns you use and see if the log appears in the server logs
in dev first. If you have a logback.xml setup and ch.qos.logback/logback-classic
in your deps.edn you need to check if logback.xml is on the classpath for the prod build as well
there's also https://github.com/fzakaria/slf4j-timbre if you want to bridge slf4j logs to timbre
@U051SPP9Z also reported problems with logging, maybe one or all of the starter apps are misconfigured
Just finished tying up the loose ends on this fyi! https://clojurians.slack.com/archives/C8NUSGWG6/p1686847699354179
did the recent release break keyword classes? E.g.
(dom/div (dom/props {:class [:flex]}))
just upgraded and they don’t seem to work anymoreIt's published: https://github.com/hyperfiddle/electric/blob/master/CHANGELOG.md We will announce the release after we double check the demos more carefully, because there were other changes
Question: is there a ui/radio-button
? I dunno where to find the ui lib source code x)
actually, even better might be to state my use-case: customers can choose a "tier" of membership at sign-up. want a way to select between the several.
i don’t think we have radio yet, it’s straightforward to make but i will warn you that HTML radios are very fiddly
might i suggest a large button or a hyperlink, or even an airtable form, or using a site generator type tool for the marketing/sales pages
I think you can get the same behaviour quite easily with multiple checkboxes (that can be styled to communicate exclusivity) as well
@U05AL1ZH8TW that occurred to me when looking at the todo list example again, i think this is a good idea too