Fork me on GitHub
joe smith01:02:39

should I be using Solo or Datomic Free locally to learn? It's been almost 5 years since I last built a rudimentary double entry ledger on Datomic. Right now I am learning basics of clojure, datalog and finally getting my hands dirty with datomic again. I guess if I am trying to build a MVP I would be better off with Solo which I believe is like $5 CAD / month?


If you just want to mess around locally, check out dev-local.


No matter what I do, I can’t get ions.cast/event to output to :stdout. I’ve paired down to a simple clojure repl, the first line is to require and call

(cast/initialize-redirect :stdout)
but no luck. Any ideas on how to solve this or where to look?


(.println System/out "10")
outputs to stdout, so what gives?

Joe Lane02:02:42

After you redirect to :stdout then your calls to cast/event and cast/dev are redirected.

Jake Shelby02:02:55

I'm still having this problem as well, I reported it a while ago ....

Jake Shelby02:02:16

I feel like it worked a long time ago, in my project, but stopped working at some point - make's me think that some dep I added made it stop working, but I haven't tested that theory yet


So interesting observation. If I call event immediately after initializing, then it works fine.

(cast/initialize-redirect :stdout)
(cast/event {:msg "Cast Initialized!"})
If I require other dependent namespaces and initialize other parts of my system, then call event, it doesn’t work.


Not sure what’s going on inside /event


I suspect some other lib or one of the deps is messing with



Hard to tell without looking at /event


What I saw was that if cast/event happens before cast/initialize-redirect - the redirect never happens.


So I had to ensure that cast/initialize-redirect happens first, on REPL startup even.