Fork me on GitHub
#calva
<
2024-04-11
>
pez07:04:43

Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.437 • Retire experimental setting for strict prevent unmatched closing bracket. Close: https://github.com/BetterThanTomorrow/calva/issues/2500https://github.com/BetterThanTomorrow/calva/issues/2503, nrepl 1.1.1, cider-nrepl 0.47.1 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2501

❤️ 1
pez07:04:25

I’m sorry, I seem to have introduced a regression in the ontype-formatting with 2.0.437. 😞 . Will try to fix it immediately. For now, stay on 436, please. https://github.com/BetterThanTomorrow/calva/issues/2509

pez08:04:36

Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.438 • Fix regression: https://github.com/BetterThanTomorrow/calva/issues/2509 I’m truly sorry for the disruption. And I don’t know how my testing could miss this glaring regression. I’ll have to try to figure that out.

❤️ 1
pez08:04:09

The VS Code team has released a rather fantastic update in latest version. Extension updates no longer take a reload of the VS Code window to apply. As a user of the Jack-in feature that is a gift! It only takes a second to update Calva and my workflow is completely undisrupted. 🎉

🥳 1
Tommi Martin08:04:53

Hello everyone, Quick question. Is there tools or methods to wrap calva jack-in command with another command? Essentially If I express what I'm trying to do with calva in a command line syntax it would be this: mirrord exec -- <calva jack-in command> Mirrord in this case is a tool that would allow my clojure program to talk to a kubernetes cluster.

pez08:04:11

Hi! I think this may be served by custom jack-in command line: https://calva.io/connect-sequences/#custom-command-line

pez08:04:06

Your pseudo invokation is a bit less involved, but you can get closer to that by using the results from the Copy Jack-in Command Line command (not sure I remember the name correctly).

Tommi Martin09:04:16

Thank you very much. I'll try to set that up

🙏 1
Tommi Martin09:04:27

It is working this is the update i did to settings.json:

"calva.replConnectSequences": [
      {
        "name": "Mirrord jack-in",
        "projectType": "deps.edn",
        "customJackInCommandLine": "mirrord exec -- clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,\"1.0.0\"},cider/cider-nrepl {:mvn/version,\"0.28.5\"}}}' -M -m nrepl.cmdline --middleware \"[cider.nrepl/cider-middleware]\""
      }
    ]
Need to clean that up and use the actual variables but as a poc that does work and allow me to use kubernetes urls as if i was a part of the cluster's network. That makes me a happy camper, no more port-forwarding mess in local environment to run my dev stack.

pez09:04:24

That’s awesome! Glad that this setup works for your use case. It’s new-ish so I love to get feedback from the field about it.

pez09:04:32

About the variables. The values you are using have been the defaults for very long. But this morning that changed. 😃

😅 1
pez09:04:53

I think it could make sense to have a variable for the entire jack-in command line, seeing your use case.

Tommi Martin09:04:43

It would make it simpler for this particular usecase, if you just want to wrap the command with something.

pez09:04:35

Yeah, we can’t go around making every use case easier, but this one seems to be pretty general.

👍 1
pez11:04:42

Dear Calva friends: https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.439 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2506 Please join me in celebrating @giovanni968’s first code contribution to Calva! 🎉 🎁 calva

❤️ 2
🎉 3
calva 3
mmer12:04:42

Has something changed with the Calva: Replace Current Form - This was working and recently it seems to have stopped working.

pez12:04:27

You mean for pretty printing a form? That should still work as before…

mmer12:04:32

I am on v.2.0.439

pez12:04:26

I am too. Does this happen all projects for you?

mmer12:04:14

I have updated the vscode in case that was affecting it. I have an edn file with all the data on one line and I want to get it formatted on to multiple lines - this used to work, but this now seems to do nothing.

mmer12:04:28

How would you expect that call to work on :

{:key 1 :last 2 :map {:value 1}}
I was hoping it would format it across at least 3 lines.

pez12:04:27

Can you try some older version of Calva and see where this regression appeared? Like bisect it by picking a month old version or so and then go from there.

mmer08:04:40

It seems to break at Calva version used: v2.0.428

pez08:04:59

Thanks! Please file an issue. I’ll have a look at it.

mmer08:04:12

What is the github for this?

mmer08:04:00

Found it.

pez08:04:55

Cool. I moved the bookmark to be first in the list. Dunno if that is just for me or takes effect for all.

mmer08:04:02

#2512 created.

🙏 1