This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-27
Channels
- # aleph (1)
- # announcements (39)
- # aws (11)
- # beginners (58)
- # calva (10)
- # cider (7)
- # clj-kondo (65)
- # cljs-dev (5)
- # clojure (90)
- # clojure-dev (48)
- # clojure-europe (23)
- # clojure-madison (1)
- # clojure-norway (1)
- # clojure-uk (40)
- # clojured (11)
- # clojurescript (20)
- # conjure (12)
- # core-async (4)
- # core-logic (4)
- # cursive (3)
- # datalevin (1)
- # emacs (7)
- # events (2)
- # fulcro (48)
- # introduce-yourself (2)
- # lsp (36)
- # malli (11)
- # missionary (1)
- # off-topic (1)
- # other-languages (72)
- # pathom (4)
- # polylith (13)
- # portal (94)
- # re-frame (14)
- # react (5)
- # releases (1)
- # sci (12)
- # shadow-cljs (29)
- # spacemacs (3)
- # vim (4)
- # xtdb (12)
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
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. 🙏
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?
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...
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"}})
Yes, could be pommegrenate, but I could also be mixing things up. I am pretty sure there is something, though.
This should be relevant to most Calva users: https://clojurians.slack.com/archives/C06MAR553/p1651070702375889