Fork me on GitHub
#calva
<
2020-01-23
>
otwieracz07:01:53

Hey, any ideas why autocompletion is not working for me in Calva REPL (shadow-cljs)?

pez07:01:24

@slawek098 are you using jack-in, or are you starting the REPL yourself and connecting to it?

otwieracz07:01:05

I am starting the repl by myself.

pez07:01:10

See if completion works if you let calva start it.

otwieracz07:01:41

Is Calva capable of starting shadow via npx?

pez07:01:08

Yes, iirc that is what it uses.

otwieracz08:01:18

Yeah, now it works. Why it is so?

pez08:01:12

Calva needs the nREPL server started in your shadow-cljs app to provide the services of completion and others. And it needs to be a version of the server that is compatible with Calva as a client. If you look at the command that Calva uses to start you project, you will see the command line options used to inject the necessary dependencies. I recommend that you keep using Jack-in, but if you need to start the project yourself and connect, then pick those command line options and use them when you start the project. That will work until Calva is updated such that it needs some other version, which is why I recommend jack-in. I have tried to explain the jack-in process here: https://calva.readthedocs.io/en/latest/jack-in-guide.html Not sure how well I succeed...

👍 4