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?
Thanks for sharing đź‘Ť
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?
Maybe you can inspect what messages get sent to the babashka repl, which op it's using?
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
Do you think I can inspect those messages with some nrepl middleware or is there easier way to do it?
In emacs it's pretty easy. I'm not sure how to do it in Calva. @pez?
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?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)
Currently Calva depends on cider-nrepl, which is not implemented/supported with bb, yet. So it's a more bare bones experience.
Okay, thanks for confirming this đź‘Ť:skin-tone-2:
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.