calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
pez 2021-03-29T16:07:29.127800Z

Dear Calva-friends, can I get some help testing this minor change regarding completions? ❤️ The difference should be that completions are now working with babashka’s nrepl server (the most recent babashka supports this, iiuc). Otherwise completions things should work as before. I’m pretty sure they do, but as programmers you know what such assumptions are worth, right? 😃 Here’s the VSIX: https://12373-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.183-1083-fix-complete-info-68898896.vsix

borkdude 2021-03-29T16:09:31.128600Z

@pez The lookup/info op is only supported with bb master right now. Binaries are available in #babashka-circleci-builds

borkdude 2021-03-29T16:10:17.129400Z

Oh this is about completions, I get it yeah, so that should work with released bb already

borkdude 2021-03-29T16:10:29.129700Z

But if you want to also test the newer thing, use master

pez 2021-03-29T16:10:45.129900Z

Roger that!

otwieracz 2021-03-29T21:24:16.130500Z

Hey, I’ve got question regarding Calva formatting.

otwieracz 2021-03-29T21:24:47.131100Z

When I am typing, after I hit enter after list of arguments of defrecord method implementation:

otwieracz 2021-03-29T21:25:10.131400Z

Cursor lands aligned with [ (incorrectly)

otwieracz 2021-03-29T21:25:49.132Z

But after I reformat whole sexp with tab, it get’s to:

otwieracz 2021-03-29T21:25:56.132100Z

otwieracz 2021-03-29T21:26:12.132600Z

So basically as I am typing everything is wrong.

otwieracz 2021-03-29T21:26:33.132900Z

After I tab it, it get’s correct.

otwieracz 2021-03-29T21:26:54.133300Z

This is even weirder. Basically it’s wrong:

otwieracz 2021-03-29T21:27:00.133800Z

After I reformat it with tab:

otwieracz 2021-03-29T21:27:12.134Z

'

otwieracz 2021-03-29T21:27:26.134500Z

Then after I save the file it breaks again.

otwieracz 2021-03-29T21:27:32.134700Z

Into what it was above.

otwieracz 2021-03-29T21:27:41.135100Z

Are those issues known? Or is there something wrong with my setup?

otwieracz 2021-03-29T21:28:49.135500Z

I’ve tried disabling new indent engine, but it seemed to make no difference.

otwieracz 2021-03-29T21:31:39.135900Z

(but was not restarting VSCode after altering the settings)

otwieracz 2021-03-29T21:32:52.136500Z

Ah maybe it was conflicting with VSCode format-on-save? That will at least resolve part of the problem (breaking the second file on save)

otwieracz 2021-03-29T21:35:30.137400Z

And it seems like format as you type is lacking defrecord context - so indenting (foo-bar [car zar] <RET> bar) treating it as function call.

otwieracz 2021-03-29T21:35:46.137800Z

Any way to force Calva to re-indent whole top-level sexp when typing?