Fork me on GitHub
#calva
<
2020-12-11
>
punit-naik11:12:05

Hey people, I have a question: If your project has multiple sub-projects, then how are you handling multiple REPLs? Are you opening a new workspace/window for every sub-project?

bringe19:12:28

Hiya, this might help you: https://calva.io/workspace-layouts/#one-folder-two-windows Unfortunately there's not yet better support for this, but this seems to be what people do when they need this in Calva.

👍 1
punit-naik17:12:56

Thanks for sharing 👍

calva 1
Janne Sauvala14:12:18

I tried babashka for the first time. I started bb repl with bb --nrepl-server 1667 and used Calva to connect to that repl with “Connect to a Running REPL…” -command. Calva connected to it and I was able to eval code without a problem but I noticed that the function docs didn’t show up in the editor when I hovered cursor above the function names. Is there some trick to get this working or do you think it is a limitation of bb nrepl?

Janne Sauvala14:12:21

also the code navigation doesn’t work, so I cannot go to my own function definitions or clojure.core. I remember I have had this same problem with I was playing with REBL + Calva long time ago

borkdude14:12:40

Maybe you can inspect what messages get sent to the babashka repl, which op it's using?

Janne Sauvala14:12:22

Do you think I can inspect those messages with some nrepl middleware or is there easier way to do it?

borkdude14:12:19

In emacs it's pretty easy. I'm not sure how to do it in Calva. @U0ETXRFEW?

Janne Sauvala15:12:00

Could the problem be that bb nrepl is missing the required stuff that Calva usually adds when it starts an nrepl server with jack-in:

Executing task: clojure -Sdeps '{:deps {nrepl {:mvn/version "0.8.2"} cider/cider-nrepl {:mvn/version "0.23.0"} clj-kondo {:mvn/version "2020.04.05"}}}'  -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
If I have understood correctly instellisense + code navigation relies to those?

Janne Sauvala15:12:40

I think this is not true since I found: “Babashka’s nREPL server supports all core nREPL operations, plus code completion, so you’ll get all of CIDER’s basic functionality with it.” (https://docs.cider.mx/cider/platforms/babashka.html)

pez16:12:37

Currently Calva depends on cider-nrepl, which is not implemented/supported with bb, yet. So it's a more bare bones experience.

Janne Sauvala17:12:44

Okay, thanks for confirming this 👍:skin-tone-2: