calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
punit-naik 2020-12-11T11:16:05.192100Z

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?

punit-naik 2020-12-15T17:12:56.229200Z

Thanks for sharing đź‘Ť

1
Janne Sauvala 2020-12-11T14:10:18.195500Z

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?

borkdude 2020-12-11T14:11:40.195900Z

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

Janne Sauvala 2020-12-11T14:13:21.196Z

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

Janne Sauvala 2020-12-11T14:15:22.196200Z

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

borkdude 2020-12-11T14:17:19.196400Z

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

Janne Sauvala 2020-12-11T15:10:00.204800Z

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 Sauvala 2020-12-11T15:19:40.205Z

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)

pez 2020-12-11T16:31:37.206900Z

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

Janne Sauvala 2020-12-11T17:42:44.208500Z

Okay, thanks for confirming this đź‘Ť:skin-tone-2:

bringe 2020-12-11T19:46:28.208600Z

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