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.

hindol12: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?

bringe14: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.

bringe15: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

bringe15: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

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

bringe15:04:44

No problem!

kstehn17: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

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

kstehn19: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 😄

bringe23:04:22

We could probably do this too, right?

practicalli-johnny18:04:48

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

kstehn18:04:50

@U05254DQM oh didnt know this thanks for the Info :)

Roman Tsopin17: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.

👍 4
bringe23: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