vscode

Quiet in here? Check #calva-dev out :smiley:
kwladyka 2018-05-19T14:13:37.000039Z

@pez hi, i have free time to try again VSC 🙂 Just I am curious. Why did you start Calva when https://github.com/avli/clojureVSCode exist? (I didn’t try it)

kwladyka 2018-05-19T14:32:22.000023Z

For me you win, because you have better doc. It gives much better impression you care about it.

pez 2018-05-19T14:48:42.000102Z

I’m glad to hear. The idea is that Calva should be actively maintained. ClojureVSCode seems to serve many people well, but it didn’t have the Emacsy/Ciderish interactive coding that I wanted, and I had some problems getting it to work in an intuitive (for me) way with mixed Clojure/ClojureScript projects. The alternative that worked best for me was VisualClojure, but things stopped to work after a major update and the author just left it there. My PRs were never even commented, so I decided to fork off from there.

1👍
kwladyka 2018-05-19T15:06:09.000078Z

So the best config for now is to install: https://github.com/shaunlebron/vscode-parinfer https://github.com/PEZ/paredit-for-vscode add

"parinfer.defaultMode": "disabled",
    "calva.autoAdjustIndent": true,
?

kwladyka 2018-05-19T15:07:16.000005Z

Did you figure out solution for spaces between keys and values in maps?

kwladyka 2018-05-19T15:08:19.000091Z

I am a little confuse what parse code now… Parfiner extension? Calva?

kwladyka 2018-05-19T15:08:26.000006Z

both?

kwladyka 2018-05-19T15:14:09.000110Z

> However Parinfer clashes with the auto adjustment of indents feature. Can you explain it a little more? indent mode looks ok as first impression. Better than calva.autoAdjustIndent.

kwladyka 2018-05-19T15:15:20.000114Z

I didn’t code anything real for now, but it looks Parinfer needs some extra configuration like aligment for map and should be fine

kwladyka 2018-05-19T15:16:48.000016Z

ok with this settings it looks like terrible things happening… ok there is something wrong

kwladyka 2018-05-19T15:18:49.000038Z

so the best is to use calva.atuoAdjustIndent true and parinfer.defaultMode Paren?

kwladyka 2018-05-19T15:19:48.000010Z

not sure what calva.autoAdjustIndent does

kwladyka 2018-05-19T15:20:11.000073Z

it is still confuse for me, sorry

pez 2018-05-19T15:20:29.000097Z

Calva’s adjustment help is all about getting the cursor at the right place when creating a new line. It kicks in using an onTypeFormattingProvider in vscode. Parinfer does its work on the selection changed event. Sometimes Calva wins, sometimes Parinfer.

pez 2018-05-19T15:22:17.000124Z

I intend to do something about all this. Thining of building a formatter extension with an API that Calva and Paredit and other extensions can use. In the best of world’s this formatter would be doing all Clojure formatting and the other extensions can concentrate on their main use cases.

pez 2018-05-19T15:23:20.000043Z

I just need the days to be much longer, and I would make it. 😃

kwladyka 2018-05-19T15:24:25.000088Z

So the vision is to make formatting in Calva and not use Parinfer?

kwladyka 2018-05-19T15:24:59.000080Z

Maybe one day I will learn Type Script and contribute to Clojure community… but not today 🙂

kwladyka 2018-05-19T15:25:37.000067Z

At least I have to learn Type Script in my current work, so… maybe in a few months

pez 2018-05-19T16:25:46.000037Z

Calva is being rewritten in clojurescript, just sayin’. :face_with_cowboy_hat:

richiardiandrea 2018-05-23T05:01:33.000102Z

Nice to hear this btw!

1🦜
pez 2018-05-19T16:27:28.000110Z

The idea is to do formatting in a clojure formatting extension, and keep using parinfer for inferring parens.

kwladyka 2018-05-19T16:36:31.000082Z

BTW I found cmd+z doesn’t work because of formatting. Especially when paste some block of code.

kwladyka 2018-05-19T16:37:49.000073Z

hmm we will see if this combine parinfer and Calva formating wouldn’t bring some issues. I am a little afraid of that.

kwladyka 2018-05-19T16:39:26.000064Z

For now it is still not productive environment for me, because of issues about editing code.

kwladyka 2018-05-19T16:40:00.000028Z

But I am excited about it, looks promising