Fork me on GitHub
#calva
<
2021-11-29
>
bringe01:11:14

Hello Calva friends. Version 2.0.226 has been released. The changes are: • Internal: https://github.com/BetterThanTomorrow/calva/pull/1365 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1374 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1395 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1373 Thank you to everyone who contributed to those changes, whether it was via testing, feedback, code, or any other ways.

🚀 2
👏 3
pez05:11:21

I don't think the parinfer experiment is included? The changelog must have still been messy.

👌 1
Marc O'Morain08:11:48

The handling for unknown-op commands might start to surface more errors to users that were silently ignored in the past. The most helpful should be that we now get an error saying “the server couldn't handle the test-all command”

Marc O'Morain08:11:26

The best step there will be to somehow help the user ensure that cider-nrepl middleware is installed.

pez08:11:20

We should consider checking for cider-nrepl middleware somewhere early in the REPL lifecycle and help the user there. And possibly have a context variable we can check before enabling commands that rely on it.

zackteo08:11:11

Btw is there something wrong with https://calva.io/ the wallpaper of the calva logo is massive

pez08:11:46

Which wallpaper?

zackteo08:11:29

I get this at normal maximisation

pez08:11:41

Interesting. Never seen it before. Which version of Chrome are you using?

zackteo09:11:52

95.0.4638.69

pez09:11:10

Maybe just a failed resource download? What if you reload it w/o caches?

zackteo09:11:52

hmm you might be right - can't quite load the page with incognito

pez10:11:55

That sound very strange!

pez10:11:59

If you have cache disabled when the dev tools are showing, that’s one way to load it w/o cache. You can also long-press on the reload button to get options for hard reload.

zackteo10:11:05

Nahhhh 😅 just restrictions on my work machine ><

zackteo10:11:19

Apparently it is cause there are 3rd party cookies ?

pez10:11:14

Google analytics is the only thing going on there that involves 3p cookies.

zackteo10:11:53

Hmmmm, but regardless I guess it isn't any issue of calva's. Just the many restrictions my company imposes 😅

Christian13:11:16

Hi, locally it can be nice to connect to running servers. I.e nREPL.Cider for Emacs has a cider-known-endpoints where you can define a list of endpoints (setq cider-known-endpoints ’( (“label1” “host1" “port1”) (“label2" “host2” “port2")) that can then easily be used from cider-connect. Does Calva support something like this yet?

pez13:11:19

Not yet. Please file an issue. Should be easy to add.

👍 1
Christian13:11:06

Thanks, will do.

Marc O'Morain15:11:14

Are there any unit tests in Calva? I’m extracting some of the error message generating code in testRunner.ts and I’m hoping to add a test so that I know that the code behaves the same before and after.

Marc O'Morain15:11:31

(I didn’t see any unit tests in the repo)

pez15:11:14

For the TS code there are two kinds of tests, unit and integration tests (actually there is just one integration test). If the tests require vscode to be imported then the integration tests is what can be used. What I tend to do is factor things so that I can test them w/o vscode. You’ll find both categories in src/extension-test

Marc O'Morain15:11:39

perfect, thanks!

pez15:11:20

If you do add some integration tests, that would be awesome. It has been there for quite a while, but no-one has bothered with adding any interesting tests. They are run in CI, so it is probably good to have a few such tests.

pez15:11:09

But that is more FYI and for future efforts.

Marc O'Morain16:11:38

I’ve written my first tests 💪

pez16:11:58

Who! That’s great!

Marc O'Morain16:11:25

(testing "Peter's emoji continue to work")

pez17:11:15

If you think there is clearer way to show results, please suggest. 😃

Marc O'Morain17:11:21

I think that some of the data in this messages could become redundant once we wire up the native Test Explorer.

borkdude20:11:46

What is the Calva command to indent/format the entire buffer?

pez20:11:02

It’s a VS Code command: Format Document

borkdude20:11:18

cool, I was looking for Calva: format something :)

pez20:11:24

It’s a common source of confusion. In this particular instance VS Code has the command and Calva provides the mechanics. VS Code does not have a Format Current Form command, though, so that is a Calva command. 😃

pez21:11:13

Also: If you have the cursor at the top level and issue the Calva: Format Current Form command, the entire buffer will be formatted. ¯\(ツ)

borkdude21:11:18

Can you also format on save?

pez21:11:46

You can enable it, but I think it might be a bit erratic. Iirc VS Code only allows a certain time for it. But I could be wrong.

ericdallo01:11:19

I always forgot that Format Document command as well 😂

ericdallo01:11:57

Dart-Code extension (LSP for Dart/Flutter), has format on save feature, and it's something community really likes, even emacs users (lsp-dart)

borkdude20:11:41

Format Document?

borkdude20:11:59

seems to work

Max21:11:18

Has anyone gotten the portal vscode plugin working with calva? I’ve got a repl started, but when I run portal/open nothing shows up

seancorfield21:11:59

@U01EB0V3H39 May also be worth asking in #portal -- I don't know of anyone using nREPL with the Portal extension (I use a Socket REPL) but maybe someone in the Portal channel can help.

thanks3 1
pez22:11:35

I have it working. Can you describe the steps you take?

seancorfield22:11:08

@U0ETXRFEW could it be because @U01EB0V3H39 is running the REPL inside a Docker container?

pez06:11:22

Yes, I imagine that could take some extra setup. Maybe try without that and see if that works?