Fork me on GitHub
#calva
<
2019-09-03
>
John Preston11:09:51

Hi I'm having an issue with Calva, how can I select text output from a function called in the REPL? The cursor and shortcuts are very different, I guess because of paredit?

pez11:09:17

Hi! I’m not sure I follow what it is you want to do…

John Preston11:09:08

Sorry I'll take a screenshot to demonstrate

John Preston11:09:43

Thanks for your patience 🙂

John Preston11:09:32

So I run a function, get a string return, I want to select it and copy the text, but I think my keyboard shortcuts have collided, I can't right click to get a context menu etc

John Preston11:09:55

Oh, wait, it seems to be working now

John Preston11:09:05

my bad sorry! ¯\(ツ)

pez11:09:35

It can be a bit quirky, unfortunately…

pez11:09:16

There is also a command for copying the result of the last evaluation: ctrl+alt+c ctrl+c. FYI.

John Preston11:09:11

Ah thanks that might be useful 🙂

John Preston11:09:40

I'm not used to paredit / structural editing, I'm used to standard text, so I find the REPL quite confusing still wrt keycombos

pez11:09:29

Yes, that is threshold. I tend to use mostly normal editing spiced up with these paredit commands: • Expand selection: ctrl+w (should probably be moved to vscode’s expand selection feature, but Calva’s predates that one a lot).. • Slurp forward: ctrl+right. • Barf forward: ctrl+left.

pez11:09:23

If you’re on a mac the slurp and barf default shortcuts might conflict with mission control. The README has a section about that.

maxp15:09:29

How to configure Calva to use an alias in deps.edn to start nrepl?

pez15:09:46

@maxp: you should get a prompt with a list of the aliases from deps.edn to choose from, when you Jack in. Ain’t happening?

maxp15:09:17

I see the prompt and choose my alias but still Executing task: clojure -Sdeps '{:deps {nrepl

maxp15:09:55

my alias named 'nrepl' and ot defines some extre-deps and paths

pez15:09:55

So you want your alias to replace the default deps?

maxp15:09:34

sorry.... it it my fault... there are checkboxes! ^) I have to check 🙂

pez15:09:36

Oh. Yes…. There is an issue about that and shadow-cljs on github.

pez15:09:02

But there it breaks so more obvious.

pez15:09:31

We should probably say something about this in the README. It is standars vscode UI, but people trip on it.

maxp15:09:42

When I press Enter in the middle of the line cursor moved down and jumps back on the same line. How to disable this behaviuor?

pez15:09:18

Sounds like a bug.

maxp15:09:54

I already switched off all Paredit checkboxes in config - I use Parinfer.

pez15:09:12

Hmmm, maybe it is parinfer doing it then.

pez15:09:32

Which paredit boxes are there to check, even?

pez15:09:04

Calva and parinfer do not play all that well together.

maxp15:09:51

Calva-fmt: all switched of except last "trailing whitespaces"

pez15:09:06

It might be a parinfer issue. Try with Calva disabled.

maxp15:09:21

.. or may be it is parinfer problem... but it works fine before Calva...

pez15:09:00

Yes, it could be Calva + parinfer too. It is not a good match, unfortunately.

pez19:09:11

Dear Calva-friends: Calva Jack-in is about to get a fresh-up, adding something we have named Connect Sequences. @slack1038 and I have been cooking on this feature quite some time and now we need your help with testing both that it doesn’t break things that previously worked and that it indeed works in delivering the new feature(s). You can read about how this is supposed to work here: https://github.com/BetterThanTomorrow/calva/issues/282

calva 1
pez19:09:46

@gerred: ^ This build ^ contains the myAliases feature as well, so you should be able to help testing it w/o losing that. (Of course, nothing else might work, but we will be as quick as we can to fix issues.)

gerred20:09:45

killer thank you

gerred20:09:49

on it. 🙂

❤️ 1
calva 1
gerred21:09:38

i'm about to do some vs code live share stuff with some people to teach some clojure

gerred21:09:44

what should I expect works/doesn't work, are there open issues?

pez21:09:44

No known issues really.