Fork me on GitHub
#calva
<
2024-05-28
>
jose18:05:33

how can I configure the "Refresh Changed Namespaces" command? I see that there is a refresh helper function: https://github.com/BetterThanTomorrow/calva/blob/4dcc69a00393566ec72b7d7ebb935b52960e9d20/src/nrepl/index.ts#L819 How can I pass arguments? I'd like to execute a custom clojure function after the refresh

pez06:05:28

Unfortunately those arguments are not being exposed to the command: https://github.com/BetterThanTomorrow/calva/blob/dev/src/refresh.ts And we’re not even returning the promise correctly so you can’t reliably string the command together with runCommands…. Issue welcome.

jose09:05:58

I created this issue: https://github.com/BetterThanTomorrow/calva/issues/2556 In the mean time, as a work around, does Calva exposes the nrepl client? I'm wondering if I could send the refresh (https://docs.cider.mx/cider-nrepl/nrepl-api/ops.html#refresh) operation directly to the nrepl client from Calva

pez09:05:46

We’re not exposing the nrepl client. Maybe we should.

jose09:05:35

@U0ETXRFEW thanks for the info