This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # aws (31)
- # babashka (81)
- # beginners (82)
- # calva (38)
- # clj-kondo (41)
- # cljdoc (4)
- # cljs-dev (6)
- # clojure (101)
- # clojure-belgium (1)
- # clojure-europe (30)
- # clojure-germany (1)
- # clojure-italy (7)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-spec (1)
- # clojure-uk (19)
- # clojurescript (16)
- # clojutre (1)
- # community-development (26)
- # core-logic (2)
- # data-science (26)
- # datomic (71)
- # events (3)
- # fulcro (55)
- # graalvm (2)
- # graphql (3)
- # joker (2)
- # kaocha (19)
- # luminus (2)
- # malli (6)
- # meander (3)
- # off-topic (6)
- # pathom (34)
- # random (1)
- # re-frame (2)
- # robots (1)
- # shadow-cljs (37)
- # sql (30)
- # tools-deps (21)
- # xtdb (4)
- # yada (25)
@pez Yes, exactly 🙂 I saw this comment mentioning “Will need to be configured before https://calva.readthedocs.io/en/dev/connect.md if you want Calva’s help to inject its dependencies”, and that’s why I asked
I’ve added zprint to the dependencies and can use it in the REPL. But
"printEngine": "zprint" doesn’t seem to work when I eval things in Calva — the output is printed without any formatting. If I set
"printEngine": "calva" , then the eval is nicely formatted. Any ideas?
Could be a bug. But iircc Calva uses zprint. Could be remembering that wrongly though, I treshed back and forth a bit implementing that.
I'll have a look. It's on my todo to check out an update to zprint anyway (which could be why it doesn't work, coming to think about it).
Hey @pez. I’ve been having success with
cmd+k cmd+i for one window but I opened a new window for a new project and now it doesn’t do anything. Is there some place I can look to see why?
As best I can tell, yes. Hovering over the “nREPL” icon in the status bar shows “<nrepl://localhost:8777> (Click to reset connection)”
In the new window, can you click on something other than the editor, and then refocus the editor?
That didn’t help, unfortunately. I even tried restarting Visual Studio and then re-connecting to my nrepl.
Actually, I disconnected the other project window and closed that, thinking that could be the problem but that didn’t change anything.
I often have several windows opened and connected to different REPL servers, so that shouldn't be the problem.
But I am also curious about if it is the same REPL server or a different one. Also, how are you connecting the REPL?
Clicking the “nREPL” icon in the status, selecting “Connect to a running REPL in your project”, selecting “Leiningen + shadow-cljs”, selecting “localhost:8777", selecing “:client”. I should note that all of this code is the “todomvc” example in the Re-Frame repo.
Hi! Thanks for the awesome tool! Migrating from Cursive and very happy with the experience!
I want to solve a thing that bothers me a lot, but can't find a way: how do I line-wrap comment strings?
If I have a docstring for e.g. method:
(defn method-name "Very long docstring that doesn't fit one line in a screen" [params] body)
I want that string to line-wrap after e.g 80 symbols, so I don't need to do a hard return. If I do newlines myself then it messes up with formatters in e.g. docstrings showing on hover.
But you don't want it to wrap other lines of code? I don't think that's possible in vscode.
Yes, I want that to apply only to docstrings. I think it will make a life of doc generators and sharing code easier.
Personally, I let vscode wrap all lines for me. But there are still cases when I wrap docstrings a bit manually and they get weird in the hovers...
is there a way with calva (jack in) that i can still access to repl in vscode terminal ?