Fork me on GitHub
#clara
<
2017-10-21
>
wadi.chemkhi19:10:50

i find my self having to restart the repl every time i change the rules in a different namespace

wadi.chemkhi19:10:59

i require it with :reload

wadi.chemkhi19:10:08

but still changes are ignored

wadi.chemkhi19:10:31

i have a main namespace with (defsession my-session 'myapp.corerules 'myapp.module.morerules)

wadi.chemkhi19:10:12

i'm new both to clojure and clara

wadi.chemkhi19:10:23

is there a way to simplify the workflow

ryanbrush20:10:13

@wadi.chemkhi By default Clara caches rule sessions for efficiency, but this' isn't great for a REPL-based workflow. I like to set :cache false when working from the REPL to avoid this. The page is a bit old, but there's an example here: https://github.com/cerner/clara-rules/wiki/Using-Clara-from-the-REPL

wadi.chemkhi20:10:46

thnx @ryanbrush 😄

wadi.chemkhi22:10:21

with clojurescript is it possible to define facts in different namespaces and have defsession work properly and require everything ?

wadi.chemkhi22:10:48

or do i need to require all facts from each rules namespace

ryanbrush22:10:33

I don't use the Clojurescript version much but it should be as long everything is properly required.

wadi.chemkhi22:10:40

I see, thnx again @ryanbrush