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`.
bringe 2021-01-22T01:23:17.041600Z

Calva version 2.0.153 is out 🎉 :calva:https://github.com/BetterThanTomorrow/calva/issues/974https://github.com/BetterThanTomorrow/calva/issues/973 0.25.7> • Fix: https://github.com/BetterThanTomorrow/calva/issues/958 CC @stefan.van.den.oord (extract function should with selections now)

4
❤️ 3
bringe 2021-01-22T20:16:08.070700Z

Thanks! We've enjoyed working with them

Stefan 2021-01-22T06:41:57.042700Z

Yeah it works 😍 🎉❤️:calva: I found it impressive to see how you and the nice people from clojure-lsp have worked together on this, well done!!!

❤️ 1
grumplet 2021-01-22T11:04:48.060800Z

@pez I see this behaviour when aborting a jack-in in versions since 2.0.134 (which I keep reverting to - it just works better than the clojure-lsp versions). Control-C no longer cleans up the Jack-in process neatly.

clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "0.25.7"} cider/piggieback {:mvn/version "0.5.2"}}}' -A:fig -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware cider.piggieback/wrap-cljs-repl]"
Downloading: cider/cider-nrepl/0.25.7/cider-nrepl-0.25.7.pom from clojars
Downloading: cider/cider-nrepl/0.25.7/cider-nrepl-0.25.7.jar from clojars
WARNING: When invoking clojure.main, use -M
nREPL server started on port 50359 on host localhost - <nrepl://localhost:50359>
2021-01-22 10:55:00.178:INFO::nREPL-session-1b6b6926-626d-4c3c-a54b-f6a1a8b06996: Logging initialized @35479ms to org.eclipse.jetty.util.log.StdErrLog

^CKilling the Jack-in process
Jack-in process exited. Status: 143
^CKilling the Jack-in process
^CKilling the Jack-in process

pez 2021-01-22T12:34:31.063Z

Is it not cleaning it up or is it just bad at showing you that it is cleaned up? (iirc I don’t check for if the process is alive before giving that message.)

grumplet 2021-01-24T14:02:36.142500Z

Well, in 2.0.134 ^C will allow the terminal to be reused. In clojure-lsp versions, the termnal does not return to a usable state and has to be closed.

grumplet 2021-01-24T14:10:29.142800Z

2.0.134 behaviour was:

^C
Terminal will be reused by tasks, press any key to close it.
Doing so allows the terminal to be reused.

grumplet 2021-01-24T14:19:44.147100Z

In both I see

clj꞉user꞉&gt; 
; Jack-in done.
clj꞉user꞉&gt; 
; nREPL Connection was closed
in output.calva-repl.

grumplet 2021-01-24T14:20:55.147300Z

The terminal does get reused if there is a fresh jack-in, but is unavailable for command entry.

pez 2021-01-24T14:29:17.147600Z

Sounds like it behaves as intended, but is a bit confusing in how it works and communicates. It is a very limited terminal there. It is a pseudoterminal where I have implemented only the minimal amount of input handling (ctrl+c and that’s it). I probably should mimic that behaviour with closing the terminal on any further input.

grumplet 2021-01-24T22:04:44.170400Z

OK thanks - I’ll give the latest another go. I’m very glad to see that those pesky clojure-lsp startup messages seem to have disappeared. At first it felt really clunky having to cancel those in every window for no perceivable benefit over clj-kondo.

pez 2021-01-24T22:12:57.175100Z

Yeah, it is supposed to give its enhancement without all that shouting. Even if the enhancements are quite huge.

ericdallo 2021-01-22T13:22:12.063400Z

@pez @brandon.ringe This should fix some issues from clojure-lsp, I'll check the issues related and comment, it'd be really helpful if you do some tests from Calva side too 😄

❤️ 1
🤘 1
agold 2021-01-22T13:48:36.065600Z

After upgrade to 2.0.153, typing a quotation mark (") in a cljs file no longer closes the quote with a matching quotation mark. I believe this is a change. Was it deliberate? How do I get back the matching pair behavior? Parentheses and brackets still pair correctly.

clyfe 2021-01-22T14:00:19.065700Z

works for me on v2.0.153

agold 2021-01-22T14:37:07.066Z

Hmm.

plexus 2021-01-22T14:46:15.066800Z

Where is the Calva PR template set up? I wanted to show it to some people because I think it's really good. I was expecting to find it here but apparently not... https://github.com/BetterThanTomorrow/calva/tree/dev/.github

pez 2021-01-22T15:07:36.067200Z

Nice! It’s in the docs directory.

agold 2021-01-22T16:28:29.067300Z

I've tried to track this down with no luck. I changed editor.AutoClosingQuotes to always from "language defined", but this did not work. Quotes are autoclosing in Python, but not in cljs since upgrade to 2.0.153. Is there a Calva setting that affects this? Parens and brackets still autoclose.

agold 2021-01-22T16:59:24.067500Z

Auto close quote is working correctly on my Mac with 2.0.153 but not on Linux(Ubuntu/WSL), as outlined above.

clyfe 2021-01-22T17:19:55.067700Z

I'm on Ubuntu

agold 2021-01-22T17:25:55.067900Z

@claudius.nicolae Do you know any setting that might affect this behavior?

clyfe 2021-01-22T17:42:55.068100Z

No. Try to comment all the users settings see if it works.

agold 2021-01-22T18:25:07.068300Z

Tried it, no joy. This is baffling. Thanks for help.

clyfe 2021-01-22T18:27:56.068500Z

How about if you uninstall Calva?

2021-01-22T18:34:27.069400Z

I just installed Calva and is it correct that Evaluate Top Level Form (defun) is mapped to enter? If so, how is that supposed to work?

2021-01-24T17:06:23.153100Z

This is strange, I just looked on another computer and it's showing option-enter. I don't (yet?) understand the difference between these machines. Will look at it at work tomorrow.

agold 2021-01-22T18:49:28.069500Z

Uninstalled, still no auto close quote, reinstalled, no change.

clyfe 2021-01-22T18:54:18.069700Z

alt+enter

2021-01-22T19:03:40.069900Z

alt-enter works but, the hotkey is listed as enter everywhere in vs-code

bringe 2021-01-22T20:14:49.070100Z

It's a context thing I believe. If your cursor is in the output/repl window and after the last form after the prompt, then enter will eval the form. If your cursor is elsewhere, it won't

bringe 2021-01-22T20:15:16.070400Z

To make the prompt eval behave more like a terminal repl prompt

2021-01-22T20:36:13.070900Z

The problem for me is that in the command palette and in key bindings, it only shows as enter. So there's no path to discoverability that I can see.

2021-01-22T20:36:27.071100Z

it doesn't matter which window is focused, visible or that the cursor is over

bringe 2021-01-22T21:16:39.071300Z

Oh wow, I see that too... if you wouldn't mind creating an issue so we can track this, that would be great.

bringe 2021-01-22T21:30:54.072300Z

@ericdallo When I get around to it in the coming days/week I'll test each issue related to that kondo PR.

❤️ 1
ericdallo 2021-01-22T21:31:44.072400Z

Nice! It'd super helpful!