Hi, has anyone been able to make the (cast/dev {:msg "something"}), and (cast/event ...) functions print anything locally? If so, what sometimes gave you trouble, how did you make it work?
When I follow the instructions here, I get no errors but no logs either:
I’ve been suffering from this for a while, and had to just workaround by using println in dev for a while … although, seeing your post inspired me to re-investigate the issue again in my environment, because when I first started the project it was working. I messed around with a lot of different require combinations …
I was finally able to get cast/dev to actually work again in my local environment, once I removed my require call for datomic.dev-local, something in requiring that was interfering with my cast logging. After discovering that, I was able to still require datomic.dev-local so long as BOTH the cast init call AND a single/first call to cast/dev was made before requiring dev-local.
Do you think this is the same thing affecting you as well?? Either way, sounds like dev-local OR datomic.ion.cast might have some kind of bug that doesn’t allow them to play well … (unless I’m doing something wrong)
Wow thanks a lot Jake, that’s exactly the solution we needed!
CC @jaret you might be interested to know about Jake’s solution. Do you think Cognitect needs to fix something? At least we know the workaround until then.
Hi @jmshelby would it be possible to share a small repo? I am assuming from reading this that a project with ion.cast and dev-local will re-create, but I’d like to see if you have anything else contributing.
Apologies for likely being one of the people to tell you to initialize!
@cch1 This is not currently resolved, but is slated for our next maintenance release. If you include dev-local on the classpath you will encounter this issue when trying to use cast locally. You can avoid this by putting dev-local in an alias.