fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
2020-10-21T00:50:21.357Z

Hi all - does anyone know what the status of workspaces is in the context of the fulcro-template?

2020-10-21T01:12:28.358900Z

never mind - I think I figured it out..

exit2 2020-10-21T13:46:34.359200Z

Is this a warning to be worried about?

exit2 2020-10-21T13:46:36.359600Z

core.cljs:159 WARN [com.fulcrologic.fulcro.ui-state-machines:684] - UNEXPECTED EVENT: Did not find a way to handle event :timeout! in the current active state: :failed

tony.kay 2020-10-21T16:14:24.360600Z

it means there was a js timeout (set via uism/set-timeout!) that fired a :timeout! event, but the state your SM was in (`:failed`) did not have a handler for it

tony.kay 2020-10-21T16:14:57.360900Z

probably harmless

Jakub Holý 2020-10-21T17:48:15.361500Z

I am no authority by any means but I don't think so. Is it a router? Timeout would move it to the failed state, if it already is failed then no reason to worry about it...

xceno 2020-10-21T22:03:55.374600Z

I'm currently (ab)using a mixture of plain fulcro and RAD. I've got some custom forms (not RADs defsc-form). However I'm calling RADs form/begin-form! on these components. It works well, but I'm getting this error:

ERROR [com.fulcrologic.rad.form:665] -  dr/target-ready! was called but there was no router waiting for the target listed....
Which makes total sense, because these components aren't a router target at all. So my question is: I can't find the actual place where target-ready is called AFTER I called form/begin-form! => where is it, or what else am I missing / doing wrong? On another note. A little bit of feedback for RAD: I hit an edge-case where I needed to escape from RAD forms for the following reason: I have a graph with reified edges. My edge forms have a :source and a :target :ref (not "just" a uuid for various reasons) I can edit my nodes and edges in separate forms, all working fine. When I pull in the edge form as a subform of my node forms, the edges :source picker points to the master-form/node-form and thus creating an infinite loop in RADs form/create!, because it initializes the forms recursively. I understand the recursive initialization is a neat feature and I'm hitting a total edge-case, but I wanted to let you know 🙂

cjmurphy 2020-10-21T22:25:10.374700Z

Just on your first question, there's a target-ready in the forms state machine.

cjmurphy 2020-10-21T22:27:01.374900Z

See form/route-target-ready .

2020-10-21T22:29:04.376800Z

I realized my issue mentioned above is only present when I’m trying to run the apps on an actual mobile device. The updates seem to all work fine in an ios simulator. So, unless someone immediately knows where to tell me to look feel free to disregard as the issue appears to b something more network or expo related.

2020-10-21T22:30:16.378100Z

BTW Tony, thanks for all the work you do on this. I think you’re making the world an amazing place. I’m hoping I can have some measure of success and be able to get some of that flowing back to yourself for all your awesome work!

➕ 3
2020-10-21T23:21:20.382200Z

Following these instructions on the Fulcro rad demo (Datomic Cloud Version)/datomic cloud github branch.

$ clj -A:dev:datomic
user=> (clojure.core/require 'development)
user=> (development/go)
I get the error
Execution error (NoSuchFileException) at sun.nio.fs.UnixException/translateToIOException (UnixException.java:92).
/grow/datomic/dev-local-data/fulcro-rad-demo/example/db.log
/grow/datomic/dev-local-data is what i specified in my ./datomic/dev-local.edn for the storage-dir That folder is currently empty. Which i suspect is the issue. The datomic doc examples for the dev-local tools have you download examples which contain -eavt and .log files. I'm guessing i'm either supposed to create these database files or download them to get the fulcro example to work. does that round right?

2020-10-26T18:07:11.443300Z

The issue was that i needed to specify the full path. 🙂

Tyler Nisonoff 2020-10-21T23:36:00.382300Z

what happens if you mkdir -p /grow/datomic/dev-local-data/fulcro-rad-demo/example/ ?

xceno 2020-10-21T23:41:57.382500Z

Ah, I missed that one, thank you! Okay, I can just overwrite the UISM then, and ignore the error for now. I do everything else that happens there myself

2020-10-21T23:53:06.382900Z

same error. The db.log file is missing. I can't tell if running is supposed to create the database files or if it was supposed to be included (maybe in the repo?)