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`.
hoppy 2020-10-12T04:16:24.271100Z

haven't seen any anomolies in 2.0.127 on a clj/cljs project. Will be working it on the cljs/node stuff tm.

โค๏ธ 1
Stefan 2020-10-12T07:39:01.273100Z

Hmm for some reason vscode has stopped accepting Calvaโ€™s keyboard shortcuts on my machine. I was using the vsix of 2.0.127 (see above) but after downgrading to 2.0.126 the problem persists. Has anyone seen this before? How do I fix this? Restarting etc doesnโ€™t do the trick ๐Ÿ˜ž

Stefan 2020-10-12T07:46:51.274200Z

Ah found the problem. Apparently Calva has a feature โ€œToggle Keybindings Enabledโ€. I must have accidentally issued that keyboard combo. Very confusing, but solved. ๐Ÿ™‚

๐Ÿ‘ 2
โŒจ๏ธ 1
pez 2020-10-12T10:53:51.275300Z

Thanks for letting us know. It's new feature. Maybe we should show more clearly when they are toggled...

Eugen 2020-10-13T07:50:32.297Z

yes, I used control navigation extensively in day to day shell scripting and when editing other software (even here in slack when I wish to jump words and correct some typo)

Eugen 2020-10-13T07:51:59.297200Z

in bash it is very handy when editing long comand lines that I need to adapt. I use it with reverse history search (ctrl+R) to look for and edit entries. Doesn't everybody ๐Ÿ˜„ ?

Eugen 2020-10-13T07:53:54.297500Z

It would be great if the clojure structural editing did not overlap with ctrl arrow navigation but I guess it's a limitted number of keys on the keyboard.

pez 2020-10-13T08:00:51.297700Z

Why donโ€™t you remap them to suit you better?

Eugen 2020-10-13T08:10:21.298100Z

For me I guess it's not my thing. I try to stay away from key binding changes to be able to work on many systems/editors. This tends to happen for me. Muscle memory builds up. Some keybindings are standardized and changing them means I have to maintain them across every computer or when I reinstall. I also switch over a bunch of editors and I appreciate the natural consistency among them. So far this Calva ctrl-arrow navigation has had the biggest impact. I'm slowly getting used to it for structurlal editing so I guess the inconvenience will diminish over time

pez 2020-10-13T08:14:54.298300Z

Until we find what should be the default keybindings on windows and linux. ๐Ÿ˜ƒ

Eugen 2020-10-13T08:38:50.299800Z

yeah ๐Ÿ™‚. The 2 things I miss when using Calva are: โ€ข Multi line edit - for editing maps and data structures on multiple lines - happened once or twice โ€ข ctrl-arrow navigation - I fumble them almost daily (new to structural editing)

pez 2020-10-13T08:42:51.300Z

You mean multi-cursor paredit, right?

Eugen 2020-10-13T08:44:56.300200Z

is that different from plain text multi line edit ?

Eugen 2020-10-13T08:45:29.300400Z

is multi-cursor paredit a thing, I did not know ?

pez 2020-10-13T08:53:57.300600Z

Tell me what you are trying to do that does not work. ๐Ÿ˜ƒ

Eugen 2020-10-13T08:56:07.301100Z

I had a vector? that I wanted to turn into a map structure and multi cursor / multi line edit was a good fit there

Eugen 2020-10-13T08:56:50.301300Z

it was a data structrue change for lots of values

Eugen 2020-10-13T08:57:12.301500Z

not a structural editing as calva / lisp knows it

pez 2020-10-13T12:08:22.301700Z

The thing that I am not grokking here is why non-structural-multiline/cursor editing wouldnโ€™t work. I do multi-cursor editing all the time. And every day I wish it worked with paredit as well. There is an issue for that, btw: https://github.com/BetterThanTomorrow/calva/issues/610

๐Ÿ‘ 1
bringe 2020-10-13T17:30:00.302400Z

Yeah, multi-line editing works for me, just not with paredit

bringe 2020-10-13T17:31:00.302600Z

I too, had to get used to not using ctrl+arrows within Calva, but my brain is trained now to still use it elsewhere and not within Calva, for the most part. In Calva my brain is now trained to use ctrl+arrows for slurp and barf (though mostly just use slurp)

bringe 2020-10-13T17:31:21.302800Z

The issue is partly one of limited available shortcuts, as you said

Stefan 2020-10-12T10:58:45.276700Z

Yeah having a message popping up would be nice. And maybe not having a keyboard shortcut for this command...?

pez 2020-10-12T11:20:04.276900Z

I think it is a point with it having a shortcut. But you are right, anyone that wants to use it like that can add a shortcut. If you sneak a removal of the shortcut in with your PR, I'll look away. ๐Ÿ˜ƒ

Stefan 2020-10-12T15:42:50.277700Z

FYI: my colleague and I have used live share all day today with the new version (2.0.127) and we had no issues ๐ŸŽ‰

๐ŸŽ‰ 3
pez 2020-10-12T15:53:05.279700Z

I've used a merge of 127 and @brandon.ringe's draft PR with saner stack traces. No issues with 127 stuff. (Not using it for LiveShare, but anyway.)

๐Ÿ‘ 1
bringe 2020-10-12T16:00:30.279800Z

Yeah, the shortcut was added by the person who made the PR because they use this feature very often, and even having to click a toggle button in the status bar was inconvenient to them. But I was worried about the lack of notification when they're turned off too. I think we had decided to wait and see how it goes. That user didn't want notifications popping up constantly either since they use that feature often. But at the same time, I don't think many people would use it that often

Stefan 2020-10-12T16:01:38.281100Z

No it sounds like an esoteric thing. Just out of curiosity: what was their use case?

Stefan 2020-10-12T16:02:31.282500Z

Oh and most of the day we had four different workspaces jacked in AND live-shared at the same time ๐Ÿ˜€

1
bringe 2020-10-12T16:03:44.282900Z

It seems quite small/specific of a use-case as stated in that issue, overall, imo.

bringe 2020-10-12T16:04:00.283500Z

I feel like there was more to it before though... :thinking_face:

Stefan 2020-10-12T16:04:18.284300Z

Ok maybe removing the default keyboard shortcut and having that person assign their own would be an option?

bringe 2020-10-12T16:07:01.284500Z

Yeah, I think that's a good idea

bringe 2020-10-12T16:11:38.285200Z

Nice!

pez 2020-10-12T16:54:40.285300Z

:thumbsup:

grounded_sage 2020-10-12T16:57:04.286300Z

Cool to hear this LiveShare is working. I am super curious about using it. Is there a write up about how that workflow looks. Or a recording?

grounded_sage 2020-10-12T16:59:51.287900Z

Also slight tangent. I am getting this error when I try and jack into the Datahike project. java.lang.NullPointerException: Cannot invoke "jdk.javadoc.internal.doclets.formats.html.HtmlConfiguration.getOptions()" because "this.configuration" is null Seems it could be a cider-nrepl / nrepl related issue? Has anyone seen this before?

grounded_sage 2020-10-14T18:41:10.325500Z

This is super confusing as to how to deal with this. I am currently adding nrepl dependencies into the project and trying to find ones that work together. Is there a better approach to this? @pez

grounded_sage 2020-10-14T18:42:44.325700Z

Iโ€™ve gone from being able to easily start a repl to not being able to start one at all lol

Alex Browne 2020-10-16T22:24:15.341Z

I'm running into the same issue. Is there a workaround or solution here?

Alex Browne 2020-10-16T22:52:17.341300Z

I found a workaround. Downgraded to JDK 14 using https://github.com/shyiko/jabba. Restarted VS Code and then it worked.

Stefan 2020-10-12T17:00:09.288400Z

We are planning to create both write up and video :)

๐Ÿ‘ 1
grounded_sage 2020-10-14T09:42:34.310700Z

would love a walk through with the team sometime if you have time available for doing this

grounded_sage 2020-10-12T17:02:05.288600Z

Will this be located with the Calva docs? Or separate?

Stefan 2020-10-12T17:04:45.289100Z

Write up in docs for sure

grounded_sage 2020-10-12T17:09:00.289300Z

Sweet. I am excited about using this for Mob programming

Stefan 2020-10-12T18:47:21.290200Z

Nice!! That sounds like a great opportunity for a nice blog post ๐Ÿ˜‰

๐Ÿ‘ 2
grounded_sage 2020-10-12T19:05:14.290400Z

Thatโ€™s my bad for not checking. This is actually a known issue. https://github.com/clojure-emacs/orchard/issues/100

โœ”๏ธ 2
Eugen 2020-10-12T21:04:27.291500Z

Having coded in vscode before clojure I also use ctrl arrow for navigation. It's consistent with terminal as well (jumps a word). I also miss multi line editing sometimes.

Eugen 2020-10-12T21:04:39.291700Z

Just my 2c

pez 2020-10-12T21:07:01.291900Z

Yeah, so then this feature could come in handy for you, right?