Fork me on GitHub
#cursive
<
2018-10-31
>
stijn09:10:10

is there a command in the REPL to reload changed files in a certain source folder? (or exclude a folder)

stijn10:10:42

i'm specifically trying to avoid that

Azzurite11:10:09

could you explain why 1. you can't sync everything + 2. you want to avoid tools.namespace?

Azzurite11:10:42

I'm interested as I'm relatively new to clojure and can't come up with a reason

mitchelkuijpers15:10:42

@stijn there is a sync files in repl command which does that

mitchelkuijpers15:10:12

But not only a certain folder...

mitchelkuijpers15:10:03

But we use that instead of tools.namespace because we are running our REPL in an OSGI container, and it works pretty well!

mitchelkuijpers16:10:12

I have a macro like this:

(with-test-env env
    .... some body)
which basically adds a env locally, is there someway to have cursive resolve this so I don't get warnings?

Azzurite19:10:55

in the settings under "Languages -> Clojure -> Symbol Resolution" you can make one symbol (like with-test-env) resolve like some other symbol (in this case I guess you would like def). To add that, you have to export the symbol resolution settings, change the resulting file, adding your symbol resolution and then reimport it Oh and you have to restart intellij after for it to show

mitchelkuijpers09:11:14

@UCULU82G3 Thank you for the detailed instructions but it is more like a let so marking it as a def doesn't work 😞