This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-17
Channels
- # announcements (1)
- # babashka (94)
- # beginners (76)
- # calva (24)
- # cider (24)
- # clj-kondo (1)
- # cljs-dev (16)
- # cljsrn (45)
- # clojure (135)
- # clojure-europe (9)
- # clojure-france (5)
- # clojure-germany (2)
- # clojure-italy (12)
- # clojure-losangeles (13)
- # clojure-nl (3)
- # clojure-portugal (54)
- # clojure-uk (20)
- # clojurescript (55)
- # conjure (67)
- # core-async (5)
- # cursive (2)
- # datomic (7)
- # docker (7)
- # duct (22)
- # emacs (16)
- # fulcro (34)
- # graalvm (15)
- # hoplon (1)
- # instaparse (1)
- # jobs-discuss (3)
- # juxt (94)
- # luminus (1)
- # meander (4)
- # off-topic (13)
- # pathom (4)
- # pedestal (1)
- # ring (3)
- # ring-swagger (2)
- # shadow-cljs (61)
- # spacemacs (17)
- # specter (2)
- # sql (23)
- # xtdb (33)
Using 'Alabaster theme'. When I send expression to REPL calva highlights the expression and keeps it highlighted can I turn this off?
When moving forms around with paredit, there’s an annoying flickering, seemingly to re-do the highlighting. Is that a known issue? I’ve seen some work that relates to parsers, not sure if syntax highlighting was part of this.
How do I get Calva to recognise a new library dependency once I install it via lein deps
assuming my project is already jacked-in? For now, I need to re-run the “Start project repl and jack-in” command for Calva to begin auto-completing the newly installed library. Is there an alternative to this?
As far as I know you will need to restart the repl (aka jack-in) when you add a new dependency, in order for it to be loaded/used. This is a common clojure thing, not specific to Calva, since deps are loaded at startup.
I think there are some tools related to this though, so there may be something that can solve this for you. See this SO post about a lein tool https://stackoverflow.com/questions/16409182/any-way-to-add-dependency-to-lein-project-without-repl-restart
And an article about a potential feature in tools.deps.alpha here: https://insideclojure.org/2018/05/04/add-lib/ Though that article is dated, and I'm not sure if it's been added or scrapped since then
@U9A1RLFNV Got it. I suppose I’ll stick to restarting the REPL for the time being since adding deps is a relatively infrequent activity for me. I was simply curious if there was a better alternative to restating the REPL. Thanks for the clarification!
Mhm as far as i know and i used it sometimes you can do hot-reload dependency within emacs but i dont know how
@UD8TU3HP0 I doubt it’s possible without adding additional plugins like @U9A1RLFNV mentioned. The problem seems to be that any new library added (along with it’s dependencies) is not on the classpath. Hence the REPL cannot find it without a restart - which sets the classpath with all the dependencies.
There https://github.com/clojure-emacs/refactor-nrepl#hotload-dependency with refactor-nrepl so it works for emacs because cider injects the deps for the refactor-nrepl 😄
@UD8TU3HP0 hot loading in clj-refactor was disabled a while ago as it broke Cider quite badly.
If using a deps.edn
based project, you could try using
https://github.com/practicalli/clojure-deps-edn/blob/master/deps.edn#L195
@U05254DQM oh didnt know this thanks for the Info :)
Is it technically possible to make Calva repl searchable? I mean to cmd f it’s contents? Or there is no such api for web view in vscode
If anyone would like to tackle an easy task for a first/second issue (or for any reason), see here: https://github.com/BetterThanTomorrow/calva/issues/615