This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-07
Channels
- # announcements (7)
- # beginners (123)
- # calva (27)
- # cider (23)
- # clj-kondo (4)
- # cljsrn (7)
- # clojure (29)
- # clojure-dev (7)
- # clojure-europe (4)
- # clojure-italy (4)
- # clojure-nl (16)
- # clojure-uk (47)
- # clojurescript (1)
- # code-reviews (4)
- # cursive (4)
- # data-science (4)
- # datomic (30)
- # duct (4)
- # fulcro (4)
- # graphql (1)
- # kaocha (4)
- # mount (8)
- # off-topic (13)
- # overtone (1)
- # pedestal (2)
- # planck (3)
- # re-frame (9)
- # reagent (50)
- # ring (12)
- # shadow-cljs (38)
- # spacemacs (5)
- # testing (13)
- # tools-deps (55)
- # vim (30)
- # xtdb (13)
Guessing calva is probably not there yet. But think it would be amazing to have something like https://youtu.be/buPPGxOnBnk?t=959 , there is scope capture that already has similar functionality https://github.com/vvvvalvalval/scope-capture
Yes, we want something like that, @saikyun has something similar to scope-capture and we hope to find some time to try get it into Calva in some neat way.
Dear channel: I have put some repro instructions on those blocking CLJS REPL issues into my nrepl test project: https://github.com/pez/nrepl-test Hopefully this will make it easier to try help me find out what is going on and going wrong.
is there any simple way to swap forms location. Ex: move (do z)
first in if
(if x
(do m)
(do z))
?There are currently two ways to do that, depending on how you feel about the structure breaking temporarily. 😃 The structural way is to use paredit transpose and swap places of the (do m)
and (do z)
forms. The non-structural way is the vscode built-in command for moving lines up and down. That will leave the code broken, but there is rescue with the infer parens command (`ctrl+alt+p`), and structure will be restored.
On the todo is to modify the vscode move line commands to work structurally, but who knows when someone will find time for such todos.
cool 🙂 Paredit transpose is what I was looking for (I'm using paredit, but still just basic skills). Tried the parinfer but did not work for my case, will play around with it some more 😄
If alt+up
followed by ctrl+alt+p
does not work for that case, something is broken. It is the case I created the infer parens command for.
ohh 🙂 by the way, don't know when I will find time (but kinda interested in playing around with vscode + calva). If you would consider doing a screencast of you're dev setup and how you go about fixing issues like this maybe other people would find it helpfull also. (noticed the how to contribute has some nice info).
🙂 don't know. Last prototype rewrite of my personal project was in JS/react, after that got depressed for about 6 months. Don't think TS solves any of the problems I had (if anything it would added to them). Decided to learn clojurescript then and drop JS for good :))
(Re the nrepl-test link above. CC @vcastro70)
Greetings folks! Is there a way to change indentation of a macro to be like let
? For instance, instead of
(Describe "the body"
:body)
I’d like the following
(Describe "the body"
:body)
As you can see, :body
would not be aligned with “the body”. It would just be a two-whitespace indentation.Welcome @jivagoalves ! This is not yet implemented.
is this something that should be implemented in calva-fmt ? I use fulcro for my projects the dom/p
stuff looks really off if I can't do that https://bit.ly/2J7wh7a
@pez Thanks for clarifying. Please let me know how we can help with development.
@jivagoalves , thanks for asking! Check the wiki out for instructions on setting up the dev environment. I can help you find your way around the parts of the code where we would add support for custom clj-fmt
configs.