Fork me on GitHub
#calva
<
2020-04-17
>
grierson12:04:04

Using 'Alabaster theme'. When I send expression to REPL calva highlights the expression and keeps it highlighted can I turn this off?

pez12:04:23

ESC is the only way, currently.

grierson12:04:47

ok, thank you.

orestis12:04:42

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.

hindol.adhya12:04:33

What's your OS? I never see flickering on Windows.

orestis18:04:00

I’ll see if I can make a small video next week

pez18:04:00

I wonder if could be the formatting...

amalantony14:04:42

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?

brandon.ringe14:04:57

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.

brandon.ringe15:04:52

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

brandon.ringe15:04:39

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

amalantony15:04:31

@ 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!

slack103817:04:38

Mhm as far as i know and i used it sometimes you can do hot-reload dependency within emacs but i dont know how

amalantony19:04:47

@ I doubt it’s possible without adding additional plugins like @ 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.

slack103819:04:58

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 😄

brandon.ringe23:04:22

We could probably do this too, right?

jr0cket18:04:48

@ hot loading in clj-refactor was disabled a while ago as it broke Cider quite badly.

slack103818:04:50

@ oh didnt know this thanks for the Info :)

romantsopin17:04:03

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

pez18:04:50

@romantsopin, It should be possible.

brandon.ringe23:04:49

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