This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # beginners (82)
- # calva (13)
- # cider (12)
- # clara (4)
- # cljdoc (22)
- # clojure (89)
- # clojure-dev (23)
- # clojure-europe (16)
- # clojure-italy (39)
- # clojure-nl (8)
- # clojure-spec (28)
- # clojure-uk (36)
- # clojurescript (40)
- # cursive (10)
- # data-science (1)
- # datomic (27)
- # devcards (4)
- # emacs (1)
- # fulcro (25)
- # jobs (1)
- # jobs-discuss (3)
- # kaocha (5)
- # luminus (1)
- # nrepl (68)
- # off-topic (64)
- # pedestal (23)
- # planck (1)
- # quil (4)
- # re-frame (6)
- # reitit (5)
- # remote-jobs (4)
- # shadow-cljs (16)
- # spacemacs (11)
- # testing (1)
I tried Calva for the first time to work on a figwheel-main project. I followed the getting started guide and everything worked. When I wanted to run the
Evaluate current form command, it did not connect, because I do not use Leiningen. I changed the command to:
But this does not work, since Calva appends
clj - Sdeps '…' -m nrepl.cmdline --connect
--host host --port port. It would be great, if we could add host and port as variables instead.
Thanks for the feedback, @jehrhardt . The dependency on leiningen will be dropped with the next major release of Calva. It would be great to know how the dev build of Calva 2 handles your Figwheel main project. (I'm guessing not good, as the jack-in for clj deps is somewhat in flux right now, but Id be happy to get help with testing of that as we fix it.)
(You'll find the latest dev build a few posts up. A new, stabler, one will be posted today or tomorrow.)
I am happy to help you with the testing. I'll wait for the stabler one and will give it a try.
I appreciate the help! Stabler might be the wrong word. The difference will be that it shouldn't leave the jacked-in repl running when you close the project in VS Code. The current one fails in cleaning that up when it exits.
Looks nice, @yogthos. Yes, we should do it like that. Please file it as an issue (even if I think I'll manage to remember this anwyay.)
@yogthos, for now, what I would do is to use the Paredit: Up sexp command,
ctrl+up, then Wrap (). That way you will have the cursor at the right place. What does Cursive do when you wrap with no selection and have a sexp adjacent to the right of the cursor?
with cursive I tend to select first, and then hit the
( character to wrap, but using wrap cursive will wrap the next form on the right regardless of selection
Thanks. It's food for thought. In Calva the Wrap () commands do a similar thing.
( is handled by VSCode today. So if you have a selection and press
( what happens depends on if you have told VSCode to wrap parens or not (Calva also sets this to default to wrap in Clojure files). But we could consider adding our own behaviour for when
( and friends are pressed.