Fork me on GitHub
#calva
<
2022-04-27
>
Eugen08:04:29

is there a way to toggle discard in Calva ? I used the comment keys to ignore some lines (CTRL+/) . The issue with comments is that it takes the whole line and sometimes catches extra parens at the end of the line. Discard #_ might be a better fit for this

pez08:04:49

What I do to toggle it is to type #_ 😃 You are not alone in having asked for this. There was an issue posted recently https://github.com/BetterThanTomorrow/calva/issues/1690 Slap a thumbs up on it and comment with your rationale, please. 🙏

👍 1
leifericf12:04:07

When adding a new dependency to deps.edn, is there a way to “download and load it into the REPL” without re-running the jack-in command? Or is that the “correct” way to do it?

pez13:04:12

Oh, yes, there is add-lib. A version of the clojure.tools.alpha library. It has a function for loading dependencies dynamically. I think I might demo it in some youtube vid. Let me check...

💡 1
1
pavlosmelissinos15:04:29

Looking forward to having a video link handy to share with people but in the meantime, it's https://github.com/clojure/tools.deps.alpha/tree/add-lib3 and you call it like this:

(require '[clojure.tools.deps.alpha.repl :refer [add-libs]])

(add-libs '{io.github.dakrone/clj-http {:git/sha "7aa6d02ad83dff9af6217f39e517cde2ded73a25"}})

💡 1
pez15:04:22

Oh, sorry, forgot about this. Got all carried away by releasing #joyride 😃

❤️ 1
rayat17:04:01

Is there a similar thing for lein?

pez17:04:48

Yes, could be pommegrenate, but I could also be mixing things up. I am pretty sure there is something, though.

👀 1
pez17:04:07

And, I don't think I ever made that video, just had plans. 😃

borkdude14:04:44

This should be relevant to most Calva users: https://clojurians.slack.com/archives/C06MAR553/p1651070702375889

💜 7
clojure-spin 6
😮 5
🎉 3