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`.
ikrimael 2020-10-11T00:21:44.246500Z

is there a way to configure calva so that "evaluate top form" automatically evaluates a variable when toplevel form is (def var ..)?

bringe 2020-10-11T00:25:08.246600Z

I'm not sure I understand what you mean. If you evaluate (def var ..) it will define/intern that var and return the var, like #'namespace/var. Are you wanting it to return the value of the var?

ikrimael 2020-10-11T00:25:52.246800Z

yeah, i'd like it to return the value

ikrimael 2020-10-11T00:26:59.247Z

meta: there might be a better workflow, but i have a bunch of (def bla ...) in a test file as i'm prototyping/testing stuff

ikrimael 2020-10-11T00:27:35.247200Z

so that i can inspect the state of each variable while i make changes

bringe 2020-10-11T00:28:18.247400Z

After eval'ing the form, you can place the cursor after the var like (def var| ..) and run "Eval current form" (ctrl+enter by default) and it will return/show the value. You could also place the cursor there in the beginning and hit alt+enter to eval top-level, then ctrl+enter to see the value

πŸ‘ 1
bringe 2020-10-11T00:28:47.247700Z

But eval'ing the top-level form should always return the variable itself. This is the nature of clojure and what people generally expect.

ikrimael 2020-10-11T00:29:46.247900Z

makes sense; i saw in the docs that it treated comment differently so wondered if I could do the same with def

bringe 2020-10-11T00:29:54.248100Z

You may find some use in spy functions

πŸ‘ 1
bringe 2020-10-11T00:31:11.248700Z

There are other libraries that have this behavior too

bringe 2020-10-11T00:31:37.248900Z

It requires changing the code a bit, but it will function the same, plus log the value

ikrimael 2020-10-11T00:35:43.249100Z

brilliant; that solves it and i can keep the same shortcut

πŸŽ‰ 1
pez 2020-10-11T14:14:18.250300Z

There's a new Calva in town: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.126

πŸ‘ 1
3
πŸŽ‰ 2
Stefan 2020-10-11T15:08:37.252100Z

@pez I finished my live share PR today. I’m hoping for 2.0.127 soon πŸ˜‰

πŸŽ‰ 2
pez 2020-10-11T15:15:10.252500Z

Have time to try this out together with me?

Stefan 2020-10-11T15:22:39.253700Z

Yes sure but not right now I’m afraid. Maybe tonight? Or else we’ll find some time coming days.

pez 2020-10-11T15:25:02.253900Z

I think I can make it later tonight.

Stefan 2020-10-11T15:25:55.254900Z

Awesome. What time? 20.30? (You’re also in CET right?)

pez 2020-10-11T15:53:17.255200Z

Yes, CET. I think 20:30 might work.

Stefan 2020-10-11T15:54:02.256200Z

Ok later is also fine if that works better for you...

pez 2020-10-11T16:12:37.256400Z

I've now tried to get liveshare started in my virtual box, but I won't keep my sanity if I continue.

pez 2020-10-11T16:33:29.256600Z

Having it working now. Windows is driving me crazy. But your changes are compensating. Haha.

pez 2020-10-11T18:24:41.260200Z

Dear Calva-friends. This is the VSIX from @stefan.van.den.oord's PR. It adds LiveShare support to Calva. Apart from the LiveShare stuff it meant that some central code around what is the project root directory needed to be updated. So we want help with testing this out in non-LiveShare use as well. Please install and run with this. https://8257-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.126-pull-805-1049b25c.vsix

πŸ’― 1
1
pez 2020-10-11T18:26:31.262100Z

Also. If you install that VSIX, you are welcome to join @stefan.van.den.oord and me in about halv an hour when we are going to test using this for a Calva Party. πŸ˜ƒ Zoom link will be posted soon.

🎊 1
bringe 2020-10-11T18:34:33.262500Z

I plan to join the party πŸ˜ƒ

πŸ†’ 2
Stefan 2020-10-11T18:48:46.262800Z

By the way, this vsix has the same version number as the latest released version, so I have seen vscode do some strange things with trying to update it. But I think we should be fine for testing.

πŸ‘ 1
pez 2020-10-11T18:52:12.263100Z

Yes, let's hope it behaves.

pez 2020-10-11T18:55:57.263700Z

Here's the zoom link: https://us02web.zoom.us/j/3584342566

bringe 2020-10-11T18:57:40.264100Z

Starts in 30 mins?

pez 2020-10-11T18:58:14.264300Z

It says that? I'm in the meeting now.

pez 2020-10-11T18:58:18.264500Z

πŸ˜ƒ

pez 2020-10-11T19:00:11.264700Z

Doesn't work?

pez 2020-10-11T19:02:49.264900Z

Lonely part anyway. πŸ˜ƒ

bringe 2020-10-11T19:04:49.265100Z

Oh I'll join lol

bringe 2020-10-11T19:04:55.265300Z

thought you said an hour from now - 30 mins ago

pez 2020-10-11T19:05:27.265500Z

Half an hour, but I misspelled it. πŸ˜ƒ

pez 2020-10-11T19:06:38.265700Z

@stefan.van.den.oord, are you on your way?

Stefan 2020-10-11T19:07:00.265900Z

Oh sorry I missed the link, one sec…

pez 2020-10-11T19:09:06.266100Z

Now we have a party!

pez 2020-10-11T20:13:58.266500Z

That was fun!

Stefan 2020-10-11T20:14:03.266700Z

It’s now building v 127; thanks for the nice chat and we’ll be in touch later this week!

pez 2020-10-11T20:15:03.266900Z

Let's post a link to the 127 VSIX when it's built. I can do that.

πŸ‘ 1
pez 2020-10-11T20:15:48.267200Z

master should be updated now, @brandon.ringe. I hope it's correct. πŸ˜ƒ

1
Stefan 2020-10-11T20:16:32.267400Z

Build is done. Good night! :sleeping_accommodation:

πŸ‘‹ 1
pez 2020-10-11T20:29:55.270100Z

Dear Calva-friends: Here's a build of @stefan.van.den.oord’s LiveShare enabled Calva with the version bumped so that it won't get reset automatically by VS Code: https://8267-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.127-pull-805-a386a8dd.vsix Please run with it even if you are not using LiveShare, to help find any issues with jack-in and connect that might (unlikely) have entered.

βœ”οΈ 1